()
| 1088 | } |
| 1089 | |
| 1090 | func (this *ManagerController) UpdateBanner() { |
| 1091 | id, _ := this.GetInt("id") |
| 1092 | field := this.GetString("field") |
| 1093 | value := this.GetString("value") |
| 1094 | if id > 0 { |
| 1095 | err := models.NewBanner().Update(id, field, value) |
| 1096 | if err != nil { |
| 1097 | this.JsonResult(1, err.Error()) |
| 1098 | } |
| 1099 | } |
| 1100 | this.JsonResult(0, "更新成功") |
| 1101 | } |
| 1102 | |
| 1103 | func (this *ManagerController) UploadBanner() { |
| 1104 | f, h, err := this.GetFile("image") |
nothing calls this directly
no test coverage detected