From ba90c85676e49a91f21127d831183aec5a8682fe Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 15 Dec 2023 16:10:16 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index eed7d673..3d10dd30 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -116,22 +116,22 @@ class UserController extends BaseAuthedController { } } -// if (SERVER_ENV == _TEST) { -// -// array_push($addItems, -// array( -// 'item_id' => V_ITEM_GOLD, -// 'item_num' => 500000 -// )); -// $itemIds = array(30100,30200,30300,30400,30500,30600,30700,30800,30900,31000,40702,40902,40102); -// foreach ($itemIds as $row){ -// array_push($addItems, -// array( -// 'item_id' => $row, -// 'item_num' => 1 -// )); -// } -// } + if (defined('PRESENT_FREE_ITEM')) { + + array_push($addItems, + array( + 'item_id' => V_ITEM_GOLD, + 'item_num' => 500000 + )); + $itemIds = array(30100,30200,30300,30400,30500,30600,30700,30800,30900,31000,40702,40902,40102); + foreach ($itemIds as $row){ + array_push($addItems, + array( + 'item_id' => $row, + 'item_num' => 1 + )); + } + } $awardService = new services\AwardService(); $propertyChgService = new services\PropertyChgService();