1
This commit is contained in:
parent
6f03291543
commit
01df0f6b56
@ -5,6 +5,9 @@ require_once('mt/Item.php');
|
|||||||
|
|
||||||
require_once('models/Bag.php');
|
require_once('models/Bag.php');
|
||||||
|
|
||||||
|
require_once('services/AwardService.php');
|
||||||
|
require_once('services/PropertyChgService.php');
|
||||||
|
|
||||||
require_once('services/NameService.php');
|
require_once('services/NameService.php');
|
||||||
|
|
||||||
use phpcommon\SqlHelper;
|
use phpcommon\SqlHelper;
|
||||||
@ -12,6 +15,16 @@ use models\Bag;
|
|||||||
|
|
||||||
class BagController extends BaseAuthedController {
|
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()
|
public function itemList()
|
||||||
{
|
{
|
||||||
$itemList = array();
|
$itemList = array();
|
||||||
@ -104,6 +117,11 @@ class BagController extends BaseAuthedController {
|
|||||||
'item_num' => 1
|
'item_num' => 1
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
$this->propertyChgService->addUserChg();
|
||||||
|
$this->propertyChgService->addBagChg();
|
||||||
|
$this->_rspData(array(
|
||||||
|
'property_chg' => $this->propertyChgService->toDto(),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user