比例体系修改

master
zhengyongxing 4 years ago
parent da8cd1e984
commit cd41447eb8

@ -44,7 +44,7 @@ class CompanySystemRatioController extends AdminController
$handleData = $this->getCpGameRatio($handleData);
$data = $this->handleRatio($handleData);
// dump($handleData);die();
// dump($data);die();
$gameData = M("game","tab_")->field("original_package_name,relation_game_name game_name,game_type_name,relation_game_id game_id")
->where($map)
@ -202,8 +202,8 @@ class CompanySystemRatioController extends AdminController
if ($finalData[$key][$v['turnover']]["instanceof"] != $v["instanceof"]) {
$finalData[$key][$v['turnover']]["instanceof"] = 0;
$finalData[$key][$v['turnover']."eq"] = $finalData[$key][$v['turnover']];
$finalData[$key][$v['turnover']."eq"]['is_equal'] = 1;
$finalData[$key][$v['turnover']."ed"] = $finalData[$key][$v['turnover']];
$finalData[$key][$v['turnover']."ed"]['is_equal'] = 1;
}
continue;
@ -217,7 +217,14 @@ class CompanySystemRatioController extends AdminController
}
}
foreach ($finalData as $key => $value) {
$last_names = array_column($finalData[$key],'turnover');
array_multisort($last_names,SORT_ASC,$finalData[$key]);
}
// dump($finalData);
$data = [];
foreach ($finalData as $key => $value) {
@ -240,13 +247,14 @@ class CompanySystemRatioController extends AdminController
}
}
// dump($data);die();
foreach ($data as $key => $value) {
$last_names = array_column($data[$key],'turnover');
array_multisort($last_names,SORT_ASC,$data[$key]);
}
// foreach ($data as $key => $value) {
//
// $last_names = array_column($data[$key],'turnover');
// array_multisort($last_names,SORT_ASC,$data[$key]);
//
// }
// dump($data);

Loading…
Cancel
Save