/**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     try {
         // to caculate auciton winner
         Auction::cronRunTheWheel();
     } catch (Exception $e) {
         if ($e->getCode() > 2000) {
             LogCronjob::addLog($this->name, $e->getMessage());
         }
     }
 }
示例#2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     try {
         LogCronjob::addLog($this->name, 'START-CRONJOB');
         // to cacualte the unpaied auction
         Auction::cronYouCheater();
     } catch (Exception $e) {
         if ($e->getCode() > 2000) {
             LogCronjob::addLog($this->name, $e->getMessage());
         }
     }
 }