renderPartial('index'); } //绑定 shish 2019.12.28 public function actionBind() { $post = Yii::$app->request->post(); $clientId = isset($post['clientId']) ? $post['clientId'] : ''; $userId = $this->userId; Gateway::bindUid($clientId, $userId); } //发消息给老板 shish 2019.12.28 public function actionSend() { $post = Yii::$app->request->post(); $msg = isset($post['msg']) ? $post['msg'] : ''; $id = 'merchant_' . $this->merchantId; $m = json_encode(array( 'type' => 'msg', 'msg' => $msg, )); Gateway::sendToUid($id, $m); } }