diff --git a/api/controllers/wxapp/liche/Pay.php b/api/controllers/wxapp/liche/Pay.php index 918bfd06..ae83fe9a 100644 --- a/api/controllers/wxapp/liche/Pay.php +++ b/api/controllers/wxapp/liche/Pay.php @@ -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); } } diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php index 2342729d..055a5479 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -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']; diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index af1e1312..9c5955a4 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -361,7 +361,8 @@ class Customers extends Wxapp{ } $where = [ - 'biz_id' => $biz_id + 'biz_id' => $biz_id, + 'status>=' => 0 ]; if($group_id==1 || $ismy){