Example #1
0
 public function run($accountId)
 {
     parent::run($accountId);
     $this->_createDefaultScoreRule($accountId);
     $this->_createDefaultMemberProperties($accountId);
     $this->_createDefaultMemberShipCard($accountId);
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
 public function run($accountId)
 {
     parent::run($accountId);
     $this->_createDefaultCategory($accountId);
 }
Example #5
0
 public function run($accountId)
 {
     parent::run($accountId);
     $this->_createDefaultChannel($accountId);
     $this->_createDefaultPageCover($accountId);
 }