req.WechatCoinPrice 兜底
This commit is contained in:
parent
d09aca140d
commit
bb90fafef6
|
@ -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) {
|
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)
|
err = v.store.UpdateUserVasInfo(ctx, req)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue