This commit is contained in:
Your Name
2026-06-05 15:12:57 +08:00
parent c554e08f2e
commit a440702c07
12 changed files with 298 additions and 92 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ export function warmUpFoodImgs(foods) {
const list = Array.isArray(foods) ? foods : []
list.forEach((f) => {
const icon = typeof f === 'string' ? f : f?.icon
const url = getFoodImgUrl(icon)
// 优先预热自定义图片素材,缺省回退 emoji PNG
const url = (typeof f === 'object' && f?.img) ? f.img : getFoodImgUrl(icon)
if (!url) return
// #ifdef MP-WEIXIN
try {