aa
This commit is contained in:
@@ -3,6 +3,7 @@ package controllers
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
@@ -85,6 +86,11 @@ func (ue *KnowUploadController) SnsUploadImg() {
|
||||
}
|
||||
fmt.Println("打印所有的请求 : ", ue.Ctx.Request.PostForm)
|
||||
fmt.Println("打印 upfile :", ue.Ctx.Request.PostForm.Get("upfile"))
|
||||
ue.Data["json"] = &CallResult{
|
||||
Data: "success",
|
||||
Code: model.ErrCodeSuccess,
|
||||
}
|
||||
ue.ServeJSON()
|
||||
default:
|
||||
fmt.Fprint(ue.Ctx.ResponseWriter, `{"msg":"请求地址错误"}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user