Merge pull request 'feat(ListsExcelTrait): 修改了Excel导出功能,将http协议改为https,提高安全性' (#118) from dev into main
Reviewed-on: #118
This commit is contained in:
commit
d8f25a30dc
@ -92,7 +92,7 @@ trait ListsExcelTrait
|
|||||||
}
|
}
|
||||||
$writer->save($src . $this->fileName);
|
$writer->save($src . $this->fileName);
|
||||||
//设置本地excel缓存并返回下载地址
|
//设置本地excel缓存并返回下载地址
|
||||||
return 'http://'.request()->host().'/admin/download/export?file='.$exportCache->setFile($this->fileName);
|
return 'https://'.request()->host().'/admin/download/export?file='.$exportCache->setFile($this->fileName);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @notes 获取导出信息
|
* @notes 获取导出信息
|
||||||
|
Loading…
x
Reference in New Issue
Block a user