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
177910cb
authored
Jul 23, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
5f5216e7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
controller/mouser_controller.go
service/ly/mouser.go
controller/mouser_controller.go
View file @
177910cb
...
...
@@ -12,7 +12,7 @@ func GetMouserData(c *gin.Context) {
goodsName
,
_
:=
c
.
GetPostForm
(
"goods_name"
)
//lycon := new(ly.CommonLyService)
//调外链拿数据
apiData
:=
ly
.
OutLinkMouser
(
&
goodsName
,
"-1"
)
apiData
:=
ly
.
OutLinkMouser
2
(
&
goodsName
,
"-1"
)
//var shu string
//for _, info := range apiData {
...
...
@@ -37,13 +37,12 @@ func GetMouserData(c *gin.Context) {
// "3333":"333333",
// "gagaga":"333333",
// })
josn
,
errs
:=
json
.
Marshal
(
apiData
)
if
errs
!=
nil
{
fmt
.
Println
(
"错误"
)
}
c
.
JSON
(
200
,
string
(
josn
))
fmt
.
Println
(
len
(
josn
))
c
.
String
(
200
,
string
(
josn
))
//供应商详情
//supplierInfo := model.SUPPLIER_REDIS_INFO{
// SupplierId:14,
...
...
service/ly/mouser.go
View file @
177910cb
This diff is collapsed.
Click to expand it.
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