From 3b0e90e21bb4d8155e49974ed19f0c1c22ae9335 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Wed, 20 May 2020 14:44:15 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/errordef.go | 1 + src/HttpServer/logic/logic.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/HttpServer/logic/errordef.go b/src/HttpServer/logic/errordef.go index a621f1c..df34bda 100644 --- a/src/HttpServer/logic/errordef.go +++ b/src/HttpServer/logic/errordef.go @@ -21,4 +21,5 @@ const ( ERROR_LVREWARDALREADYGET = 17 //当前等级奖励已经领取过了 ERROR_SINGALREADYTODAY = 18 //今日已经签过到啦 ERROR_SINGDATAFAILED = 19 //签到数据异常 + ERROR_GUANCNTNOTENOUGH = 20 //存钱罐次数不足 ) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index c7fbd90..c42686f 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -687,9 +687,9 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { //判断一下是否满足提取条件 totalcnt := uinfo.CalcTotalCnt() if totalcnt <= uinfo.GetFromGuanCnt { - logger.Error("guangold not enough ") - resp.Message = "ERROR_SRV_ERROR" - resp.Code = ERROR_GUANGOLD_NOTENOUGH + logger.Error("guancnt not enough ") + resp.Message = "存钱罐次数不足" + resp.Code = ERROR_GUANCNTNOTENOUGH break } -- libgit2 0.21.0