From 8ec2131b82a640867eef4c4e978840c769abc7c6 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 30 Jul 2023 12:42:44 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index ee5415ab..95e4ca07 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -166,8 +166,8 @@ class ShopController extends BaseAuthedController { $this->internalAddItem($awardService, $propertyChgService, $itemMeta, - $goodsMeta['goods_num'], - 0); + $goodsMeta['goods_num'] + ); } $propertyChgService->addUserChg(); $this->_rspData( @@ -365,7 +365,6 @@ class ShopController extends BaseAuthedController { array( 'items' => array_keys($record), 'free_num' => $free_num, - 'pending' => 0, ) ); } @@ -396,8 +395,8 @@ class ShopController extends BaseAuthedController { private function internalAddItem($awardService, $propertyChgService, $itemMeta, - $count, - $grade = null) + $count + ) { switch ($itemMeta['type']) { case mt\Item::HERO_TYPE: