|
@@ -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();
|