Commit 62a16c6c authored by szh's avatar szh

up

parent 39f124a0
......@@ -13,7 +13,6 @@ import (
"log"
"net/http"
"time"
"io/ioutil"
)
func GetDevdetail(c *gin.Context) {
......@@ -237,12 +236,13 @@ func GetUploadTest(c *gin.Context){
func GetTest(c *gin.Context){
appG:=app.Gin{C:c}
body,err := ioutil.ReadAll(appG.C.Request.Body)
raw,err := appG.C.GetRawData()
//body,err := ioutil.ReadAll(appG.C.Request.Body)
if err!=nil{
appG.Response(http.StatusOK, e.INVALID_PARAMS, err)
return
}
logging.Info("test","report",string(body))
logging.Info("test","report",string(raw))
appG.Response(http.StatusOK, e.SUCCESS, nil)
}
\ No newline at end of file
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 to comment