From 93e6df0c94c666667a5b98ec9840b267db1d64b6 Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Fri, 17 Apr 2020 15:18:25 +0800 Subject: [PATCH] live info code --- controllers/client/live.go | 2 +- utils/code/code.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 // 该模块活动已结束