/// <summary> /// 业务逻辑处理 /// </summary> /// <returns>false:中断后面的方式执行并返回Error</returns> public override bool TakeAction() { string key = CryptoHelper.MD5_Encrypt("" + _serverId + _tstamp + GlobalDefine.LoginSwitch_Key, Encoding.UTF8); if (key == _word && !WbzServerHelper.IsExistWabaoziS()) { Current.Bind(new SessionUser() { UserId = (int)GlobalDefine.ServerIdType.WabaoziId, PassportId = string.Format("WabaoziS-{0}", _serverId) }); //设置忽略锁 Current.SetIgoreLock(true, actionId); WbzServerHelper.SetWabaoziS(Current); _packet.Ret = 1; } else { _packet.Ret = 0; } // SendLoginResult(); // IsNotRespond = true; return(true); }
/// <summary> /// 业务逻辑处理 /// </summary> /// <returns>false:中断后面的方式执行并返回Error</returns> public override bool TakeAction() { WbzServerHelper.OnCloseWabaoziSBefore(Current); return(true); }