linux Gateway::bindUid 绑定失败

zhenhua2340
        $user = $request->user();
        $client_id = $request->input('client_id');
        Gateway::bindUid($client_id, $user->uid);
        return response()->json(['errCode' => 0, 'errMsg' => '绑定成功', 'data' => [
            'user_id' => $user->uid, 'client_id' => $client_id, "isOnline" => Gateway::isUidOnline($user->uid)
        ]]);

本地 win 开发,这里没问题,

当部署到服务器 centos 上的时候 Gateway::isUidOnline 返回的都是 0

说明 Gateway::bindUid 绑定失败了,请问是什么原因

2848 1 0
1个回答

six

猜测可能是连接断开了吧。或者哪里配置不对。

  • 暂无评论
年代过于久远,无法发表回答
🔝