MCPcopy Index your code
hub / github.com/TruthHun/DocHub / Get

Method Get

controllers/HomeControllers/UploadController.go:31–42  ·  view source on GitHub ↗

文档上传页面

()

Source from the content-addressed store, hash-verified

29
30//文档上传页面
31func (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//处理流程:

Callers

nothing calls this directly

Calls 3

GetByPageMethod · 0.80
GetByFieldMethod · 0.80
XsrfMethod · 0.45

Tested by

no test coverage detected