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
03792ca1
authored
Jul 14, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
02ea1cbe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
7 deletions
service/common_ly_service.go
service/mouser_service.go
service/common_ly_service.go
View file @
03792ca1
...
...
@@ -138,7 +138,7 @@ func (t *CommonLyService) writeSkuInfo(skuInfo *model.LyClearGoodsList,skuId str
//todo 如果是digikey新增,需要插入原始映射表
if
t
.
supplierId
==
7
{
//redisWrite.Do("HSET",
SKU_RAW_MAP,skuKey,skuId)
redisWrite
.
Do
(
"HSET"
,
t
.
SKU_RAW_MAP
,
skuKey
,
skuId
)
}
}
...
...
service/mouser_service.go
View file @
03792ca1
...
...
@@ -9,12 +9,6 @@ import (
//mouser外链网址
const
Mouser_api_url
string
=
"https://api.mouser.com/api/v1/search/partnumber?apiKey=0a11fa6f-ddcb-4ddf-9947-e42b2f3b4723"
//单例
type
MouserServiceImpl
struct
{}
func
NewMouserServiceImpl
()
*
MouserServiceImpl
{
return
&
MouserServiceImpl
{}
}
//mouser请求外链
func
OutLink
(
goodsName
*
string
,
flag
string
)
map
[
string
]
*
model
.
LyClearGoodsList
{
var
result
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