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

15 lines
442 B
PHP

<?php
namespace app\api\controller;
use app\common\controller\BaseLikeAdminController;
class GitWebHookController extends BaseApiController
{
public array $notNeedLogin = ['pullDevBranch'];
public function pullDevBranch()
{
$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 result', $result]);
}
}