Files
fitness-coach/miniprogram/config.js
wm 8d584129ec fix: gif-player 加 cache-bust 击穿微信 GET 缓存
- config.js 新增 MEDIA_CACHE_BUST 常量,换媒体后改此值即可强制客户端重下
- gif-player _load 给 src 追加 cb 参数,避免覆盖 720 动图后仍显示微信缓存的旧 180 图
2026-07-24 16:31:12 +08:00

11 lines
710 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 后端基础地址配置。
// ⚠️ 生产环境必须替换为已在「微信公众平台 -> 开发 -> 开发设置 -> 服务器域名」
// 中配置的 HTTPS 合法域名request 合法域名),否则真机无法发起请求。
// 当前直连服务器 IP开发期在微信开发者工具中勾选「不校验合法域名」即可联调
module.exports = {
BASE_URL: 'http://192.227.237.8:3001',
// 媒体资源缓存击穿:服务器静态文件(动图/图片)被覆盖新版本后,旧版可能被微信请求缓存,
// 导致客户端仍显示旧图。换媒体(如重做超分动图)后修改此值即可强制全量客户端重新下载。
MEDIA_CACHE_BUST: '20260724'
};