From d032340c8598d0e1539176015a0c499e7785c56d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 7 Apr 2022 13:39:48 +0800 Subject: [PATCH] 1 --- webapp/controller/BcShopController.class.php | 2 +- webapp/controller/MarketController.class.php | 2 +- webapp/services/BattleDataService.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/BcShopController.class.php b/webapp/controller/BcShopController.class.php index b6012399..569d1aa3 100644 --- a/webapp/controller/BcShopController.class.php +++ b/webapp/controller/BcShopController.class.php @@ -276,7 +276,7 @@ class BcShopController extends BaseController { 'item_id' => $goodsMeta['item_id'], 'name' => $name, 'job' => $job, - //'avatar_url' => 'https://www.cebg.games/res/avatars/' . $itemMeta['nft_image_id'] . '.png', + 'avatar_url' => 'https://www.cebg.games/res/avatars/' . 501 . '.png', 'currency_list' => array( array( 'name' => $currencyMeta['name'], diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index ffb2ccb3..8b71b207 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -396,7 +396,7 @@ class MarketController extends BaseController { 'item_id' => $goodsMeta['item_id'], 'name' => $name, 'job' => $job, - //'avatar_url' => 'https://www.cebg.games/res/avatars/' . $itemMeta['nft_image_id'] . '.png', + 'avatar_url' => 'https://www.cebg.games/res/avatars/' . 501 . '.png', 'currency_list' => array( array( 'name' => $currencyMeta['name'], diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index 6c447d1c..a3cf0d17 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -356,7 +356,7 @@ class BattleDataService extends BaseService { if ($attr && $attr['type'] == 1) { $goldLimit += $attr['val']; } - $newGold = min($goldLimit, $heroDb['today_get_gold']); + $newGold = min($goldLimit, $heroDb['today_get_gold'] + $addGold); Hero::update($heroDb['hero_uniid'], array( 'today_get_gold' => $newGold,