From 24bcbc0b2c3a596ab13aeee27391b3bcd5615f96 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Fri, 7 Apr 2023 17:26:27 +0800 Subject: [PATCH] 1 --- webapp/controller/GunController.class.php | 16 ++++++++-------- webapp/controller/HeroController.class.php | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/webapp/controller/GunController.class.php b/webapp/controller/GunController.class.php index 256065d5..f6ef10f5 100644 --- a/webapp/controller/GunController.class.php +++ b/webapp/controller/GunController.class.php @@ -159,10 +159,10 @@ class GunController extends BaseAuthedController { 'item_id' => V_ITEM_GOLD, 'item_num' => $nextLevelMeta['gold'] ), - array( - 'item_id' => V_ITEM_DIAMOND, - 'item_num' => $nextLevelMeta['diamond'] - ), +// array( +// 'item_id' => V_ITEM_DIAMOND, +// 'item_num' => $nextLevelMeta['diamond'] +// ), ); $newGunDb = $gunDb; @@ -220,10 +220,10 @@ class GunController extends BaseAuthedController { 'item_id' => V_ITEM_GOLD, 'item_num' => $nextLevelMeta['gold'] ), - array( - 'item_id' => V_ITEM_DIAMOND, - 'item_num' => $nextLevelMeta['diamond'] - ), +// array( +// 'item_id' => V_ITEM_DIAMOND, +// 'item_num' => $nextLevelMeta['diamond'] +// ), ); $lackItem = null; if (!$this->_hasEnoughItems($costItems, $lackItem)) { diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 8235bec1..7ca27bb9 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -131,10 +131,10 @@ class HeroController extends BaseAuthedController { 'item_id' => V_ITEM_GOLD, 'item_num' => $nextLevelMeta['gold'] ), - array( - 'item_id' => V_ITEM_DIAMOND, - 'item_num' => $nextLevelMeta['diamond'] - ) +// array( +// 'item_id' => V_ITEM_DIAMOND, +// 'item_num' => $nextLevelMeta['diamond'] +// ) ); $heroDto = Hero::toDto($heroDb); @@ -222,10 +222,10 @@ class HeroController extends BaseAuthedController { 'item_id' => V_ITEM_GOLD, 'item_num' => $nextLevelMeta['gold'] ), - array( - 'item_id' => V_ITEM_DIAMOND, - 'item_num' => $nextLevelMeta['diamond'] - ) +// array( +// 'item_id' => V_ITEM_DIAMOND, +// 'item_num' => $nextLevelMeta['diamond'] +// ) ); $lackItem = null; if (!$this->_hasEnoughItems($costItems, $lackItem)) {