huangjiajun 1 month ago
parent
commit
dcf9a60431
2 changed files with 9 additions and 3 deletions
  1. +3
    -1
      app/agent/hdl/hdl_store.go
  2. +6
    -2
      app/store/hdl/hdl_store.go

+ 3
- 1
app/agent/hdl/hdl_store.go View File

@@ -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)),
}


+ 6
- 2
app/store/hdl/hdl_store.go View File

@@ -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),


Loading…
Cancel
Save