This commit is contained in:
lwl0608 2024-05-17 14:08:15 +08:00
parent 8ba9674a27
commit 6a1db908d2
2 changed files with 7 additions and 4 deletions

View File

@ -2986,6 +2986,9 @@ func (v *Vas) refundZoneMoment(ctx *gin.Context, order *dbstruct.Order, req *vas
return err return err
} }
// 减购买人数
_ = v.store.DecZoneMomentBuyerCnt(ctx, zid, momentId)
return nil return nil
} }

View File

@ -141,10 +141,10 @@ func NewVideoFromJson(item any) (vid *Video, err error) {
err = errors.New("invalid video object with null md5") err = errors.New("invalid video object with null md5")
return return
} }
if vid.Dur == 0 { //if vid.Dur == 0 {
err = errors.New("invalid video object with zero dur") // err = errors.New("invalid video object with zero dur")
return // return
} //}
if vid.Fmt == "" { if vid.Fmt == "" {
err = errors.New("invalid video object with null fmt") err = errors.New("invalid video object with null fmt")
return return