feat: 添加金豆消费记录功能
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

在购买金豆商品成功后记录消费信息,并简化消费记录模型字段
This commit is contained in:
xinian
2026-02-23 07:52:36 +08:00
committed by cnb
parent 75cfc7bcb1
commit c78e8e13c3
3 changed files with 17 additions and 3 deletions

View File

@@ -132,6 +132,7 @@ func (h Controller) BuyGoldItem(data *item.C2S_GOLD_BUY_PRODUCT, player *player.
case 1:
player.User.UpdateGold(player.Info.UserID, -int64(usegold))
//购买成功,执行记录
player.Service.GoldLog.Log(uint32(pro.ProductID), uint32(data.Count))
}