|
...
|
...
|
@@ -313,7 +313,10 @@ class NewsController extends BaseController |
|
|
|
],[
|
|
|
|
'keyword.required' => 'keyword不能为空',
|
|
|
|
]);
|
|
|
|
$data = curl_c('http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword'],false);
|
|
|
|
$data = curl_c('http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword']);
|
|
|
|
if($data['err'] != 0){
|
|
|
|
$this->response('请求无响应',Code::SYSTEM_ERROR,$data['msg']);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|