作者 lyh

gx

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