* 2023-01-30 v2.7.0 dev

- 增加粘贴上传状态
- 增加前端显示缩略图链接
- 增加图片详细信息登录后显示更多信息
- 修复图片详细信息中随机图片排版混乱
This commit is contained in:
icret
2023-01-30 06:15:24 +08:00
parent 6409be96fb
commit 665bdf7d65
19 changed files with 312 additions and 215 deletions

View File

@@ -129,7 +129,8 @@ if ($handle->uploaded) {
$delUrl = "Admin closed user delete";
}
// 当设置访问生成缩略图时自动生成 2022-12-30 修正 2023-01-24
// 当设置访问生成缩略图时自动生成 2022-12-30 修正 2023-01-30
$handleThumb = $config['domain'] . '/application/thumb.php?img=' . $pathIMG;
if ($config['thumbnail'] == 2) {
// 自定义缩略图长宽
$handle->image_resize = true;
@@ -138,7 +139,8 @@ if ($handle->uploaded) {
// 如果调整后的图像大于原始图像,则取消调整大小,以防止放大
$handle->image_no_enlarging = true;
$handle->file_new_name_body = date('Y_m_d_') . $handle->file_dst_name_body;
$handle->process(APP_ROOT . $config['path'] . 'thumbnails/');
$handle->process(APP_ROOT . $config['path'] . 'cache/');
$handleThumb = $config['domain'] . $config['path'] . 'cache/' . $handle->file_dst_name;
}
// 上传成功后返回json数据
@@ -147,7 +149,7 @@ if ($handle->uploaded) {
"code" => 200,
"url" => $imageUrl,
"srcName" => $handle->file_src_name_body,
"thumb" => $config['domain'] . '/application/thumb.php?img=' . $pathIMG,
"thumb" => $handleThumb,
"del" => $delUrl,
);
echo json_encode($reJson, JSON_UNESCAPED_UNICODE);