作者 lyh

gx

@@ -252,7 +252,7 @@ class OptimizeController extends BaseController @@ -252,7 +252,7 @@ class OptimizeController extends BaseController
252 $url = $domain.'api/update_robots/?project_id='.$this->param['project_id']; 252 $url = $domain.'api/update_robots/?project_id='.$this->param['project_id'];
253 $res = http_get($url); 253 $res = http_get($url);
254 if(empty($res) || $res['status'] != 200){ 254 if(empty($res) || $res['status'] != 200){
255 - $this->response('生成robots失败,请联系开发人员',Code::SYSTEM_ERROR,['url'=>$url]); 255 + $this->response('生成robots失败,请联系开发人员',Code::SYSTEM_ERROR,['url'=>$url,'res'=>json_encode($res)]);
256 } 256 }
257 $projectModel = new Project(); 257 $projectModel = new Project();
258 $rs = $projectModel->edit(['robots'=>$this->param['robots']],['id'=>$this->param['project_id']]); 258 $rs = $projectModel->edit(['robots'=>$this->param['robots']],['id'=>$this->param['project_id']]);