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
850a0673
authored
Jul 24, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
e1d23d4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
controller/ly_mouser_controller.go
controller/ly_mouser_controller.go
View file @
850a0673
...
@@ -5,12 +5,12 @@ import (
...
@@ -5,12 +5,12 @@ import (
"search_server/model"
"search_server/model"
"search_server/pkg/common"
"search_server/pkg/common"
"search_server/service/ly"
"search_server/service/ly"
"fmt"
"strings"
"strings"
)
)
//搜索型号
//搜索型号
func
GetMouserData
(
c
*
gin
.
Context
)
{
func
GetMouserData
(
c
*
gin
.
Context
)
{
_REQUEST
:=
make
(
map
[
string
]
string
,
0
);
_REQUEST
:=
make
(
map
[
string
]
string
,
0
);
c
.
MultipartForm
()
c
.
MultipartForm
()
for
requestName
,
requstValue
:=
range
c
.
Request
.
Form
{
for
requestName
,
requstValue
:=
range
c
.
Request
.
Form
{
...
@@ -18,15 +18,14 @@ func GetMouserData(c *gin.Context) {
...
@@ -18,15 +18,14 @@ func GetMouserData(c *gin.Context) {
_REQUEST
[
requestName
]
=
strings
.
TrimSpace
(
requstValue
[
0
])
_REQUEST
[
requestName
]
=
strings
.
TrimSpace
(
requstValue
[
0
])
}
}
}
}
goodsName
:=
_REQUEST
[
"goods_name"
]
goodsName
:=
_REQUEST
[
"goods_name"
]
if
goodsName
==
""
{
if
goodsName
==
""
{
c
.
String
(
1001
,
"goods_name不得为空"
)
c
.
JSON
(
200
,
"goods_name不得为空"
)
return
return
}
}
fmt
.
Println
(
goodsName
)
//调外链拿数据
//调外链拿数据
apiData
:=
ly
.
OutLinkMouser
(
&
goodsName
,
"-1"
)
apiData
:=
ly
.
OutLinkMouser
(
&
goodsName
,
"-1"
)
...
...
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