feat-20231230-001-Robin #25

Merged
chenhao merged 22 commits from feat-20231230-001-Robin into test 2023-12-30 19:49:54 +08:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 0352b0eb33 - Show all commits

View File

@ -83,7 +83,7 @@ func OneStepUnlock(ctx *gin.Context) {
func ConsumerFillContact(ctx *gin.Context) {
defer logger.Recover()
req := ctx.MustGet("client_req").(*vasproto.ConsumerFillContactReq)
if !req.IsValid() || len(req.OrderId) <= 0 {
if req.Mid <= 0 || len(req.OrderId) <= 0 {
logger.Error("ConsumerFillContact, invalid param, req: %v", util.ToJson(req))
ReplyErrCodeMsg(ctx, errcode.ErrCodeBadParam)
return

View File

@ -1420,6 +1420,14 @@ func (v *Vas) H5DirectUnlockWechat(ctx *gin.Context, req *vasproto.H5DirectUnloc
var (
uid = req.Uid
)
// 是否重复解锁
unlockInfo, _ := v.store.GetUserVasUnlock(ctx, nil, req.Mid, uid, dbstruct.ProductIdContactWechat)
if unlockInfo != nil {
err = errs.ErrVasAlreadyUnlock
return
}
// 获取主播信息
uVas, _ := v.store.GetUserVasInfoByMid(ctx, uid)
if uVas == nil {