|
|
@@ -20,14 +20,13 @@ class ChatController extends BaseController
|
|
|
{
|
|
|
return $this->renderPartial('index');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//绑定 shish 2019.12.28
|
|
|
public function actionBind()
|
|
|
{
|
|
|
$post = Yii::$app->request->post();
|
|
|
$clientId = isset($post['clientId']) ? $post['clientId'] : '';
|
|
|
$userId = $this->userId;
|
|
|
- Gateway::$registerAddress = '127.0.0.1:1238';
|
|
|
Gateway::bindUid($clientId, $userId);
|
|
|
}
|
|
|
|