1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-04 00:27:59 +08:00
parent 40057b698d
commit 66e59be70b
5 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ import (
// c: 当前玩家对象
// 返回: 空结果和错误码
func (h Controller) ItemSale(data *item.C2S_ITEM_SALE, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
if c.Service.Item.CheakItem(data.ItemId) < data.Amount {
if c.Service.Item.CheakItem(data.ItemId) < int32(data.Amount) {
return nil, errorcode.ErrorCodes.ErrSystemError
}