시스템 오류 수정
This commit is contained in:
parent
855edfbf31
commit
1bcb8343e3
|
|
@ -18,11 +18,11 @@ namespace Server.Service
|
||||||
{
|
{
|
||||||
Statics.userSQL.Update(req.user);
|
Statics.userSQL.Update(req.user);
|
||||||
|
|
||||||
Dictionary<string, object> saveUser = new Dictionary<string, object>();
|
Dictionary<string, string> saveUser = new Dictionary<string, string>();
|
||||||
saveUser.Add("nickname", req.user.nickname);
|
saveUser.Add("nickname", req.user.nickname);
|
||||||
saveUser.Add("gold", req.user.gold);
|
saveUser.Add("gold", req.user.gold.ToString());
|
||||||
saveUser.Add("free_cash", req.user.free_cash);
|
saveUser.Add("free_cash", req.user.free_cash.ToString());
|
||||||
saveUser.Add("pay_cash", req.user.pay_cash);
|
saveUser.Add("pay_cash", req.user.pay_cash.ToString());
|
||||||
Statics.redis.SetHash(saveUser, "UserInfo", req.uuid);
|
Statics.redis.SetHash(saveUser, "UserInfo", req.uuid);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@ namespace Server.Service
|
||||||
{
|
{
|
||||||
Statics.userSQL.Update(req.user);
|
Statics.userSQL.Update(req.user);
|
||||||
|
|
||||||
Dictionary<string, object> saveUser = new Dictionary<string, object>();
|
Dictionary<string, string> saveUser = new Dictionary<string, string>();
|
||||||
saveUser.Add("nickname", req.user.nickname);
|
saveUser.Add("nickname", req.user.nickname);
|
||||||
saveUser.Add("gold", req.user.gold);
|
saveUser.Add("gold", req.user.gold.ToString());
|
||||||
saveUser.Add("free_cash", req.user.free_cash);
|
saveUser.Add("free_cash", req.user.free_cash.ToString());
|
||||||
saveUser.Add("pay_cash", req.user.pay_cash);
|
saveUser.Add("pay_cash", req.user.pay_cash.ToString());
|
||||||
Statics.redis.SetHash(saveUser, "UserInfo", req.uuid);
|
Statics.redis.SetHash(saveUser, "UserInfo", req.uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -30,8 +30,8 @@ namespace Server.Service
|
||||||
|
|
||||||
//만약 시스템 설정과 같은 닉네임이 온다면 중복 처리
|
//만약 시스템 설정과 같은 닉네임이 온다면 중복 처리
|
||||||
if (newNickname == defaultNick)
|
if (newNickname == defaultNick)
|
||||||
{
|
{
|
||||||
throw new RuntimeException("Duplicate nickname", Error.ErrorData);
|
throw new RuntimeException("Duplicate nickname", Error.ErrorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
//닉네임 체크
|
//닉네임 체크
|
||||||
|
|
@ -94,4 +94,4 @@ namespace Server.Service
|
||||||
public string nickname;
|
public string nickname;
|
||||||
public uint cash;
|
public uint cash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue