finance-pay/app/api/controller/GitWebHookController.php

15 lines
452 B
PHP

<?php
namespace app\api\controller;
use app\common\controller\BaseLikeAdminController;
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);
\think\facade\Log::info(['git pull dev branch result', $result]);
}
}