This commit is contained in:
hujiabin 2023-12-08 17:32:25 +08:00
parent 45df28aa85
commit fdd12465aa

View File

@ -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 (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
));
}
}
$awardService = new services\AwardService();
$propertyChgService = new services\PropertyChgService();