From c28a2c2031f35edabd4ea2a0672985fe5dbd297e Mon Sep 17 00:00:00 2001 From: QiuSW <105186638@qq.com> Date: Mon, 14 Sep 2026 09:08:20 +0800 Subject: [PATCH] fix: expose shopee sync failure reason --- app/admin/apis/shopee_product.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/apis/shopee_product.go b/app/admin/apis/shopee_product.go index 2946270..d8c4553 100644 --- a/app/admin/apis/shopee_product.go +++ b/app/admin/apis/shopee_product.go @@ -94,11 +94,11 @@ func (e ShopeeProduct) getByShopeeID(c *gin.Context, requireAPIKey bool) { return } if _, err := client.SyncShopProduct(c.Request.Context(), *record); err != nil { - e.Error(502, err, "Shopee 商品同步失败") + e.Error(502, err, "Shopee 商品同步失败:"+err.Error()) return } if _, err := client.WaitForProductSync(c.Request.Context(), record.ID, time.Second); err != nil { - e.Error(502, err, "Shopee 商品同步失败") + e.Error(502, err, "Shopee 商品同步失败:"+err.Error()) return } // The sync task updates the ERP asynchronously. Locate the record again so