修改上报检测所时,图片为空的情况
This commit is contained in:
parent
9a2cb72848
commit
c1c68f24c2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user