作者 李小龙

客户端代码拉取调整

@@ -291,9 +291,13 @@ public function getRandInquiryText(Request $request) @@ -291,9 +291,13 @@ public function getRandInquiryText(Request $request)
291 public function pullCode(Request $request) 291 public function pullCode(Request $request)
292 { 292 {
293 $command = "cd /www/wwwroot/self_site && ./pull_custom_code.sh"; 293 $command = "cd /www/wwwroot/self_site && ./pull_custom_code.sh";
294 - shell_exec($command); 294 + $resp = shell_exec($command);
  295 + if ($resp == null){
  296 + return $this->error("代码拉取失败");
  297 + }else{
295 return $this->success(); 298 return $this->success();
296 } 299 }
  300 + }
297 301
298 /** 302 /**
299 * @param $url 303 * @param $url