Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
cd2cb182
authored
Jan 12, 2023
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ser
parent
afcb8b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
service/goods_service.go
service/goods_service.go
View file @
cd2cb182
...
@@ -77,16 +77,18 @@ func CurlGoodsInfo(ctx *gin.Context, goodsIdsStr string, params req.Param) (good
...
@@ -77,16 +77,18 @@ func CurlGoodsInfo(ctx *gin.Context, goodsIdsStr string, params req.Param) (good
if
data
.
IsObject
()
{
if
data
.
IsObject
()
{
var
goods
model
.
ApiGoods
var
goods
model
.
ApiGoods
//todo 2023.1.10 标准品牌
//todo 2023.1.10 标准品牌
standard_brand
:=
data
.
Get
(
"standard_brand"
)
.
String
()
//
standard_brand := data.Get("standard_brand").String()
standard_brand_name
:=
gjson
.
Get
(
standard_brand
,
"brand_name"
)
.
String
()
//
standard_brand_name := gjson.Get(standard_brand, "brand_name").String()
if
standard_brand_name
!=
""
{
//
if standard_brand_name != "" {
goods
.
StandardBrandName
=
standard_brand_name
//
goods.StandardBrandName = standard_brand_name
goods
.
StandardBrandUrl
=
"https://ly.ichunt.com/brand/"
+
gjson
.
Get
(
standard_brand
,
"standard_brand_id"
)
.
String
()
+
".html"
//
goods.StandardBrandUrl = "https://ly.ichunt.com/brand/" + gjson.Get(standard_brand, "standard_brand_id").String() + ".html"
}
else
{
//
} else {
goods
.
StandardBrandName
=
""
//
goods.StandardBrandName = ""
goods
.
StandardBrandUrl
=
""
//
goods.StandardBrandUrl = ""
}
//
}
goods
.
StandardBrandName
=
""
goods
.
StandardBrandUrl
=
""
goods
.
PickType
=
int
(
data
.
Get
(
"pick_type"
)
.
Int
())
goods
.
PickType
=
int
(
data
.
Get
(
"pick_type"
)
.
Int
())
goods
.
BarCode
=
data
.
Get
(
"bar_code"
)
.
String
()
goods
.
BarCode
=
data
.
Get
(
"bar_code"
)
.
String
()
goods
.
GoodsId
=
data
.
Get
(
"goods_id"
)
.
String
()
goods
.
GoodsId
=
data
.
Get
(
"goods_id"
)
.
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