Ken hace 1 mes
padre
commit
87e3d3e5d0
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      app/Services/FixtureService.php

+ 10 - 1
app/Services/FixtureService.php

@@ -9,7 +9,12 @@
 class FixtureService extends BaseService
 class FixtureService extends BaseService
 {
 {
 
 
-    //  5秒更新一次
+
+    /**
+     * 将进行中的赛事 更新赔率
+     * 5秒更新一次
+     * @return void
+     */
     static function updateOdds()
     static function updateOdds()
     {
     {
         $list = Client::oddsLive();
         $list = Client::oddsLive();
@@ -20,6 +25,10 @@ static function updateOdds()
         }
         }
     }
     }
 
 
+    /**
+     * 将第二天的赛事插入到数据库
+     * @return array
+     */
     static function index()
     static function index()
     {
     {
         $date = Carbon::tomorrow()->toDateString();
         $date = Carbon::tomorrow()->toDateString();