Commit ea33d928c661bbbb9de1fcc9bbc969c71a306bd0

Authored by 陆恒
1 parent ab178ebb
Exists in master

提交

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
src/HttpServer/logic/logic.go
@@ -2863,11 +2863,13 @@ func HandlerQueryGambling(w http.ResponseWriter, data string, uuid int) { @@ -2863,11 +2863,13 @@ func HandlerQueryGambling(w http.ResponseWriter, data string, uuid int) {
2863 } 2863 }
2864 var his AlreadyDuboCatList 2864 var his AlreadyDuboCatList
2865 json.Unmarshal([]byte(ss), &his) 2865 json.Unmarshal([]byte(ss), &his)
2866 - hisinfo, err := GetUserInfo(strconv.Itoa(his.RewardUser))  
2867 - logger.Info("HandlerQueryGambling his=%+v", his)  
2868 - if err == nil && hisinfo != nil {  
2869 - rewardhead = hisinfo.Head  
2870 - rewardnickname = hisinfo.NickName 2866 + if his.RewardUser != 0 {
  2867 + hisinfo, err := GetUserInfo(strconv.Itoa(his.RewardUser))
  2868 + logger.Info("HandlerQueryGambling his=%+v", his)
  2869 + if err == nil && hisinfo != nil {
  2870 + rewardhead = hisinfo.Head
  2871 + rewardnickname = hisinfo.NickName
  2872 + }
2871 } else { 2873 } else {
2872 //todo 2874 //todo
2873 rewardhead = "1" 2875 rewardhead = "1"