|
|
|
@ -653,15 +653,15 @@ class CompanyGameRatioController extends AdminController
|
|
|
|
|
$this->error('月流水必须以正序的方式填写,且必须大于上一个月流水');
|
|
|
|
|
}
|
|
|
|
|
$ratio = $params['ratio'] ?? 0;
|
|
|
|
|
if ($params['turnover_ratio'][0] <= $ratio) {
|
|
|
|
|
$this->error('月流水分成比例必须大于默认分成比例');
|
|
|
|
|
}
|
|
|
|
|
// if ($params['turnover_ratio'][0] <= $ratio) {
|
|
|
|
|
// $this->error('月流水分成比例必须大于默认分成比例');
|
|
|
|
|
// }
|
|
|
|
|
$turnoverRatioCount = count($params['turnover_ratio']);
|
|
|
|
|
$sortTurnoverRatio = $params['turnover_ratio'];
|
|
|
|
|
sort($sortTurnoverRatio);
|
|
|
|
|
if ($params['turnover_ratio'] != $sortTurnoverRatio || $turnoverRatioCount != count(array_unique($params['turnover_ratio']))) {
|
|
|
|
|
$this->error('月流水分成比例必须以正序的方式填写,且必须大于上一个月流水分成比例');
|
|
|
|
|
}
|
|
|
|
|
// if ($params['turnover_ratio'] != $sortTurnoverRatio || $turnoverRatioCount != count(array_unique($params['turnover_ratio']))) {
|
|
|
|
|
// $this->error('月流水分成比例必须以正序的方式填写,且必须大于上一个月流水分成比例');
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
foreach ($params['turnover'] as $key => $turnover) {
|
|
|
|
|
$save['turnover_ratio'][] = [
|
|
|
|
|