验证微信

This commit is contained in:
苏尹岚
2020-11-20 17:06:33 +08:00
parent f917c96aa3
commit f265cd4053
5 changed files with 40 additions and 14 deletions

View File

@@ -547,6 +547,10 @@ func InvestMember(ctx *jxcontext.Context, memberID int) (errCode string, err err
memberCard = v
}
}
//验证微信绑定
if err = auth2.CheckWeixinminiAuthBind(ctx.GetUserID()); err != nil {
return "", err
}
if userBill.AccountBalance < memberCard.Price {
return model.ErrCodeAccountBalanceNotEnough, fmt.Errorf("用户余额不足,请充值!")
}