绑定手机号

This commit is contained in:
范俊成 2023-10-10 16:57:31 +08:00
parent 4062e2aea4
commit a668ee2b9d
2 changed files with 6 additions and 3 deletions

View File

@ -492,7 +492,7 @@ func RecycleCardSubmitOrderEvaluation(c *gin.Context) {
user := model.GetUserByUid(uc.Uid) user := model.GetUserByUid(uc.Uid)
if user.Tel == "" { if user.Tel == "" {
logger.Error("GetUserByUid err:", user) logger.Error("GetUserByUid err:", user)
RespJson(c, status.NeedBindTel, nil) RespJson(c, status.RedirectBindPhonePage, nil)
return return
} }
smExternal := &xianmai.SmExternal{ smExternal := &xianmai.SmExternal{

View File

@ -49,6 +49,8 @@ const (
ShoppingTimesNotEnough = 403046 // 购物次数不足 ShoppingTimesNotEnough = 403046 // 购物次数不足
UserVmNotEnough = 403049 // 用户积分余额不足 UserVmNotEnough = 403049 // 用户积分余额不足
RedirectBindPhonePage = 909001 //跳转绑定手机号
HbKeySendFail = 403055 // 口令发送失败60秒后重试 HbKeySendFail = 403055 // 口令发送失败60秒后重试
IsNoviceFail = 403056 // 不是新用户 IsNoviceFail = 403056 // 不是新用户
@ -264,8 +266,9 @@ var statusMsg = map[int]string{
GoodsNotSale: "商品已下架", GoodsNotSale: "商品已下架",
NotMember: "非会员", NotMember: "非会员",
HadReceiveReward: "已经领取过了", HadReceiveReward: "已经领取过了",
RedirectBindPhonePage: "需要绑定手机号",
} }
func StatusDesc(code int) string { func StatusDesc(code int) string {