From a668ee2b9d94edf743b7bd6454267b90d06f6bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E4=BF=8A=E6=88=90?= Date: Tue, 10 Oct 2023 16:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=89=8B=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/recycle_card.go | 2 +- lib/status/status.go | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/controller/recycle_card.go b/controller/recycle_card.go index 04b41a5..aa916b9 100644 --- a/controller/recycle_card.go +++ b/controller/recycle_card.go @@ -492,7 +492,7 @@ func RecycleCardSubmitOrderEvaluation(c *gin.Context) { user := model.GetUserByUid(uc.Uid) if user.Tel == "" { logger.Error("GetUserByUid err:", user) - RespJson(c, status.NeedBindTel, nil) + RespJson(c, status.RedirectBindPhonePage, nil) return } smExternal := &xianmai.SmExternal{ diff --git a/lib/status/status.go b/lib/status/status.go index fe26348..2e29880 100644 --- a/lib/status/status.go +++ b/lib/status/status.go @@ -49,6 +49,8 @@ const ( ShoppingTimesNotEnough = 403046 // 购物次数不足 UserVmNotEnough = 403049 // 用户积分余额不足 + RedirectBindPhonePage = 909001 //跳转绑定手机号 + HbKeySendFail = 403055 // 口令发送失败,60秒后重试 IsNoviceFail = 403056 // 不是新用户 @@ -264,8 +266,9 @@ var statusMsg = map[int]string{ GoodsNotSale: "商品已下架", - NotMember: "非会员", - HadReceiveReward: "已经领取过了", + NotMember: "非会员", + HadReceiveReward: "已经领取过了", + RedirectBindPhonePage: "需要绑定手机号", } func StatusDesc(code int) string {