Merge branch 'hotfix/change_game_0927' of wmtx/platform into master

优化删除游戏报错bug
master
万盟天下 4 years ago committed by Gogs
commit eca52e2c1f

@ -1375,10 +1375,10 @@ class PromoteCompanyController extends ThinkController
if(empty($game_arr)){ if(empty($game_arr)){
return $senddata; return $senddata;
} }
foreach($game_arr as $k=>$v){ foreach($game_arr as $k=>$v){
if(empty($game[$k])) continue;
$senddata[$k]= ["turnover_ratio"=>[["name"=>"--","ratio"=>"--"]],"ratio"=>0,"relation_game_id"=>$k,"cp_ratio"=>[["name"=>"--","ratio"=>"--"]],"row"=>1]; $senddata[$k]= ["turnover_ratio"=>[["name"=>"--","ratio"=>"--"]],"ratio"=>0,"relation_game_id"=>$k,"cp_ratio"=>[["name"=>"--","ratio"=>"--"]],"row"=>1];
$senddata[$k]+= $game[$k];; $senddata[$k] += $game[$k];
} }
return $senddata; return $senddata;
} }

Loading…
Cancel
Save