master
sunke 5 years ago
parent 55316d475f
commit d31f5c8691

@ -921,7 +921,7 @@ class ToolController extends ThinkController {
$parameter['pay_type'] = $payType; $parameter['pay_type'] = $payType;
} }
if (!empty($limit_type)) { if (!empty($limit_type)) {
$map['limit_type'] = $limit_type; $map['limit_type'] = $limit_type;
$parameter['limit_type'] = $limit_type; $parameter['limit_type'] = $limit_type;
} }
@ -981,7 +981,7 @@ class ToolController extends ThinkController {
} }
} }
if ($data['limit_type'] == 'force') { if ($data['limit_type'] == 'force') {
$datas[$key]['limit_type'] = '强制模式'; $datas[$key]['limit_type'] = '强制限制';
} }
if ($data['limit_type'] == 'obstacles') { if ($data['limit_type'] == 'obstacles') {
$datas[$key]['limit_type'] = '支付体验障碍'; $datas[$key]['limit_type'] = '支付体验障碍';
@ -1064,7 +1064,10 @@ class ToolController extends ThinkController {
return $this->error('限额不能为空'); return $this->error('限额不能为空');
} }
if (!is_numeric($total_limit) || !is_numeric($user_total_limit) || !is_numeric($user_one_limit) || $total_limit < 0 ||$user_total_limit < 0 ||$user_one_limit < 0 ) { if (!is_numeric($total_limit) || !is_numeric($user_total_limit) || !is_numeric($user_one_limit) || $total_limit < 0 ||$user_total_limit < 0 ||$user_one_limit < 0 ) {
return $this->error('限额金额出错'); return $this->error('限制金额出错');
}
if (intval($total_limit) > 1000000000000.00 || intval($user_total_limit) > 1000000000000.00 ||intval($user_one_limit) > 1000000000000.00) {
return $this->error('限制金额超出范围');
} }
if (empty($limit_type)) { if (empty($limit_type)) {
return $this->error('限制方式不能为空'); return $this->error('限制方式不能为空');
@ -1204,6 +1207,9 @@ class ToolController extends ThinkController {
if (empty($id)) { if (empty($id)) {
return $this->error('编辑信息出错'); return $this->error('编辑信息出错');
} }
if (intval($total_limit) > 1000000000000.00 || intval($user_total_limit) > 1000000000000.00 ||intval($user_one_limit) > 1000000000000.00) {
return $this->error('限制金额超出范围');
}
$confInfo = M('pay_limit_conf', 'tab_')->where(['id'=>$id])->find(); $confInfo = M('pay_limit_conf', 'tab_')->where(['id'=>$id])->find();
$confInfo['pay_type'] = $pay_type; $confInfo['pay_type'] = $pay_type;

Loading…
Cancel
Save