Parcourir la source

Update Queue.php

Anyon il y a 2 ans
Parent
commit
4850c690e0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/admin/controller/Queue.php

+ 1 - 1
app/admin/controller/Queue.php

@@ -47,7 +47,7 @@ class Queue extends Controller
             $this->iswin = ProcessService::iswin();
             if ($this->super = AdminService::isSuper()) {
                 $this->command = ProcessService::think('xadmin:queue start');
-                if (!ProcessService::iswin() && !empty($_SERVER['USER'])) {
+                if (!$this->iswin && !empty($_SERVER['USER'])) {
                     $this->command = "sudo -u {$_SERVER['USER']} {$this->command}";
                 }
             }