chore(catalog): 清理 LEWAN_ 列表过滤与商品图 UUID 历史回退

商品列表不再过滤镜像 SKU;图片只按英文 SKU 解析,修正 DLC 预设文案。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-14 20:33:42 +08:00
co-authored by Cursor
parent c2d8228512
commit 6dc2375a79
4 changed files with 11 additions and 23 deletions
+2 -3
View File
@@ -57,9 +57,8 @@ func mapKeys(values map[string]struct{}) []string {
func (h *MerchantHandler) ListProducts(c *gin.Context) {
page, size := pageParams(c)
list, total, err := h.merchantSvc.ListMerchantProductsWithOptions(middleware.GetMerchantID(c), page, size, service.ListMerchantProductsOptions{
Status: strings.TrimSpace(c.Query("status")),
Keyword: strings.TrimSpace(c.Query("keyword")),
ExcludeLegacyLewanSKU: true, // LEWAN_* 镜像已废弃,列表永不返回
Status: strings.TrimSpace(c.Query("status")),
Keyword: strings.TrimSpace(c.Query("keyword")),
})
if err != nil {
if err.Error() == "无效的商品状态" {