作者 李小龙

客户端代码拉取调整

@@ -291,8 +291,12 @@ public function getRandInquiryText(Request $request) @@ -291,8 +291,12 @@ 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);  
295 - return $this->success(); 294 + $resp = shell_exec($command);
  295 + if ($resp == null){
  296 + return $this->error("代码拉取失败");
  297 + }else{
  298 + return $this->success();
  299 + }
296 } 300 }
297 301
298 /** 302 /**