|
|
@@ -1994,7 +1994,6 @@ class WriteSportsController extends BaseController
|
|
|
foreach ($local_match as $k => $v) {
|
|
|
foreach($data['data'] as $kk =>$vv){
|
|
|
if($v['others_match_id'] == $vv['match_id']){
|
|
|
-
|
|
|
$set_status = [
|
|
|
'status' => $vv['status'],
|
|
|
'is_rollball' => $vv['is_rollball'],
|
|
|
@@ -2023,6 +2022,11 @@ class WriteSportsController extends BaseController
|
|
|
// 新增 更新 赛事结果
|
|
|
$this->match_result($game_code, $v['match_id']);
|
|
|
|
|
|
+ // 更新 赛事结果表 状态 为已结束
|
|
|
+ $ret_up_r = $model['model_result']::where(['match_id' => $v['match_id']])
|
|
|
+ ->update(["status"=>2,'is_correct'=>-1,"update_time"=>date('Y-m-d H:i:s')]);
|
|
|
+ if($ret_up_r < 1) throw new \Exception( Response::generate('',Response::ADD_MATCH_R_ERROR));
|
|
|
+
|
|
|
// 写入结算通知表 用于自动结算
|
|
|
$Comendnotice = new \App\Models\Comendnotice();
|
|
|
$ret_add = $Comendnotice->addcomendnotice($v['match_id'], $game_code, 0, $game_start_time);
|