|
|
@@ -10,8 +10,14 @@
|
|
|
class FixtureService extends BaseService
|
|
|
{
|
|
|
|
|
|
- // 赛前赔率
|
|
|
- static function odds($id)
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 赛前赔率
|
|
|
+ * 3小时更新一次
|
|
|
+ *
|
|
|
+ * @param $id integer|string 赛事ID
|
|
|
+ */
|
|
|
+ static function odds(int|string $id)
|
|
|
{
|
|
|
$key = "odds_{$id}";
|
|
|
$odds = Cache::get($key);
|
|
|
@@ -26,6 +32,8 @@ static function odds($id)
|
|
|
/**
|
|
|
* 比赛中的赔率
|
|
|
* 5秒更新一次
|
|
|
+ *
|
|
|
+ * @param $id integer|string 赛事ID
|
|
|
*/
|
|
|
static function oddsLive($id)
|
|
|
{
|
|
|
@@ -41,6 +49,7 @@ static function oddsLive($id)
|
|
|
|
|
|
/**
|
|
|
* 将第二天的赛事插入到数据库
|
|
|
+ *
|
|
|
* @return array
|
|
|
*/
|
|
|
static function index()
|