fix(game): 修复扭蛋游戏物品数量检查类型错误 - 将egg game play中的物品数量比较从uint32改为int32类型 - 修改Item模型中ItemCnt字段类型为int32 - 更新CheakItem方法返回类型为int32 - 移除item service中多余的空行 ```
This commit is contained in:
@@ -21,7 +21,7 @@ func (s *ItemService) Get(min, max uint32) []model.Item {
|
||||
}
|
||||
func (s *ItemService) UPDATE(id uint32, count int) {
|
||||
if cool.Config.ServerInfo.IsVip != 0 && count < 0 {
|
||||
|
||||
|
||||
return
|
||||
}
|
||||
m := s.TestModel(s.Model)
|
||||
@@ -45,7 +45,7 @@ func (s *ItemService) UPDATE(id uint32, count int) {
|
||||
|
||||
}
|
||||
|
||||
func (s *ItemService) CheakItem(id uint32) uint32 {
|
||||
func (s *ItemService) CheakItem(id uint32) int32 {
|
||||
var ttt model.Item
|
||||
m := s.TestModel(s.Model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user