This commit is contained in:
suyl
2021-06-29 17:54:32 +08:00
parent 725d842374
commit 36ec8f5036
2 changed files with 3 additions and 3 deletions

View File

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