public function run($accountId) { parent::run($accountId); $this->_createDefaultScoreRule($accountId); $this->_createDefaultMemberProperties($accountId); $this->_createDefaultMemberShipCard($accountId); }
public function run($accountId) { parent::run($accountId); //create default template $where = ['accountId' => $accountId, 'name' => ['$in' => [MessageTemplate::REDEMPTION_TITLE, MessageTemplate::PROMOTIONCODE_TITLE]]]; $result = MessageTemplate::findOne($where); if (empty($result)) { MessageTemplate::createDefaultTemplate($accountId); } }
public function run($accountId) { parent::run($accountId); //create default template $where = ['accountId' => $accountId, 'name' => MessageTemplate::STAFF_TITLE]; $result = MessageTemplate::findOne($where); if (empty($result)) { MessageTemplate::createStaffTemplate($accountId); } else { $this->deleteMutiStaff($accountId); } }
public function run($accountId) { parent::run($accountId); $this->_createDefaultCategory($accountId); }
public function run($accountId) { parent::run($accountId); $this->_createDefaultChannel($accountId); $this->_createDefaultPageCover($accountId); }