fix(fe): 修社区图片撑破网格;发帖限 3 张;上传偶发失败自动重试

- .photo-tile 补 width:100%+min-width:0:微信 image 默认 320x240,
  不给宽高会冲破 photo-grid(社区帖子图片"爆炸")
- 发帖图片上限从 9 张改成 3 张
- uploadFile 三重兜底:冷启动没 token 先续期、40100 续期重试、
  网络/网关瞬时错误自动重试一次(后端 MD5 去重,重传安全)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-31 08:32:22 +08:00
parent a010629ac1
commit c852817363
3 changed files with 43 additions and 22 deletions
+4 -1
View File
@@ -391,7 +391,10 @@ page{scrollbar-width:none;-ms-overflow-style:none}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-1);margin-bottom:var(--sp-3)}
.photo-tile{
aspect-ratio:1;border-radius:var(--r-sm);background:var(--primary-soft);
/* 微信 image 默认 320x240,不显式给宽高会撑破网格。width:100% + min-width:0
让它缩进 1fr 格子,aspect-ratio 保持正方形,overflow 裁掉溢出 */
width:100%;min-width:0;aspect-ratio:1;overflow:hidden;
border-radius:var(--r-sm);background:var(--primary-soft);
display:flex;align-items:center;justify-content:center;font-size:56rpx;
}