Commit b4b5d32890bd6ab171cef28b347451088c63feaa

Authored by 陆恒
1 parent 8d97c965
Exists in master

提交

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/HttpServer/logic/logic.go
@@ -1077,7 +1077,9 @@ func HandlerLogin(w http.ResponseWriter, data string, uniqueuuid, gameid, channe @@ -1077,7 +1077,9 @@ func HandlerLogin(w http.ResponseWriter, data string, uniqueuuid, gameid, channe
1077 } 1077 }
1078 1078
1079 resp.Data.Guangold = uinfo.GuanGold 1079 resp.Data.Guangold = uinfo.GuanGold
1080 - resp.Data.Walletgold = uinfo.RealGold 1080 + gold, _ := GetCoinFromSdk(uuid, gameid, channel)
  1081 + uinfo.RealGold = gold
  1082 + resp.Data.Walletgold = gold
1081 1083
1082 resp.Data.Isnew = 0 1084 resp.Data.Isnew = 0
1083 1085
@@ -1094,6 +1096,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uniqueuuid, gameid, channe @@ -1094,6 +1096,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uniqueuuid, gameid, channe
1094 } 1096 }
1095 1097
1096 resp.Data.Offlinegold = uinfo.OfflineGold 1098 resp.Data.Offlinegold = uinfo.OfflineGold
  1099 + SaveUserInfo(uinfo, uniqueuuid)
1097 } 1100 }
1098 1101
1099 pdata, err := GetUserSelfData(uniqueuuid) 1102 pdata, err := GetUserSelfData(uniqueuuid)