refactor(catalog): 废弃 LEWAN_ 镜像,统一英文 SKU 与积分价,商品图按 SKU 缓存

对外目录只保留英文主 sku;迁移硬删镜像并校准 1元=100积分;发货页/凭证优先使用 local {sku}.webp。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-14 20:00:26 +08:00
co-authored by Cursor
parent bf9614569e
commit df1a170d44
57 changed files with 1052 additions and 171 deletions
@@ -39,3 +39,10 @@ func fallbackName(value, fallback string) string {
}
return fallback
}
// IsLegacyLewanMirrorSKU 判断是否为历史乐玩镜像 sku(LEWAN_*/lewan_*)。
// 对外目录应使用英文主 sku;乐玩只作为履约配置挂接。
func IsLegacyLewanMirrorSKU(sku string) bool {
normalized := strings.ToLower(strings.TrimSpace(sku))
return strings.HasPrefix(normalized, "lewan_")
}