diff --git a/app/api/controller/GitWebHookController.php b/app/api/controller/GitWebHookController.php index ef39294..5233248 100644 --- a/app/api/controller/GitWebHookController.php +++ b/app/api/controller/GitWebHookController.php @@ -9,7 +9,7 @@ class GitWebHookController extends BaseApiController public array $notNeedLogin = ['pullDevBranch']; public function pullDevBranch() { - $result = system("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull", $result_code); + $result = shell_exec("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull"); \think\facade\Log::info(['git pull dev branch result1', $result]); } } \ No newline at end of file