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