Browse Source

ws 测试推送

林琦海 5 năm trước cách đây
mục cha
commit
af169ddaee

+ 1 - 1
app-ghs/controllers/WsController.php

@@ -38,7 +38,7 @@ class WsController extends BaseController
     //模拟推送ws (仅供测试联调用)
     public function actionSend()
     {
-        WsService::arrivalNotice($this->shopAdminId, 9866.29);
+        WsService::arrivalNotice($this->shopAdminId, 9866.29,1);
         util::complete();
     }
 

+ 7 - 1
app-hd/controllers/WsController.php

@@ -39,7 +39,13 @@ class WsController extends BaseController
     //模拟推送ws (仅供测试联调用)
     public function actionSend()
     {
-        WsService::arrivalNotice($this->shopAdminId, 9866.29);
+        WsService::arrivalNotice($this->shopAdminId, 9866.29,1);
+        util::complete();
+    }
+    //模拟推送订单通知
+    public function actionSendOrder()
+    {
+        WsService::newOrderNotice($this->shopAdminId);
         util::complete();
     }
 }