正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -539,7 +539,7 @@ class ProductController extends BaseController | @@ -539,7 +539,7 @@ class ProductController extends BaseController | ||
| 539 | ],[ | 539 | ],[ |
| 540 | 'keyword.required' => 'keyword不能为空', | 540 | 'keyword.required' => 'keyword不能为空', |
| 541 | ]); | 541 | ]); |
| 542 | - $data = shell_exec('curl -k "http://title.globalso.com/ajax_data_for_web.php?keyword='.$this->param['keyword'].'"'); | 542 | + $data = curl_c('http://title.globalso.com/ajax_data_for_web.php?keyword='.$this->param['keyword'],false); |
| 543 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); | 543 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); |
| 544 | $this->response('success',Code::SUCCESS,$data); | 544 | $this->response('success',Code::SUCCESS,$data); |
| 545 | } | 545 | } |
-
请 注册 或 登录 后发表评论