edit-api-pay

This commit is contained in:
lccsw
2021-09-28 09:40:00 +08:00
parent 2b38a1190f
commit 4d6ac379a6
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ class Pay extends Wxapp{
throw new Exception('订单已支付', API_CODE_FAIL);
}
if($row['type']==3){ //判断服务费是否支付
$srv_pay = $this->app_liche_orders_model->count(['o_id'=>$row['o_id'],'uid'=>$this->uid,'type'=>2,'status'=>1]);
if(!$srv_pay){
$srv_pay = $this->app_liche_orders_model->count(['o_id'=>$row['o_id'],'uid'=>$this->uid,'type'=>2,'status'=>0]);
if($srv_pay){
throw new Exception('请先支付委托服务费', API_CODE_FAIL);
}
}
+1 -1
View File
@@ -86,7 +86,7 @@ class Cusorder extends Wxapp{
throw new Exception('参数错误', ERR_PARAMS_ERROR);
}
if($inten_money > $deposit){
throw new Exception('意向金于定金', ERR_PARAMS_ERROR);
throw new Exception('意向金不得高于定金', ERR_PARAMS_ERROR);
}
//判断是否存在未完成流程
$omobile = $mobile ? $mobile : $row['mobile'];
+2 -1
View File
@@ -361,7 +361,8 @@ class Customers extends Wxapp{
}
$where = [
'biz_id' => $biz_id
'biz_id' => $biz_id,
'status>=' => 0
];
if($group_id==1 || $ismy){