From 4afdbba4b9c643bf4d5715b6435338b256cd8122 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 8 Dec 2021 13:29:25 +0800 Subject: [PATCH] 1 --- webapp/controller/MissionController.class.php | 2 ++ webapp/controller/UserController.class.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/controller/MissionController.class.php b/webapp/controller/MissionController.class.php index fb7642a..76d3286 100644 --- a/webapp/controller/MissionController.class.php +++ b/webapp/controller/MissionController.class.php @@ -23,6 +23,7 @@ use models\Season; class MissionController extends BaseAuthedController { private $missionService = null; + private $awardService = null; private $propertyChgService = null; private $userInfo = null; private $seasonService = null; @@ -54,6 +55,7 @@ class MissionController extends BaseAuthedController { $this->_rspErr(10, '服务器内部错误'); die(); } + $this->awardService = new services\AwardService(); $this->missionService = new services\MissionService(); } diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 89fab2d..5ebf369 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -9,6 +9,7 @@ require_once('mt/Season.php'); require_once('mt/Hero.php'); require_once('mt/Rank.php'); +require_once('services/AwardService.php'); require_once('services/PropertyChgService.php'); require_once('services/SeasonService.php'); require_once('services/NameService.php'); @@ -149,7 +150,9 @@ class UserController extends BaseAuthedController { 'modifytime' => $this->_getNowTime(), ) ); - $this->_addItems($addItems); + $awardService = new services\AwardService(); + $propertyChgService = new services\PropertyChgService(); + $this->_addItems($addItems, $awardService, $propertyChgService); } public function active()