This commit is contained in:
suyl
2021-06-29 16:56:37 +08:00
parent 3a7d377b91
commit 4cedb56314

View File

@@ -73,7 +73,9 @@ func (ue *KnowUploadController) SnsUploadImg() {
fmt.Fprintf(ue.Ctx.ResponseWriter, "json encode failed $v", err)
return
}
fmt.Fprint(ue.Ctx.ResponseWriter, string(tt))
ue.Data["jsonp"] = string(tt)
ue.ServeJSONP()
//fmt.Fprint(ue.Ctx.ResponseWriter, string(tt))
// 上传图片的功能
case "uploadimage":
err := ue.Ctx.Request.ParseForm()