正在显示
1 个修改的文件
包含
0 行增加
和
3 行删除
| @@ -314,9 +314,6 @@ class NewsController extends BaseController | @@ -314,9 +314,6 @@ class NewsController extends BaseController | ||
| 314 | 'keyword.required' => 'keyword不能为空', | 314 | 'keyword.required' => 'keyword不能为空', |
| 315 | ]); | 315 | ]); |
| 316 | $data = curl_c('http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword']); | 316 | $data = curl_c('http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword']); |
| 317 | - if($data['err'] != 0){ | ||
| 318 | - $this->response('请求无响应',Code::SYSTEM_ERROR,$data['msg']); | ||
| 319 | - } | ||
| 320 | $this->response('success',Code::SUCCESS,$data); | 317 | $this->response('success',Code::SUCCESS,$data); |
| 321 | } | 318 | } |
| 322 | 319 |
-
请 注册 或 登录 后发表评论