master
cody 6 months ago
parent 8a7581333e
commit 2db4ac4524

@ -1958,8 +1958,12 @@ class OrdersController extends CommonController
// 1. 创建临时文件路径
$options = [
'format' => 'png',
// 允许访问本地文件解决Blocked access to file警告
'enable-local-file-access' => true,
'disable-external-links' => true,
// 禁止加载图片(如果不需要图片可以开启)
// 'no-images' => true,
// 禁止加载JavaScript如果不需要JS可以开启
'no-js' => true,
];
$tempPath = storage_path('app/temp/' . uniqid() . '.' . $options['format']);
// 确保临时目录存在

Loading…
Cancel
Save