edit-api-pay
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -361,7 +361,8 @@ class Customers extends Wxapp{
|
||||
}
|
||||
|
||||
$where = [
|
||||
'biz_id' => $biz_id
|
||||
'biz_id' => $biz_id,
|
||||
'status>=' => 0
|
||||
];
|
||||
|
||||
if($group_id==1 || $ismy){
|
||||
|
||||
Reference in New Issue
Block a user