...
|
...
|
@@ -291,9 +291,13 @@ public function getRandInquiryText(Request $request) |
|
|
public function pullCode(Request $request)
|
|
|
{
|
|
|
$command = "cd /www/wwwroot/self_site && ./pull_custom_code.sh";
|
|
|
shell_exec($command);
|
|
|
$resp = shell_exec($command);
|
|
|
if ($resp == null){
|
|
|
return $this->error("代码拉取失败");
|
|
|
}else{
|
|
|
return $this->success();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @param $url
|
...
|
...
|
|