From 0922dca817e4d640a2d58d45f086322caf7dc17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Tue, 18 Jun 2024 01:31:39 +0800 Subject: [PATCH] fixed --- api/controllers/wxapp/licheb/Cusorder.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php index 29ebdcf5..08b30d24 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -207,16 +207,16 @@ class Cusorder extends Wxapp $data_row = $this->receiver_order_datas_model->get(['o_id' => $id]); if (!$row || !$status) throw new Exception('参数错误', ERR_PARAMS_ERROR); if ($status == 1) { //下定信息确认无误 判断:合同、付款凭证、身份证、权益书必须上传 - if (!$data_row['contract_img']) throw new Exception('请上传合同', ERR_PARAMS_ERROR); - if (!$data_row['cardida'] && !$row['main_type']) throw new Exception('请上传身份证', ERR_PARAMS_ERROR); - if (!$data_row['bill_img'] && $row['main_type']) throw new Exception('请上传营业执照', ERR_PARAMS_ERROR); - if (!$data_row['pay_img']) throw new Exception('请上传付款凭证', ERR_PARAMS_ERROR); - if (!$data_row['equity_ck_img']) throw new Exception('请上传权益书', ERR_PARAMS_ERROR); + if (!$data_row['contract_img']) throw new Exception('合同未上传', ERR_PARAMS_ERROR); + if (!$data_row['cardida'] && !$row['main_type']) throw new Exception('身份证未上传', ERR_PARAMS_ERROR); + if (!$data_row['bill_img'] && $row['main_type']) throw new Exception('营业执照未上传', ERR_PARAMS_ERROR); + if (!$data_row['pay_img']) throw new Exception('付款凭证未上传', ERR_PARAMS_ERROR); + if (!$data_row['equity_ck_img']) throw new Exception('权益书未上传', ERR_PARAMS_ERROR); } elseif ($status == 2) { //开票信息确认无误:判断 发票 必须上传 - if (!$data_row['bill_img']) throw new Exception('请上传发票', ERR_PARAMS_ERROR); + if (!$data_row['bill_img']) throw new Exception('发票未上传', ERR_PARAMS_ERROR); } elseif ($status == 3) {//车辆交付信息: 判断 行驶证、保单 必须上传 - if (!$data_row['car_img']) throw new Exception('请上传行驶证', ERR_PARAMS_ERROR); - if (!$data_row['insurance_img']) throw new Exception('请上传保单', ERR_PARAMS_ERROR); + if (!$data_row['car_img']) throw new Exception('行驶证未上传', ERR_PARAMS_ERROR); + if (!$data_row['insurance_img']) throw new Exception('保单未上传', ERR_PARAMS_ERROR); } $res = $this->orders_model->update(['status' => $status], ['id' => $id]); if ($res) {