1
This commit is contained in:
@@ -2,7 +2,6 @@ package controllers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -190,10 +189,10 @@ func pushMTWMOrder2GY(value url.Values, msgType string, serverType string) *mtwm
|
||||
return mtwmapi.Err2CallbackResponse(err, "")
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
byteData, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return mtwmapi.Err2CallbackResponse(err, "")
|
||||
}
|
||||
fmt.Println(string(byteData))
|
||||
return mtwmapi.Err2CallbackResponse(err, "")
|
||||
byteData, _ := ioutil.ReadAll(resp.Body)
|
||||
|
||||
result := mtwmapi.CallbackResponse{}
|
||||
json.Unmarshal(byteData, &result)
|
||||
|
||||
return &result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user