edit-api-add_order_limit
This commit is contained in:
@@ -100,6 +100,15 @@ class CusorderV2 extends Wxapp{
|
||||
if(!$cardid || !$owner_name || !$owner_mobile || !$owner_cardid){
|
||||
throw new Exception('参数错误', ERR_PARAMS_ERROR);
|
||||
}
|
||||
//同个品牌一个身份证只能下一单
|
||||
$where = [
|
||||
'brand_id' => $series_row['brand_id'],
|
||||
"JSON_EXTRACT(info_json,'$.c_cardid')='{$cardid}'" => null,
|
||||
'status>=' => 0
|
||||
];
|
||||
if($this->orders_model->count($where)){
|
||||
throw new Exception('一个客户只能享受一次国补,请联系管理员', ERR_PARAMS_ERROR);
|
||||
}
|
||||
}
|
||||
if($deposit<2000){
|
||||
throw new Exception('定金不得少于2000', ERR_PARAMS_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user