在购买金豆商品成功后记录消费信息,并简化消费记录模型字段
This commit is contained in:
@@ -9,6 +9,21 @@ type GoldService struct {
|
||||
BaseService
|
||||
}
|
||||
|
||||
func (s *GoldService) Log(pid, count uint32) {
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
|
||||
return
|
||||
}
|
||||
record := &model.GoldBeanConsume{
|
||||
PlayerID: uint64(s.userid),
|
||||
ConsumeNum: count,
|
||||
BizID: pid,
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
func NewGoldService(id uint32) *GoldService {
|
||||
return &GoldService{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user