|
|
@@ -193,12 +193,21 @@ class ForeignHaiRoboticsService
|
|
|
$status, //0:任务成功1:任务失败
|
|
|
$binCode
|
|
|
):bool{
|
|
|
+ LogService::log('海柔请求','taskUpdateIn1',
|
|
|
+ json_encode([
|
|
|
+ $stationTaskMaterialBox_id,
|
|
|
+ $updateEventType,
|
|
|
+ $status,
|
|
|
+ $binCode
|
|
|
+ ]));
|
|
|
$this->instant($this->stationTaskMaterialBoxService,'StationTaskMaterialBoxService');
|
|
|
try{
|
|
|
if(($failed
|
|
|
=$status)==1){
|
|
|
throw new ErrorException('海柔任务失败');
|
|
|
}
|
|
|
+ LogService::log('海柔请求','taskUpdateIn2',
|
|
|
+ $failed);
|
|
|
if($料箱不匹配=
|
|
|
!$stationTaskMaterialBox
|
|
|
=(function()use($stationTaskMaterialBox_id,$binCode){
|
|
|
@@ -206,8 +215,15 @@ class ForeignHaiRoboticsService
|
|
|
if($stationTaskMaterialBox['materialBox']['code']==$binCode)return $stationTaskMaterialBox;
|
|
|
return null;
|
|
|
})()){
|
|
|
- throw new ErrorException('发回的料箱和任务号(ID)不匹配');
|
|
|
+ throw new ErrorException('发回的料箱和任务号(ID)不匹配:$stationTaskMaterialBox_id:'
|
|
|
+ .$stationTaskMaterialBox_id.' $binCode:'.$binCode. ' '.
|
|
|
+ StationTaskMaterialBox::query()
|
|
|
+ ->where('id', $id=$stationTaskMaterialBox_id)
|
|
|
+ ->get()
|
|
|
+ ->toJson());
|
|
|
}
|
|
|
+ LogService::log('海柔请求','taskUpdateIn2',
|
|
|
+ $料箱不匹配);
|
|
|
($标记已放置在库外=
|
|
|
function()use($updateEventType,$stationTaskMaterialBox){
|
|
|
if(($isPut
|
|
|
@@ -215,6 +231,8 @@ class ForeignHaiRoboticsService
|
|
|
$this->stationTaskMaterialBoxService->markHasTaken($stationTaskMaterialBox);
|
|
|
}
|
|
|
})();
|
|
|
+ LogService::log('海柔请求','taskUpdateIn3',
|
|
|
+ $标记已放置在库外);
|
|
|
($标记已入立架=
|
|
|
function()use($updateEventType,$stationTaskMaterialBox){
|
|
|
if(($isGet
|
|
|
@@ -222,7 +240,11 @@ class ForeignHaiRoboticsService
|
|
|
$this->stationTaskMaterialBoxService->markPutStored($stationTaskMaterialBox);
|
|
|
}
|
|
|
})();
|
|
|
+ LogService::log('海柔请求','taskUpdateIn4',
|
|
|
+ $标记已入立架);
|
|
|
}catch (\Exception $e){
|
|
|
+ LogService::log('海柔请求','taskUpdateIn555',
|
|
|
+ $e->getMessage());
|
|
|
$this->excepted($stationTaskMaterialBox_id, $binCode, $e->getMessage());
|
|
|
return false;
|
|
|
}
|