|
|
@@ -25,6 +25,7 @@ class PackageController
|
|
|
$requestInput[strtolower($key)] = $item;
|
|
|
}
|
|
|
|
|
|
+ app('LogService')->log(__METHOD__,'GoodScan weightApi add'.__FUNCTION__,json_encode($request->getContent()));
|
|
|
$errors = $this->validatorWeight($requestInput)->errors(); // 参数校验
|
|
|
if($requestInput['weight'] == '-9.9'){ // 称重异常校验
|
|
|
app('LogService')->log(__METHOD__,'GoodScan weightApi (Error)'.__FUNCTION__,'异方接口称重伤上传异常[异常值为-9.9,电子秤故障或未连接]');
|
|
|
@@ -94,7 +95,7 @@ class PackageController
|
|
|
'h' => ['required', 'numeric', 'min:0'],
|
|
|
'weight' => ['required', 'numeric', 'min:0'],
|
|
|
'hid' => ['required', 'string', 'min:0'],
|
|
|
- 'picture' => ['required', 'string', 'min:0'],
|
|
|
+ 'picture' => ['nullable'],
|
|
|
], [
|
|
|
'required' => ':attribute 为必填项',
|
|
|
'max' => ':attribute 字符过多或数值过大',
|
|
|
@@ -215,7 +216,9 @@ class PackageController
|
|
|
return OracleDOCOrderHeader::query()->with('actAllocationDetails','oracleBASCode')
|
|
|
->whereHas('actAllocationDetails',function($query)use($logisticNumber){
|
|
|
$query->where('picktotraceid',$logisticNumber);
|
|
|
- })->orWhere('soreference5',$logisticNumber)->first();
|
|
|
+ })
|
|
|
+// ->orWhere('soreference5',$logisticNumber)
|
|
|
+ ->first();
|
|
|
}
|
|
|
|
|
|
/**
|