fix
This commit is contained in:
parent
8ba9674a27
commit
6a1db908d2
|
@ -2986,6 +2986,9 @@ func (v *Vas) refundZoneMoment(ctx *gin.Context, order *dbstruct.Order, req *vas
|
|||
return err
|
||||
}
|
||||
|
||||
// 减购买人数
|
||||
_ = v.store.DecZoneMomentBuyerCnt(ctx, zid, momentId)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -141,10 +141,10 @@ func NewVideoFromJson(item any) (vid *Video, err error) {
|
|||
err = errors.New("invalid video object with null md5")
|
||||
return
|
||||
}
|
||||
if vid.Dur == 0 {
|
||||
err = errors.New("invalid video object with zero dur")
|
||||
return
|
||||
}
|
||||
//if vid.Dur == 0 {
|
||||
// err = errors.New("invalid video object with zero dur")
|
||||
// return
|
||||
//}
|
||||
if vid.Fmt == "" {
|
||||
err = errors.New("invalid video object with null fmt")
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue