Ver código fonte

git时间改成10秒

master
chenx 2 anos atrás
pai
commit
42ca044825
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7
    1
      process/Git.php

+ 7
- 1
process/Git.php Ver arquivo

@@ -27,7 +27,13 @@ class Git

public function pull()
{
shell_exec('cd ' . dirname(__DIR__) . ' && D:\Git\git-bash.exe pull');
try {
var_dump(shell_exec('cd ' . dirname(__DIR__) . ' && git pull'));
} catch (\Exception $e) {
return tojson(10000, $e->getMessage());
} catch (\Throwable $e) {
return tojson(10000, $e->getMessage());
}
}

}

Carregando…
Cancelar
Salvar