|
@@ -1483,11 +1483,15 @@ class DataLogic
|
|
|
$warn_data = $getData['data'];
|
|
$warn_data = $getData['data'];
|
|
|
|
|
|
|
|
//获取赛事 match_id
|
|
//获取赛事 match_id
|
|
|
- $match_id = $models['model_local_match']::SELECT('others_match_id', 'match_id')
|
|
|
|
|
|
|
+ $match_Model= $models['model_local_match']::SELECT('others_match_id', 'match_id')
|
|
|
//->where(['source' => $source, 'identity' => $match_identity])
|
|
//->where(['source' => $source, 'identity' => $match_identity])
|
|
|
->where(['identity' => $match_identity])
|
|
->where(['identity' => $match_identity])
|
|
|
- ->first()->match_id;
|
|
|
|
|
|
|
+ ->first();
|
|
|
|
|
+ if (empty($match_Model)){
|
|
|
|
|
+ throw new \Exception(Response::generate('', Response::SET_WARN_ERR));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ $match_id = $match_Model->match_id;
|
|
|
if (!empty($match_id)) {
|
|
if (!empty($match_id)) {
|
|
|
//更新 危险球
|
|
//更新 危险球
|
|
|
$ret = ZqResultModel::set_result_warn($match_id, $warn_data);
|
|
$ret = ZqResultModel::set_result_warn($match_id, $warn_data);
|