public void Cleanup() { if (_isLogin) { _api.UserLogout(-4); } else if (_isConnected) { _api.Disconnect(); } Thread.Sleep(100); }
/// <summary> /// 用户登出 /// </summary> /// <param name="callback">登出回调</param> public void UserLogout(DataCallback callback) { int requestID = AddCallback(callback, -4); _api.UserLogout(requestID); }