瀏覽代碼

git时间改成10秒

master
chenx 2 年之前
父節點
當前提交
42ca044825
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. 7
    1
      process/Git.php

+ 7
- 1
process/Git.php 查看文件

@@ -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());
}
}

}

Loading…
取消
儲存