sandm 2 vuotta sitten
vanhempi
commit
822c79173c
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 0
      app/command/FstVerifyChecker.php
  2. 2 2
      app/command/Solver.php

+ 1 - 0
app/command/FstVerifyChecker.php

@@ -26,6 +26,7 @@ class FstVerifyChecker extends Command {
         // 指令配置
         $this->setName('FstVerifyChecker')
                 ->setDescription('First Verify Checker');
+
     }
 
     protected function execute(Input $input, Output $output) {

+ 2 - 2
app/command/Solver.php

@@ -26,7 +26,7 @@ class Solver extends Command {
 
     protected function execute(Input $input, Output $output) {
         // 指令输出
-        $lockFileName = "task_solver.lock";
+        $lockFileName = "/data/wwwroot/rencai.jucai.gov.cn/task_solver.lock";
         $lockFile = fopen($lockFileName, "a");
         if (flock($lockFile, LOCK_EX | LOCK_NB)) {//文件锁(独占)
             set_time_limit(0);
@@ -35,7 +35,7 @@ class Solver extends Command {
             foreach ($schedules as $schedule) {
                 //检查时间到了没                
                 if (XwCrontab::check(time(), $schedule["timeStr"]) && $schedule["state"] == 1) {
-                    exec("php {$root}think " . $schedule["action"]);
+                    exec("/usr/local/php/bin/php {$root}think " . $schedule["action"]);
                 }
             }
             flock($lockFile, LOCK_UN);