Commit 349b9c68 by mushishixian

fix

parent d5c7ccb5
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
func main() { func main() {
var path string var path string
flag.StringVar(&path, "configPath", "conf", "配置文件") flag.StringVar(&path, "config", "conf", "配置文件")
flag.Parse() flag.Parse()
if err := boot.Boot(path); err != nil { if err := boot.Boot(path); err != nil {
panic(err) panic(err)
......
...@@ -19,7 +19,7 @@ func init() { ...@@ -19,7 +19,7 @@ func init() {
func MouserGetData(c *service.MouserServiceImpl) gin_.Endpoint { func MouserGetData(c *service.MouserServiceImpl) gin_.Endpoint {
return func(context *gin.Context, request interface{}) (response interface{}, err error) { return func(context *gin.Context, request interface{}) (response interface{}, err error) {
rsp := &mouser.MouserResponse{} rsp := &mouser.MouserResponse{}
err = c.MouserGetData(context, request.(*mouser.MouserRequest), rsp) //err = c.MouserGetData(context, request.(*mouser.MouserRequest), rsp)
return rsp, err return rsp, err
} }
} }
......
...@@ -70,7 +70,7 @@ func OutLink(goodsName string,flag string) map[string]*model.LyClearGoodsList { ...@@ -70,7 +70,7 @@ func OutLink(goodsName string,flag string) map[string]*model.LyClearGoodsList {
} }
return productList return productList
os.Exit(1) //os.Exit(1)
//xml := strings.NewReader(resp) //xml := strings.NewReader(resp)
//json, err := xj.Convert(xml) //json, err := xj.Convert(xml)
......
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