|
|
@@ -224,13 +224,16 @@ class TestController extends Controller
|
|
|
}
|
|
|
public function test()
|
|
|
{
|
|
|
-
|
|
|
- $a = memory_get_usage();
|
|
|
- $tmp = str_repeat('http://blog.huachen.me/', 4000);
|
|
|
- $b = memory_get_usage();
|
|
|
- dump($b-$a);
|
|
|
- dd(Notification::send(User::query()->where("name","zhouzhendong")->get(),
|
|
|
- new RoutineNotification(SeeLog::query()->first()->toArray())));
|
|
|
+ $ForeignHaiRoboticsService = new ForeignHaiRoboticsService();
|
|
|
+ $stationService = new StationService();
|
|
|
+ $station = Station::query()->find(14);
|
|
|
+ $station->materialBox = MaterialBox::query()->where("code","IDE0002482")->first();
|
|
|
+
|
|
|
+ /** @var StationTaskMaterialBox $stationTaskMaterialBox */
|
|
|
+ $stationTaskMaterialBox = app("StorageService")->createWarehousingTask($stationService->getStation_byType('立库')["id"],$station->materialBox->id);
|
|
|
+ app("CacheShelfService")->lightUp($station->code,'3','0',['title'=>"等待机器人拿走,请勿操作"]);
|
|
|
+ Cache::forever("CACHE_SHELF_OCCUPANCY_{$station->id}",true);
|
|
|
+ dd($ForeignHaiRoboticsService->putBinToStore_fromCacheShelf($stationTaskMaterialBox, $station));
|
|
|
$user = Auth::user();
|
|
|
$remark = "zengjunlj";
|
|
|
$ownerName = 'zengjunlj' ?? '';
|