diff --git a/app/controller/IndexController.php b/app/controller/IndexController.php index 1d354c8..10969ac 100644 --- a/app/controller/IndexController.php +++ b/app/controller/IndexController.php @@ -116,16 +116,9 @@ class IndexController public function test(Request $request) { - // $chain = \app\common\service\MenuBadgeService::buildBadgeChain(menuId: 226, leafCount: rand(1, 10)); - // (new \app\common\utils\WsEvents())->pushWebsocket('approval.todo.counts', 74, $chain); - - // $data = [ - // 'event' => 'approval.todo.counts', - // 'user_id' => 74, - // 'num' => rand(1, 10), - // ]; - // \Webman\RedisQueue\Redis::send('ws-msg', $data); - + $id = $request->get('id'); + $service = new \app\common\service\StockOrdersService(); + $service->createdPdfFile($id); return json(['code' => 0, 'msg' => 'success']); }