|
@@ -27,6 +27,7 @@ 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;
|
|
use App\Http\Model\St_set_sports_record as St_set_sports_recordModel;
|
|
|
|
|
+use App\Http\Model\St_team as StTeamModel;
|
|
|
|
|
|
|
|
class DataLogic
|
|
class DataLogic
|
|
|
{
|
|
{
|
|
@@ -350,6 +351,14 @@ class DataLogic
|
|
|
];
|
|
];
|
|
|
$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));//Render([], '10018', lang('Tips','Sports')->get('local_match_error'));
|
|
if ($ret < 1) throw new \Exception(Response::generate($gameName . '赛事-match_id:' . $data['match_id'] . ';', Response::LOCAL_MATCH_ERROR));//Render([], '10018', lang('Tips','Sports')->get('local_match_error'));
|
|
|
|
|
+
|
|
|
|
|
+ //追加写球队名称
|
|
|
|
|
+ $team = [
|
|
|
|
|
+ 'team_h' => $data['home_team'],
|
|
|
|
|
+ 'team_g' => $data['guest_team'],
|
|
|
|
|
+ ];
|
|
|
|
|
+ StTeamModel::setTeam($game_code, $team);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|