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