edit-api-brokerage_limit

This commit is contained in:
lccsw
2021-12-27 11:40:04 +08:00
parent 553fb5f3d7
commit 97b7bdcbb8
@@ -49,6 +49,9 @@ class Brokerage extends Wxapp
if($row){
throw new Exception('数据已存在', ERR_PARAMS_ERROR);
}
if($brokerage_1+$brokerage_2>3000){
throw new Exception('总分佣金额不得大于3000', API_CODE_FAIL);
}
$data = [
'biz_id' => $biz_id,
'brokerage_1' => $brokerage_1,
@@ -73,6 +76,9 @@ class Brokerage extends Wxapp
if(!$row){
throw new Exception('数据不存在', ERR_PARAMS_ERROR);
}
if($brokerage_1+$brokerage_2>3000){
throw new Exception('总分佣金额不得大于3000', API_CODE_FAIL);
}
$up_data = [
'brokerage_1' => $brokerage_1,
'brokerage_2' => $brokerage_2