aa
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -3730,7 +3730,7 @@ func init() {
|
||||
web.ControllerComments{
|
||||
Method: "SNSUploadImg",
|
||||
Router: `/SNSUploadImg`,
|
||||
AllowHTTPMethods: []string{"post"},
|
||||
AllowHTTPMethods: []string{"get"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
Reference in New Issue
Block a user