fixed
This commit is contained in:
@@ -225,9 +225,9 @@ class Cusorder extends Wxapp
|
||||
if (!$res['code']) {
|
||||
throw new Exception('网络错误,请联系管理员', ERR_PARAMS_ERROR);
|
||||
}
|
||||
throw new Exception('修改成功', API_CODE_SUCCESS);
|
||||
throw new Exception('审核通过,操作成功', API_CODE_SUCCESS);
|
||||
} else {
|
||||
throw new Exception('修改失败', ERR_PARAMS_ERROR);
|
||||
throw new Exception('操作失败,请联系管理员', ERR_PARAMS_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class Cusorderdata extends Wxapp
|
||||
$data['img_status'] = 1;
|
||||
$data['order_status'] = intval($row['status']);
|
||||
$row_data = $this->receiver_order_datas_model->get(['o_id' => $id]);
|
||||
$cardidb = $cardida = $business_licence = $car_img = [];
|
||||
$cardida = $business_licence = $car_img = [];
|
||||
if ($row_data['car_img']) {
|
||||
$car_img = [
|
||||
'value' => $row_data['car_img'],
|
||||
@@ -95,7 +95,6 @@ class Cusorderdata extends Wxapp
|
||||
}
|
||||
$imgs = [
|
||||
'cardida' => [],
|
||||
'cardidb' => [],
|
||||
'business_licence' => [],
|
||||
'car_img' => $car_img,
|
||||
'ins_img' => [],
|
||||
@@ -131,14 +130,7 @@ class Cusorderdata extends Wxapp
|
||||
'img' => build_qiniu_image_url($row_data['cardida'])
|
||||
];
|
||||
}
|
||||
if ($row_data['cardidb']) {
|
||||
$cardidb = [
|
||||
'value' => $row_data['cardidb'],
|
||||
'img' => build_qiniu_image_url($row_data['cardidb'])
|
||||
];
|
||||
}
|
||||
$data['imgs']['cardida'] = $cardida;
|
||||
$data['imgs']['cardidb'] = $cardidb;
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
@@ -157,7 +149,6 @@ class Cusorderdata extends Wxapp
|
||||
$this->receiver_order_datas_model->add(['o_id' => $id]);
|
||||
}
|
||||
$cardida = $this->input_param('cardida');
|
||||
$cardidb = $this->input_param('cardidb');
|
||||
$car_img = $this->input_param('car_img');
|
||||
|
||||
$business_licence = $this->input_param('business_licence');
|
||||
@@ -177,7 +168,6 @@ class Cusorderdata extends Wxapp
|
||||
$res_data['code'] = API_CODE_ORC_FAIL;
|
||||
$res_data['data'] = [
|
||||
['caridA' => false, 'errmsg' => $result['msg']],
|
||||
['caridB' => true, 'errmsg' => ''],
|
||||
];
|
||||
return $res_data;
|
||||
}
|
||||
@@ -187,7 +177,6 @@ class Cusorderdata extends Wxapp
|
||||
$res_data['code'] = API_CODE_ORC_FAIL;
|
||||
$res_data['data'] = [
|
||||
['caridA' => false, 'errmsg' => '身份证姓名与客户不一致'],
|
||||
['caridB' => true, 'errmsg' => ''],
|
||||
];
|
||||
return $res_data;
|
||||
}
|
||||
@@ -196,7 +185,6 @@ class Cusorderdata extends Wxapp
|
||||
$res_data['code'] = API_CODE_ORC_FAIL;
|
||||
$res_data['data'] = [
|
||||
['caridA' => false, 'errmsg' => '身份证号码与客户不一致'],
|
||||
['caridB' => true, 'errmsg' => ''],
|
||||
];
|
||||
return $res_data;
|
||||
}
|
||||
@@ -217,10 +205,6 @@ class Cusorderdata extends Wxapp
|
||||
} elseif ($business_img) {
|
||||
$update['business_img'] = $business_img;
|
||||
} else {
|
||||
if ($cardidb) {
|
||||
$key = 'cardidb';
|
||||
$img = $cardidb;
|
||||
}
|
||||
if ($car_img) { //图片识别行驶证
|
||||
$key = 'car_img';
|
||||
$img = $car_img;
|
||||
@@ -262,7 +246,12 @@ class Cusorderdata extends Wxapp
|
||||
//发票识别
|
||||
$result = $this->order_datas_entity->orc_bill_img($id, build_qiniu_image_url($bill_img));
|
||||
if (!$result['code']) {
|
||||
throw new Exception($result['msg'], ERR_PARAMS_ERROR);
|
||||
$res_data['code'] = API_CODE_ORC_FAIL;
|
||||
$res_data['data'] = [
|
||||
['bill_img' => false, 'errmsg' => $result['msg']],
|
||||
];
|
||||
return $res_data;
|
||||
//throw new Exception($result['msg'], ERR_PARAMS_ERROR);
|
||||
}
|
||||
$jsondata['bill_info'] = $result['data'];
|
||||
$update['jsondata'] = json_encode($jsondata, JSON_UNESCAPED_UNICODE);
|
||||
|
||||
Reference in New Issue
Block a user