fix price

This commit is contained in:
lwl0608 2024-05-09 19:53:19 +08:00
parent d9f71bd85c
commit ef3a1dde14
2 changed files with 10 additions and 4 deletions

View File

@ -3343,10 +3343,10 @@ func (v *Vas) refundCoinContactWechat(ctx *gin.Context, order *dbstruct.CoinOrde
} }
incomeChList = append(incomeChList, ch) incomeChList = append(incomeChList, ch)
} }
if len(incomeChList) > 1 { //if len(incomeChList) > 1 {
err = errors.New("收入记录错误,请找开发同学排查") // err = errors.New("收入记录错误,请找开发同学排查")
return err // return err
} //}
// 有分成的情况 // 有分成的情况
if len(incomeChList) > 0 { if len(incomeChList) > 0 {

View File

@ -52,6 +52,9 @@ func (v *Vas) CheckZoneUnlockExist(ctx *gin.Context, tx *sqlx.Tx, mid, zid int64
// 设置空间价格 // 设置空间价格
func (v *Vas) UpdateZoneVasInfo(ctx *gin.Context, req *vasproto.UpdateZoneVasReq) error { func (v *Vas) UpdateZoneVasInfo(ctx *gin.Context, req *vasproto.UpdateZoneVasReq) error {
if req.AdmissionPrice <= 0 && req.IronfanshipPrice <= 0 && req.SuperfanshipPrice <= 0 {
return nil
}
err := v.store.UpsertZoneVas(ctx, req.ZoneVas) err := v.store.UpsertZoneVas(ctx, req.ZoneVas)
return err return err
} }
@ -157,6 +160,9 @@ func (v *Vas) RollbackZoneConsume(ctx *gin.Context, tx *sqlx.Tx, orderId string)
// 设置动态价格 // 设置动态价格
func (v *Vas) UpdateZoneMomentPrice(ctx *gin.Context, req *vasproto.UpdateZoneMomentPriceReq) error { func (v *Vas) UpdateZoneMomentPrice(ctx *gin.Context, req *vasproto.UpdateZoneMomentPriceReq) error {
if req.Price <= 0 {
return nil
}
err := v.store.UpsertZoneMomentPrice(ctx, req.ZoneMomentPrice) err := v.store.UpsertZoneMomentPrice(ctx, req.ZoneMomentPrice)
return err return err
} }