正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -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 | /** | 
- 
请 注册 或 登录 后发表评论