This commit is contained in:
lwl0608 2024-06-13 19:22:49 +08:00
commit a13966ede9
1 changed files with 10 additions and 2 deletions

View File

@ -120,6 +120,7 @@ func (p *ZoneMoment) GetPaidText() string {
return "" return ""
} }
<<<<<<< HEAD
type ZoneMomentStatInfo struct { type ZoneMomentStatInfo struct {
Mid *int64 `json:"id" bson:"_id"` // mid Mid *int64 `json:"id" bson:"_id"` // mid
Count *int64 `json:"count" bson:"count"` // count Count *int64 `json:"count" bson:"count"` // count
@ -139,6 +140,13 @@ func (p *ZoneMomentStatInfo) GetCount() int64 {
return 0 return 0
} }
func (p *ZoneMoment) GetCoinPrice() int64 { func (p *ZoneMoment) GetPrice() int64 {
return util.RoundUp(float64(p.CoinPrice) / 10.0) if p != nil && p.Price != nil {
return *p.Price
}
return 0
}
func (p *ZoneMoment) GetCoinPrice() int64 {
return util.RoundUp(float64(p.GetPrice()) / 10.0)
} }