This commit is contained in:
hujiabin 2023-04-07 17:26:27 +08:00
parent 1750ddcd22
commit 24bcbc0b2c
2 changed files with 16 additions and 16 deletions

View File

@ -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)) {

View File

@ -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)) {