req.WechatCoinPrice 兜底

This commit is contained in:
lwl0608 2024-05-03 02:56:32 +08:00
parent d09aca140d
commit bb90fafef6
1 changed files with 5 additions and 0 deletions

View File

@ -1001,6 +1001,11 @@ func (v *Vas) GetCHList(ctx *gin.Context, mid int64, typ int32, offset, limit in
// 更新微信
func (v *Vas) UpdateWechat(ctx *gin.Context, req *vasproto.UpdateWechatReq) (err error) {
if req.WechatCoinPrice <= 0 {
logger.Warn("invalid req.WechatCoinPrice, req: %v", util.ToJson(req))
return nil
}
err = v.store.UpdateUserVasInfo(ctx, req)
return
}