作者 李小龙

客户端代码拉取调整

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