diff --git a/app/agent/hdl/hdl_store.go b/app/agent/hdl/hdl_store.go index fab0118..866ff2b 100644 --- a/app/agent/hdl/hdl_store.go +++ b/app/agent/hdl/hdl_store.go @@ -298,6 +298,8 @@ func UserStoreOrderDetail(c *gin.Context) { } orderInfo := db.GetOrderInfoAllEg(svc.MasterDb(c), arg.Oid) if orderInfo != nil { + scheme, host := svc.ImageBucket(c) + for _, v := range *orderInfo { skuData := make([]md.Sku, 0) json.Unmarshal([]byte(v.SkuInfo), &skuData) @@ -311,7 +313,7 @@ func UserStoreOrderDetail(c *gin.Context) { tmp := map[string]string{ "sku_str": skuStr, "goods_title": v.Title, - "goods_img": v.Img, + "goods_img": svc.ImageFormatWithBucket(scheme, host, v.Img), "num": utils.IntToStr(v.Num), "amount": utils.Float64ToStr(float64(v.Num) * utils.StrToFloat64(v.Price)), } diff --git a/app/store/hdl/hdl_store.go b/app/store/hdl/hdl_store.go index 8826223..84c0735 100644 --- a/app/store/hdl/hdl_store.go +++ b/app/store/hdl/hdl_store.go @@ -296,6 +296,8 @@ func UserStoreOrderDetail(c *gin.Context) { } orderInfo := db.GetOrderInfoAllEg(svc.MasterDb(c), arg.Oid) if orderInfo != nil { + scheme, host := svc.ImageBucket(c) + for _, v := range *orderInfo { skuData := make([]md.Sku, 0) json.Unmarshal([]byte(v.SkuInfo), &skuData) @@ -309,7 +311,7 @@ func UserStoreOrderDetail(c *gin.Context) { tmp := map[string]string{ "sku_str": skuStr, "goods_title": v.Title, - "goods_img": v.Img, + "goods_img": svc.ImageFormatWithBucket(scheme, host, v.Img), "num": utils.IntToStr(v.Num), "amount": utils.Float64ToStr(float64(v.Num) * utils.StrToFloat64(v.Price)), } @@ -446,12 +448,14 @@ func UserStoreBanner(c *gin.Context) { scheme := svc.SysCfgGet(c, "file_bucket_scheme") domain := svc.SysCfgGet(c, "file_bucket_host") linkTypeStr := []string{"内链分享", "外链分享"} + scheme, host := svc.ImageBucket(c) + for _, v := range *activity { tmp := map[string]string{ "id": utils.IntToStr(v.Id), "title": v.Title, "link_type_str": linkTypeStr[v.LinkType], - "img": v.Img, + "img": svc.ImageFormatWithBucket(scheme, host, v.Img), "img_url": svc.ImageFormatWithBucket(scheme, domain, v.Img), "label": v.Label, "uid": utils.IntToStr(v.Uid),