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
a8b4eb66
authored
Dec 04, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
15cfd232
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
service/optimum_service.go
service/optimum_service.go
View file @
a8b4eb66
...
...
@@ -228,7 +228,6 @@ func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.Ly
GoodsUrl
:=
""
BrandUrl
:=
""
Multiple
:=
0
referer
:=
ctx
.
GetHeader
(
"Referer"
)
if
referer
!=
""
{
dome
:=
strings
.
Split
(
referer
,
".com"
)
...
...
@@ -239,14 +238,17 @@ func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.Ly
}
else
{
GoodsUrl
=
dome
[
0
]
+
".com/goods_"
+
v
.
GoodsId
+
".html"
BrandUrl
=
dome
[
0
]
+
".com/v3/brand/list/"
+
strconv
.
Itoa
(
v
.
BrandId
)
+
".html"
//联营倍数
Multiple
=
v
.
Mpq
if
v
.
Mpq
>
v
.
Moq
{
Multiple
=
v
.
Moq
}
}
}
}
Multiple
:=
0
//联营倍数
if
v
.
SupplierName
!=
"猎芯自营"
{
//联营倍数
Multiple
=
v
.
Mpq
if
v
.
Mpq
>
v
.
Moq
{
Multiple
=
v
.
Moq
}
}
endArr
=
append
(
endArr
,
model
.
DullGoodsData
{
ApiGoods
:
v
,
...
...
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