From c1c68f24c2eb5825f37f07036398bb41a6eb4b1c Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 17 Aug 2023 17:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E6=8A=A5=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E6=89=80=E6=97=B6=EF=BC=8C=E5=9B=BE=E7=89=87=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DetectionService.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Services/DetectionService.php b/app/Services/DetectionService.php index 6fd2aff..c1c8575 100644 --- a/app/Services/DetectionService.php +++ b/app/Services/DetectionService.php @@ -538,9 +538,7 @@ class DetectionService extends BaseService $detection_pic = PcreMatch::pregRemoveOssWebsite($detection_pic); } - if (!isset($detection_pic)){ - return fail(HttpEnumCode::HTTP_ERROR,"上传图片失败"); - } + // 检测检测管编码是否已被使用 $params = array(); @@ -568,7 +566,10 @@ class DetectionService extends BaseService try { // 修改检测订单 $data = array(); - $data['detection_pic'] = $detection_pic; + if (isset($detection_pic)){ + $data['detection_pic'] = $detection_pic; + } + $data['detection_bar_code'] = $request_params['detection_bar_code']; $data['detection_status'] = 3; $data['detection_organ_id'] = $basic_detection_organ['detection_organ_id'];// 检测机构id