update git webhook

This commit is contained in:
chenbo 2023-11-20 13:47:47 +08:00
parent 9d4e708b90
commit ac6f81cbe2
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
<?php <?php
namespace app\common\controller; namespace app\api\controller;
use think\Log; use app\common\controller\BaseLikeAdminController;
class GitWebHookController extends BaseLikeAdminController class GitWebHookController extends BaseApiController
{ {
public array $notNeedLogin = ['pullDevBranch'];
public function pullDevBranch() public function pullDevBranch()
{ {
system("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull", $result_code); system("cd /opt/1panel/apps/openresty/openresty/www/sites/ceshi-pay.lihaink.cn/index && git pull", $result_code);