diff --git a/controllers/client/live.go b/controllers/client/live.go index 71c74b9..8cf17a7 100644 --- a/controllers/client/live.go +++ b/controllers/client/live.go @@ -228,7 +228,7 @@ func (t *LiveCtl) QueryRedPack() { info := new(models.LiveRedPackInfo) exist, err := info.GetByOutTradeNo(outTradeNo) t.CheckErr(err) - t.Assert(exist, code.MSG_LIVE_RED_PACK_NOT_EXIST, "直播红包信息不存在") + t.Assert(exist, code.MSG_LIVE_RED_PACK_INFO_NOT_EXIST, "直播红包信息不存在") if res.TradeState == pay_service.CODE_TRADE_SUCCESS { info.Status = 1 info.UpdateStatusById(info.Id, info.Status) diff --git a/utils/code/code.go b/utils/code/code.go index e3656f7..79e1995 100644 --- a/utils/code/code.go +++ b/utils/code/code.go @@ -14,6 +14,7 @@ const ( MSG_ENTRYPEOPLE_NOT_EXIST = 900 MSG_LIVE_ACTIVITY_NOT_EXIST = 950 // 直播活动不存在 MSG_LIVE_RED_PACK_NOT_EXIST = 951 // 直播红包不存在 + MSG_LIVE_RED_PACK_INFO_NOT_EXIST = 952 // 直播红包不存在 MSG_ACTIVITY_NOT_EXIST = 1000 // 互动不存在 MSG_MODULE_NOT_EXIST = 1001 // 模块活动不存在 MSG_MODULE_STATUS_END = 1002 // 该模块活动已结束