|
@@ -22,6 +22,8 @@ use App\Http\Model\StZqOdds as OddsModel;
|
|
|
use App\Http\Model\StZqOddsRecord as OddsRecordModel;
|
|
use App\Http\Model\StZqOddsRecord as OddsRecordModel;
|
|
|
use App\Http\Model\StZqResult as ZqResultModel;
|
|
use App\Http\Model\StZqResult as ZqResultModel;
|
|
|
use App\Http\Model\St_area_country as StAreaCountryModel;
|
|
use App\Http\Model\St_area_country as StAreaCountryModel;
|
|
|
|
|
+use App\Http\Model\St_set_sports_record as St_set_sports_recordModel;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -108,6 +110,9 @@ class WriteSportsController extends BaseController{
|
|
|
//不是 联赛 数据
|
|
//不是 联赛 数据
|
|
|
if($getData['title'] != 'league') throw new \Exception(Response::generate('不是联赛数据,',Response::ABNORMAL));
|
|
if($getData['title'] != 'league') throw new \Exception(Response::generate('不是联赛数据,',Response::ABNORMAL));
|
|
|
|
|
|
|
|
|
|
+ //写请求数据 日志记录
|
|
|
|
|
+ $setSportsRecord = St_set_sports_recordModel::setSportsRecord($getData['title'],$obt);
|
|
|
|
|
+ if($setSportsRecord < 1) throw new \Exception(Response::generate('',Response::SPORTS_RECORD_ERR));
|
|
|
//获取球类代码
|
|
//获取球类代码
|
|
|
$game_code = $getData['game_code'];
|
|
$game_code = $getData['game_code'];
|
|
|
//获取数据源
|
|
//获取数据源
|
|
@@ -222,6 +227,9 @@ class WriteSportsController extends BaseController{
|
|
|
//不是 赛事 数据
|
|
//不是 赛事 数据
|
|
|
if($getData['title'] != 'match') throw new \Exception(Response::generate('不是赛事数据,',Response::ABNORMAL));
|
|
if($getData['title'] != 'match') throw new \Exception(Response::generate('不是赛事数据,',Response::ABNORMAL));
|
|
|
|
|
|
|
|
|
|
+ //写请求数据 日志记录
|
|
|
|
|
+ $setSportsRecord = St_set_sports_recordModel::setSportsRecord($getData['title'],$obt);
|
|
|
|
|
+ if($setSportsRecord < 1) throw new \Exception(Response::generate('',Response::SPORTS_RECORD_ERR));
|
|
|
//获取球类代码
|
|
//获取球类代码
|
|
|
$game_code = $getData['game_code'];
|
|
$game_code = $getData['game_code'];
|
|
|
//获取数据源
|
|
//获取数据源
|
|
@@ -384,6 +392,9 @@ class WriteSportsController extends BaseController{
|
|
|
//不是 赛事 结果 记录 数据
|
|
//不是 赛事 结果 记录 数据
|
|
|
if($getData['title'] != 'match_result_r') throw new \Exception(Response::generate('不是赛事结果记录数据,',Response::ABNORMAL));
|
|
if($getData['title'] != 'match_result_r') throw new \Exception(Response::generate('不是赛事结果记录数据,',Response::ABNORMAL));
|
|
|
|
|
|
|
|
|
|
+ //写请求数据 日志记录
|
|
|
|
|
+ $setSportsRecord = St_set_sports_recordModel::setSportsRecord($getData['title'],$obt);
|
|
|
|
|
+ if($setSportsRecord < 1) throw new \Exception(Response::generate('',Response::SPORTS_RECORD_ERR));
|
|
|
//获取球类代码
|
|
//获取球类代码
|
|
|
$game_code = $getData['game_code'];
|
|
$game_code = $getData['game_code'];
|
|
|
//获取数据源
|
|
//获取数据源
|
|
@@ -487,7 +498,7 @@ class WriteSportsController extends BaseController{
|
|
|
//开启事务
|
|
//开启事务
|
|
|
DB::beginTransaction();
|
|
DB::beginTransaction();
|
|
|
$obt = $data->data;
|
|
$obt = $data->data;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//请求 数据 为空
|
|
//请求 数据 为空
|
|
|
if(empty($obt)) throw new \Exception(Response::generate('请求数据为空,',Response::ABNORMAL));
|
|
if(empty($obt)) throw new \Exception(Response::generate('请求数据为空,',Response::ABNORMAL));
|
|
|
$getData = $this->getAddData($obt);
|
|
$getData = $this->getAddData($obt);
|
|
@@ -495,6 +506,10 @@ class WriteSportsController extends BaseController{
|
|
|
//不是 赔率 数据
|
|
//不是 赔率 数据
|
|
|
if($getData['title'] != 'odds') throw new \Exception(Response::generate('不是赔率数据,',Response::ABNORMAL));
|
|
if($getData['title'] != 'odds') throw new \Exception(Response::generate('不是赔率数据,',Response::ABNORMAL));
|
|
|
|
|
|
|
|
|
|
+ //写请求数据 日志记录
|
|
|
|
|
+ $setSportsRecord = St_set_sports_recordModel::setSportsRecord($getData['title'],$obt);
|
|
|
|
|
+ if($setSportsRecord < 1) throw new \Exception(Response::generate('',Response::SPORTS_RECORD_ERR));
|
|
|
|
|
+
|
|
|
//获取球类代码
|
|
//获取球类代码
|
|
|
$game_code = $getData['game_code'];
|
|
$game_code = $getData['game_code'];
|
|
|
//获取数据源
|
|
//获取数据源
|
|
@@ -596,6 +611,9 @@ class WriteSportsController extends BaseController{
|
|
|
//不是 冠军 赔率 数据
|
|
//不是 冠军 赔率 数据
|
|
|
if($getData['title'] != 'odds_ch') throw new \Exception(Response::generate('不是冠军赔率数据,',Response::ABNORMAL));
|
|
if($getData['title'] != 'odds_ch') throw new \Exception(Response::generate('不是冠军赔率数据,',Response::ABNORMAL));
|
|
|
|
|
|
|
|
|
|
+ //写请求数据 日志记录
|
|
|
|
|
+ $setSportsRecord = St_set_sports_recordModel::setSportsRecord($getData['title'],$obt);
|
|
|
|
|
+ if($setSportsRecord < 1) throw new \Exception(Response::generate('',Response::SPORTS_RECORD_ERR));
|
|
|
//获取球类代码
|
|
//获取球类代码
|
|
|
$game_code = $getData['game_code'];
|
|
$game_code = $getData['game_code'];
|
|
|
//获取数据源
|
|
//获取数据源
|
|
@@ -707,6 +725,9 @@ class WriteSportsController extends BaseController{
|
|
|
//不是 直播 数据
|
|
//不是 直播 数据
|
|
|
if($getData['title'] != 'broad_cast') throw new \Exception(Response::generate('不是直播数据,',Response::ABNORMAL));
|
|
if($getData['title'] != 'broad_cast') throw new \Exception(Response::generate('不是直播数据,',Response::ABNORMAL));
|
|
|
|
|
|
|
|
|
|
+ //写请求数据 日志记录
|
|
|
|
|
+ $setSportsRecord = St_set_sports_recordModel::setSportsRecord($getData['title'],$obt);
|
|
|
|
|
+ if($setSportsRecord < 1) throw new \Exception(Response::generate('',Response::SPORTS_RECORD_ERR));
|
|
|
//获取 球类
|
|
//获取 球类
|
|
|
$game_code = $getData['game_code'];
|
|
$game_code = $getData['game_code'];
|
|
|
//获取 直播 数据
|
|
//获取 直播 数据
|