private void UpdateUserNickNameToDB(CSUser user)
 {
     CSToDB.ChangeNickName changeNickName = new CSToDB.ChangeNickName
     {
         Nickname = user.nickname,
         Guid     = ( long )user.guid
     };
     this._cdkeyWrapper.EncodeAndSendToDBThread(changeNickName, ( int )CSToDB.MsgID.EChangeNickNameDbcall);
 }
Beispiel #2
0
        private ErrorCode DBAsynChangeNickNameCallBack(GBuffer buffer, DBActiveWrapper db)
        {
            CSToDB.ChangeNickName sChangeNickName = new CSToDB.ChangeNickName();
            sChangeNickName.MergeFrom(buffer.GetBuffer(), 0, ( int )buffer.length);
            string mystream =
                $"update account_user set user_name=\'{sChangeNickName.Nickname}\' where id={sChangeNickName.Guid};";
            ErrorCode errorCode = db.SqlExecNonQuery(mystream);

            return(errorCode);
        }