request->post(); $clientId = isset($post['clientId']) ? $post['clientId'] : ''; $eId = $this->shopAdminId; // Gateway::bindUid($clientId, $eId); goWs::bindUid($eId,$clientId); util::complete(); } //关闭当前链接 public function actionClose() { $post = Yii::$app->request->post(); $clientId = isset($post['clientId']) ? $post['clientId'] : ''; Gateway::closeClient($clientId); } //模拟推送ws (仅供测试联调用) public function actionSend() { WsService::arrivalNotice($this->shopAdminId, 9866.29,1); util::complete(); } //模拟推送订单通知 public function actionSendOrder() { WsService::newOrderNotice($this->shopAdminId); util::complete(); } }