|
@@ -493,6 +493,25 @@ class WriteSportsController extends BaseController
|
|
|
];
|
|
];
|
|
|
$ret = $models['model_local_match']::insertGetId($set_local);
|
|
$ret = $models['model_local_match']::insertGetId($set_local);
|
|
|
if ($ret < 1) throw new \Exception(Response::generate($gameName . '赛事-match_id:' . $data['match_id'] . ';', Response::LOCAL_MATCH_ERROR));
|
|
if ($ret < 1) throw new \Exception(Response::generate($gameName . '赛事-match_id:' . $data['match_id'] . ';', Response::LOCAL_MATCH_ERROR));
|
|
|
|
|
+
|
|
|
|
|
+ //追加写球队名称
|
|
|
|
|
+ $team = [
|
|
|
|
|
+ 'team_h' => $data['home_team'],
|
|
|
|
|
+ 'team_g' => $data['guest_team'],
|
|
|
|
|
+ ];
|
|
|
|
|
+ StTeamModel::setTeam($game_code, $team, $source);
|
|
|
|
|
+
|
|
|
|
|
+ //追加写赛事结果
|
|
|
|
|
+ $opt = [
|
|
|
|
|
+ 'data' => $data,
|
|
|
|
|
+ 'lg_id' => $lg_id,
|
|
|
|
|
+ 'match_id' => $id,
|
|
|
|
|
+ 'models' => $models,
|
|
|
|
|
+ 'gameName' => $gameName,
|
|
|
|
|
+ 'game_code' => $game_code,
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ ZqResultModel::set_result($opt);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -850,7 +869,7 @@ class WriteSportsController extends BaseController
|
|
|
//获取 本地 联赛 ID
|
|
//获取 本地 联赛 ID
|
|
|
$lg_id = commonFunction::searcharray($data['uuid'], 'identity', $l_lg_data, 'lg_id');
|
|
$lg_id = commonFunction::searcharray($data['uuid'], 'identity', $l_lg_data, 'lg_id');
|
|
|
//获取 本地 赛事 ID
|
|
//获取 本地 赛事 ID
|
|
|
- $match_id = commonFunction::searcharray($data['match_id'], 'identity', $l_match_data, 'match_id');
|
|
|
|
|
|
|
+ $match_id = commonFunction::searcharray($data['match_identity'], 'identity', $l_match_data, 'match_id');
|
|
|
|
|
|
|
|
//根据球类 获取 赛事结果记录字段
|
|
//根据球类 获取 赛事结果记录字段
|
|
|
$set_match_r = $this->get_match_r($game_code, $lg_id, $match_id, $data);
|
|
$set_match_r = $this->get_match_r($game_code, $lg_id, $match_id, $data);
|