Commit 850a0673 by huangchengyi

1.0

parent e1d23d4f
Showing with 3 additions and 4 deletions
...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment