文档上传页面
()
| 29 | |
| 30 | //文档上传页面 |
| 31 | func (this *UploadController) Get() { |
| 32 | cond := orm.NewCondition().And("status", 1) |
| 33 | data, _, _ := models.GetList(models.GetTableCategory(), 1, 2000, cond, "Sort", "Title") |
| 34 | this.Xsrf() |
| 35 | this.Data["Seo"] = models.NewSeo().GetByPage("PC-Upload", "文档上传-文档分享", "文档上传,文档分享", "文档上传-文档分享", this.Sys.Site) |
| 36 | this.Data["Cates"], _ = conv.InterfaceToJson(data) |
| 37 | this.Data["json"] = data |
| 38 | this.Data["IsUpload"] = true |
| 39 | this.Data["PageId"] = "wenku-upload" |
| 40 | this.Data["MaxSize"] = models.NewSys().GetByField("MaxFile").MaxFile |
| 41 | this.TplName = "index.html" |
| 42 | } |
| 43 | |
| 44 | //文档执行操作 |
| 45 | //处理流程: |
nothing calls this directly
no test coverage detected