Commit 3b0e90e21bb4d8155e49974ed19f0c1c22ae9335
1 parent
39c94d41
Exists in
master
and in
4 other branches
提交
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/HttpServer/logic/errordef.go
@@ -21,4 +21,5 @@ const ( | @@ -21,4 +21,5 @@ const ( | ||
21 | ERROR_LVREWARDALREADYGET = 17 //当前等级奖励已经领取过了 | 21 | ERROR_LVREWARDALREADYGET = 17 //当前等级奖励已经领取过了 |
22 | ERROR_SINGALREADYTODAY = 18 //今日已经签过到啦 | 22 | ERROR_SINGALREADYTODAY = 18 //今日已经签过到啦 |
23 | ERROR_SINGDATAFAILED = 19 //签到数据异常 | 23 | ERROR_SINGDATAFAILED = 19 //签到数据异常 |
24 | + ERROR_GUANCNTNOTENOUGH = 20 //存钱罐次数不足 | ||
24 | ) | 25 | ) |
src/HttpServer/logic/logic.go
@@ -687,9 +687,9 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { | @@ -687,9 +687,9 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { | ||
687 | //判断一下是否满足提取条件 | 687 | //判断一下是否满足提取条件 |
688 | totalcnt := uinfo.CalcTotalCnt() | 688 | totalcnt := uinfo.CalcTotalCnt() |
689 | if totalcnt <= uinfo.GetFromGuanCnt { | 689 | if totalcnt <= uinfo.GetFromGuanCnt { |
690 | - logger.Error("guangold not enough ") | ||
691 | - resp.Message = "ERROR_SRV_ERROR" | ||
692 | - resp.Code = ERROR_GUANGOLD_NOTENOUGH | 690 | + logger.Error("guancnt not enough ") |
691 | + resp.Message = "存钱罐次数不足" | ||
692 | + resp.Code = ERROR_GUANCNTNOTENOUGH | ||
693 | break | 693 | break |
694 | } | 694 | } |
695 | 695 |