Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8641a0d9
authored
Apr 17, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://git.ichunt.net/q578953158/go_sku_server
parents
15b4c66e
38ec79f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
model/ly_sku.go
service/service_ly_common.go
service/service_zy.go
model/ly_sku.go
View file @
8641a0d9
...
...
@@ -223,6 +223,8 @@ func InitSkuData(sku string) (data LySku) {
goodsImages
:=
gjson
.
Get
(
sku
,
"goods_images"
)
.
String
()
goodsImages
=
strings
.
Replace
(
goodsImages
,
"http://img.ichunt.com"
,
"https://img.ichunt.com"
,
1
)
goodsImages
=
strings
.
Replace
(
goodsImages
,
"http://image.ichunt.net"
,
"https://image.ichunt.net"
,
1
)
goodsImages
=
strings
.
Replace
(
goodsImages
,
"https://image.ichunt.net"
,
"https://imgscdn.ichunt.com"
,
1
)
data
.
GoodsImages
=
goodsImages
canal
:=
gjson
.
Get
(
sku
,
"canal"
)
.
String
()
...
...
service/service_ly_common.go
View file @
8641a0d9
...
...
@@ -34,7 +34,13 @@ func (ls *LyService) GetGoodsImages(sku model.LySku, spu string) model.LySku {
sku
.
GoodsImages
=
""
}
sku
.
GoodsImages
=
strings
.
Replace
(
sku
.
GoodsImages
,
"http://img.ichunt.com"
,
"https://img.ichunt.com"
,
1
)
sku
.
GoodsImages
=
strings
.
Replace
(
sku
.
GoodsImages
,
"http://image.ichunt.net"
,
"https://image.ichunt.net"
,
1
)
sku
.
GoodsImages
=
strings
.
Replace
(
sku
.
GoodsImages
,
"https://image.ichunt.net"
,
"https://imgscdn.ichunt.com"
,
1
)
sku
.
ImagesL
=
strings
.
Replace
(
sku
.
ImagesL
,
"http://img.ichunt.com"
,
"https://img.ichunt.com"
,
1
)
sku
.
ImagesL
=
strings
.
Replace
(
sku
.
ImagesL
,
"http://image.ichunt.net"
,
"https://image.ichunt.net"
,
1
)
sku
.
ImagesL
=
strings
.
Replace
(
sku
.
ImagesL
,
"https://image.ichunt.net"
,
"https://imgscdn.ichunt.com"
,
1
)
return
sku
}
...
...
service/service_zy.go
View file @
8641a0d9
...
...
@@ -234,6 +234,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
}
image
:=
gjson
.
Get
(
goodsImages
,
"url"
)
.
String
()
image
=
strings
.
Replace
(
image
,
"http://img.ichunt.com"
,
"https://img.ichunt.com"
,
1
)
image
=
strings
.
Replace
(
image
,
"http://image.ichunt.net"
,
"https://image.ichunt.net"
,
1
)
image
=
strings
.
Replace
(
image
,
"https://image.ichunt.net"
,
"https://imgscdn.ichunt.com"
,
1
)
A
.
Set
(
"goods_images"
,
image
)
pdf
:=
gjson
.
Get
(
info
,
"pdf"
)
.
String
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment