|
...
|
...
|
@@ -232,11 +232,16 @@ class IndexController extends BaseController |
|
|
|
public function prInfoDownload()
|
|
|
|
{
|
|
|
|
$url = 'http://crawl.scraper.waimaoq.com/export/issuewire';
|
|
|
|
$response = Http::withHeaders(['Accept' => 'application/json',])->get($url, [
|
|
|
|
$param = [
|
|
|
|
'page' => $this->page,
|
|
|
|
'pagesize' => $this->row,
|
|
|
|
'token' => 'MT0CM7y4tdFTFTm'
|
|
|
|
]);
|
|
|
|
'token' => 'MT0CM7y4tdFTFTm',
|
|
|
|
'pr_id' => $this->param['pr_id'],
|
|
|
|
'release_time_start'=>$this->param['release_time_start'],
|
|
|
|
'release_time_end'=>$this->param['release_time_end'],
|
|
|
|
];
|
|
|
|
$param = array_filter($param);
|
|
|
|
$response = Http::withHeaders(['Accept' => 'application/json',])->get($url, $param);
|
|
|
|
if ($response->successful()) {
|
|
|
|
$result = $response->json();
|
|
|
|
$this->response('success', Code::SUCCESS, ['url' => $url, 'list' => $result, 'page' => $this->page, 'pagesize' => $this->row]);
|
...
|
...
|
|