refactor: 将物品和货币相关字段从uint32改为int64以支持更大数值范围
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -35,7 +35,7 @@ func (h Controller) GetTalkCategory(data *item.TalkCateInboundInfo, c *player.Pl
|
||||
|
||||
for _, itemID := range config.ItemIDS {
|
||||
iteminfo := service.NewItemService().GetItemCount(itemID)
|
||||
success := c.ItemAdd(uint32(iteminfo.ItemId), uint32(iteminfo.ItemCnt))
|
||||
success := c.ItemAdd(iteminfo.ItemId, iteminfo.ItemCnt)
|
||||
if success {
|
||||
result.OutList = append(result.OutList, item.CateInfo{ID: iteminfo.ItemId, Count: uint32(iteminfo.ItemCnt)})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user