Esempio n. 1
0
 public function doDeletecreditAction()
 {
     $creditId = (int) $this->getInput("creditId");
     if ($creditId < 5) {
         $this->showError('WINDID:fail');
     }
     Wind::import('WINDID:service.config.srv.WindidCreditSetService');
     $srv = new WindidCreditSetService();
     if (!$srv->deleteCredit($creditId)) {
         $this->showError('WINDID:fail');
     }
     $this->showMessage('WINDID:success');
 }
Esempio n. 2
0
 public function doDeletecreditAction()
 {
     $creditId = (int) $this->getInput("creditId");
     if ($creditId < 5) {
         $this->showError('WINDID:fail');
     }
     Wind::import('WSRV:config.srv.WindidCreditSetService');
     $srv = new WindidCreditSetService();
     if (!$srv->deleteCredit($creditId)) {
         $this->showError('WINDID:fail');
     }
     $srv2 = Wekit::load('WSRV:notify.srv.WindidNotifyService');
     $srv2->send('setCredits', array());
     $this->showMessage('WINDID:success');
 }