This commit is contained in:
@@ -147,9 +147,11 @@ func (h Controller) BuyGoldItem(data *item.C2S_GOLD_BUY_PRODUCT, player *player.
|
||||
}
|
||||
|
||||
case 1:
|
||||
r := player.Service.Talk.Update(int(pro.ProductID), int(data.Count))
|
||||
if !r {
|
||||
return nil, errorcode.ErrorCodes.ErrGoldBeanSingleLimit
|
||||
if config != nil {
|
||||
r := player.Service.Talk.Update(int(pro.ProductID), int(data.Count))
|
||||
if !r {
|
||||
return nil, errorcode.ErrorCodes.ErrGoldBeanSingleLimit
|
||||
}
|
||||
}
|
||||
|
||||
if player.ItemAdd(pro.ProductID, data.Count) {
|
||||
|
||||
Reference in New Issue
Block a user