Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wang
/
golang-open-platform
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
af56849f
authored
Feb 25, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复返回sku重复问题
parent
4a514dce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
doc/redis_config_generate.go
model/filter.go
doc/redis_config_generate.go
View file @
af56849f
...
...
@@ -76,6 +76,7 @@ func whiteIp() {
"192.168.2.129"
,
"19.123.78.115"
,
"222.92.21.99"
,
"192.168.2.72"
,
"::1"
,
}
...
...
@@ -128,6 +129,8 @@ func businessInterfaceList() {
"dayMaxNum"
:
6100
,
"minMaxNum"
:
2000
,
"totalMaxNum"
:
10000
,
},
/*baiduToken+"_"+getSkuListByClass: map[string]interface{}{
"dayMaxNum":100,
...
...
model/filter.go
View file @
af56849f
...
...
@@ -44,12 +44,12 @@ func filterData(remoteData RemoteSkuData,filterField []string)(ArraySkuData){
newItem
[
field
]
=
""
//common.PrintStdout().Printf("skuId:%s,字段:%s 不存在",string(skuId),field)
}
arraySkud
=
append
(
arraySkud
,
newItem
)
}
remoteData
[
skuId
]
=
newItem
arraySkud
=
append
(
arraySkud
,
newItem
)
//remoteData[skuId]=newItem
}
else
{
//有问题的格式
common
.
PrintStdout
()
.
Printf
(
"skuId:%s,是个有问题的格式"
,
string
(
skuId
))
delete
(
remoteData
,
skuId
)
//
delete(remoteData,skuId)
continue
}
}
...
...
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