|
|
@@ -22,15 +22,31 @@ class WqRule
|
|
|
$guest_team = trim($model->guest_team);
|
|
|
//$all_winner = $resultModel['0']->match_winer_player;
|
|
|
|
|
|
+ /*
|
|
|
+ if (in_array($odds_code, ['ch', 'cg'])) {
|
|
|
+ $resultModel = DB::table('st_wq_league_result')->where(['lg_id' => $model->lg_id, 'status' => 1])->first();
|
|
|
+ $all_winner = trim($resultModel->result);
|
|
|
+ if (!$resultModel) {
|
|
|
+ throw new \Exception("没有找到冠军数据-" . $model->lg_id);
|
|
|
+ }
|
|
|
+ if ($odds_code == 'ch') {
|
|
|
+ return $this->wq_gj_all($all_winner, $home_team);
|
|
|
+ } else {
|
|
|
+ return $this->wq_gj_all($all_winner, $guest_team);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
+
|
|
|
$stand_datas = $this->wq_scoreDatas($resultModel);
|
|
|
|
|
|
+
|
|
|
switch ($odds_code) {
|
|
|
case 'ch':
|
|
|
- $all_score_arr = $stand_datas['allinning'];
|
|
|
+ $all_score_arr = $stand_datas['all'];
|
|
|
$return = $this->wq_gj_all($home_team, $guest_team, $all_score_arr, 1);
|
|
|
break;
|
|
|
case 'cg':
|
|
|
- $all_score_arr = $stand_datas['allinning'];
|
|
|
+ $all_score_arr = $stand_datas['all'];
|
|
|
$return = $this->wq_gj_all($home_team, $guest_team, $all_score_arr, 2);
|
|
|
break;
|
|
|
case 'ch_1':
|