From 592359f7bd0560b55d099cf58ff18566d434d272 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 21 Nov 2023 11:23:03 +0800 Subject: [PATCH] fixed --- app/api/controller/GitWebHookController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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