|
|
@@ -67,29 +67,29 @@ class CacheShelfController extends Controller
|
|
|
return $gridService->lightOn($station,$request['x'],$request['y']);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 拍灯推送任务
|
|
|
- * @param Request $request
|
|
|
- * @param CacheShelfService $service
|
|
|
- */
|
|
|
- public function pushTaskApi(Request $request,CacheShelfService $service)
|
|
|
- {
|
|
|
- /**
|
|
|
- * @var Station $station
|
|
|
- * @var MaterialBox $materialBox
|
|
|
- * @var StationCacheShelfGrid $grid
|
|
|
- */
|
|
|
- $station = Station::query()->where('id',$request['id'])->first();
|
|
|
- $materialBox = MaterialBox::query()->where('code',$request['code'])->first();
|
|
|
- $grid = StationCacheShelfGrid::query()->where(['station_id'=>$station['id'],'grid_id'=>$request['index']])->first();
|
|
|
-
|
|
|
- try {
|
|
|
- $bool = $service->putBinToStore($station, $materialBox, $grid);
|
|
|
- if($bool)$this->success();
|
|
|
- else $this->error('推送任务异常');
|
|
|
- } catch (ErrorException $e) {
|
|
|
- $this->error($e->getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 拍灯推送任务
|
|
|
+// * @param Request $request
|
|
|
+// * @param CacheShelfService $service
|
|
|
+// */
|
|
|
+// public function pushTaskApi(Request $request,CacheShelfService $service)
|
|
|
+// {
|
|
|
+// /**
|
|
|
+// * @var Station $station
|
|
|
+// * @var MaterialBox $materialBox
|
|
|
+// * @var StationCacheShelfGrid $grid
|
|
|
+// */
|
|
|
+// $station = Station::query()->where('id',$request['id'])->first();
|
|
|
+// $materialBox = MaterialBox::query()->where('code',$request['code'])->first();
|
|
|
+// $grid = StationCacheShelfGrid::query()->where(['station_id'=>$station['id'],'grid_id'=>$request['index']])->first();
|
|
|
+//
|
|
|
+// try {
|
|
|
+// $bool = $service->putBinToStore($station, $materialBox, $grid);
|
|
|
+// if($bool)$this->success();
|
|
|
+// else $this->error('推送任务异常');
|
|
|
+// } catch (ErrorException $e) {
|
|
|
+// $this->error($e->getMessage());
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
}
|