This commit is contained in:
aozhiwei 2021-12-07 11:01:45 +08:00
parent 6f03291543
commit 01df0f6b56

View File

@ -5,6 +5,9 @@ require_once('mt/Item.php');
require_once('models/Bag.php');
require_once('services/AwardService.php');
require_once('services/PropertyChgService.php');
require_once('services/NameService.php');
use phpcommon\SqlHelper;
@ -12,6 +15,16 @@ use models\Bag;
class BagController extends BaseAuthedController {
private $propertyChgService = null;
private $awardService = null;
public function _handlePre()
{
parent::_handlePre();
$this->propertyChgService = new services\PropertyChgService();
$this->awardService = new services\AwardService();
}
public function itemList()
{
$itemList = array();
@ -104,6 +117,11 @@ class BagController extends BaseAuthedController {
'item_num' => 1
)
));
$this->propertyChgService->addUserChg();
$this->propertyChgService->addBagChg();
$this->_rspData(array(
'property_chg' => $this->propertyChgService->toDto(),
));
}
}