Explorar el Código

ws 绑定员工adminId

林琦海 hace 5 años
padre
commit
63e270da81
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      app-ghs/controllers/WsController.php

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

@@ -15,8 +15,8 @@ class WsController extends BaseController
     {
         $post = Yii::$app->request->post();
         $clientId = isset($post['clientId']) ? $post['clientId'] : '';
-        $adminId = $this->adminId;
-        Gateway::bindUid($clientId, $adminId);
+        $shopAdminId = $this->shopAdminId;
+        Gateway::bindUid($clientId, $shopAdminId);
         util::complete();
     }
 
@@ -31,7 +31,7 @@ class WsController extends BaseController
     //模拟推送ws (仅供测试联调用)
     public function actionSend()
     {
-        WsService::arrivalNotice($this->adminId,1.2);
+        WsService::arrivalNotice($this->shopAdminId,9866.29);
         util::complete();
     }
 }