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
2127a522
authored
Apr 19, 2023
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-测试分支-20230419' into dev
parents
046b2f64
d5754a8c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
pkg/vars/sku.go
service/service_ly.go
pkg/vars/sku.go
View file @
2127a522
...
...
@@ -17,17 +17,17 @@ var GoodsTags = map[int]string{
}
var
StockInfoSupplierMap
=
map
[
int64
]
string
{
6
:
"element14"
,
//
6: "element14",
7
:
"digikey"
,
14
:
"mouser"
,
21
:
"rs"
,
1672
:
"master"
,
//
14: "mouser",
//
21: "rs",
//
1672: "master",
}
var
StockInfoSupplierIds
=
[]
int64
{
6
,
//
6,
7
,
14
,
21
,
1672
,
//
14,
//
21,
//
1672,
}
service/service_ly.go
View file @
2127a522
...
...
@@ -124,9 +124,9 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
sku
.
StandardBrand
=
ls
.
GetStandardBrand
(
brandId
)
//处理过期,todo 2022.7.13 专卖没有过期
if
sku
.
SupplierId
!=
17
&&
gjson
.
Get
(
skuStr
,
"is_expire"
)
.
Int
()
!=
0
{
sku
.
LadderPrice
=
nil
}
//
if sku.SupplierId != 17 && gjson.Get(skuStr, "is_expire").Int() != 0 {
//
sku.LadderPrice = nil
//
}
//处理活动
sku
.
AcType
=
0
...
...
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