|
|
@@ -1540,19 +1540,36 @@ class SoccerNoteListController extends Controller
|
|
|
}
|
|
|
|
|
|
if ($game_code == 'lq') {
|
|
|
- $home = $pdatas['home'];
|
|
|
- $guest = $pdatas['guest'];
|
|
|
|
|
|
- $restModel->home_score = ['1' => intval($home['0']), '2' => intval($home['1']), '3' => intval($home['2']), '4' => intval($home['3'])];
|
|
|
- $restModel->guest_score = ['1' => intval($guest['0']), '2' => intval($guest['1']), '3' => intval($guest['2']), '4' => intval($guest['3'])];
|
|
|
- $restModel->u_home_score = intval($home['0']) + intval($home['1']);
|
|
|
- $restModel->u_guest_score = intval($guest['0']) + intval($guest['1']);
|
|
|
+ if($ScoreTitle == '全场'){
|
|
|
+ $restModel->home_score = ['1' => intval($home_sorce), '2' => 0, '3' => 0, '4' => 0];
|
|
|
+ $restModel->guest_score = ['1' => intval($guest_sorce), '2' => 0, '3' => 0, '4' => 0];
|
|
|
+ }
|
|
|
+ if($ScoreTitle == '上半'){
|
|
|
+ $restModel->home_score = ['1' => intval($home_sorce), '2' => 0, '3' => 0, '4' => 0];
|
|
|
+ $restModel->guest_score = ['1' => intval($guest_sorce), '2' => 0, '3' => 0, '4' => 0];
|
|
|
+ }
|
|
|
+ if($ScoreTitle == '下半'){
|
|
|
+ $restModel->home_score = ['1' => 0, '2' => 0, '3' => intval($home_sorce), '4' => 0];
|
|
|
+ $restModel->guest_score = ['1' => 0, '2' => 0, '3' => intval($guest_sorce), '4' => 0];
|
|
|
+ }
|
|
|
+ if($ScoreTitle == '第一节'){
|
|
|
+ $restModel->home_score = ['1' => intval($home_sorce), '2' => 0, '3' => 0, '4' => 0];
|
|
|
+ $restModel->guest_score = ['1' => intval($guest_sorce), '2' => 0, '3' => 0, '4' => 0];
|
|
|
+ }
|
|
|
+ if($ScoreTitle == '第二节'){
|
|
|
+ $restModel->home_score = ['1' => 0, '2' => intval($home_sorce), '3' => 0, '4' => 0];
|
|
|
+ $restModel->guest_score = ['1' => 0, '2' => intval($guest_sorce), '3' => 0, '4' => 0];
|
|
|
+ }
|
|
|
+ if($ScoreTitle == '第三节'){
|
|
|
+ $restModel->home_score = ['1' => 0, '2' => 0, '3' => intval($home_sorce), '4' => 0];
|
|
|
+ $restModel->guest_score = ['1' => 0, '2' => 0, '3' => intval($guest_sorce), '4' => 0];
|
|
|
+ }
|
|
|
+ if($ScoreTitle == '第四节'){
|
|
|
+ $restModel->home_score = ['1' => 0, '2' => 0, '3' => 0, '4' => intval($home_sorce)];
|
|
|
+ $restModel->guest_score = ['1' => 0, '2' => 0, '3' => 0, '4' => intval($guest_sorce)];
|
|
|
+ }
|
|
|
|
|
|
- $all_home = intval($home['0']) + intval($home['1']) + intval($home['2']) + intval($home['3']);
|
|
|
- $all_guest = intval($guest['0']) + intval($guest['1']) + intval($guest['2']) + intval($guest['3']);
|
|
|
- $restModel->all_goal = $all_home + $all_guest;
|
|
|
- $restModel->match_score = $all_home . ':' . $all_guest;
|
|
|
- $restModel->match_winer = $all_home > $all_guest ? $restModel->home_team : $restModel->guest_team;
|
|
|
$restModel->warn_more = json_decode($restModel->warn_more, 256);
|
|
|
|
|
|
$buyModel->single_result = json_encode([$restModel], 256);
|