public Message ModifyUserInfo(Base_Users user) { Message message = GameWebRules.CheckedUserToModify(ref user); if (!message.Success) { return(message); } Base_Users userByUserID = GetUserByUserID(user.UserID); if (userByUserID.Username != user.Username) { message = ExistUserAccounts(user.Username); if (message.Success) { message.Success = false; return(message); } } aidePlatformManagerData.ModifyUserInfo(user); return(new Message(true)); }
/// <summary> /// 修改资料 /// </summary> /// <param name="user"></param> /// <returns></returns> public Message ModifyUserInfo(Base_Users user) { Message msg = GameWebRules.CheckedUserToModify(ref user); if (!msg.Success) { return(msg); } Base_Users extUser = GetUserByUserID(user.UserID); //if (extUser.Username != user.Username) //{ // msg = ExistUserAccounts(user.Username); // if (!msg.Success) // { // msg.Success = false; // return msg; // } //} aidePlatformManagerData.ModifyUserInfo(user); return(new Message(true)); }