mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update ProcessService.php
This commit is contained in:
parent
3560e1cc14
commit
a4d2a57bc9
@ -54,6 +54,7 @@ class ProcessService extends Service
|
|||||||
{
|
{
|
||||||
if ($this->iswin()) {
|
if ($this->iswin()) {
|
||||||
$command = __DIR__ . "/bin/console.exe {$command}";
|
$command = __DIR__ . "/bin/console.exe {$command}";
|
||||||
|
echo $command."<br>";
|
||||||
pclose(popen("wmic process call create \"{$command}\"", 'r'));
|
pclose(popen("wmic process call create \"{$command}\"", 'r'));
|
||||||
} else {
|
} else {
|
||||||
pclose(popen("{$command} &", 'r'));
|
pclose(popen("{$command} &", 'r'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user