MCPcopy Create free account
hub / github.com/TruthHun/DocHub / CloudStore

Method CloudStore

controllers/AdminControllers/SysController.go:201–208  ·  view source on GitHub ↗

云存储配置

()

Source from the content-addressed store, hash-verified

199
200// 云存储配置
201func (this *SysController) CloudStore() {
202 tab := this.GetString("tab", models.GlobalSys.StoreType)
203 modelConfig := models.NewConfig()
204 this.Data["Config"] = modelConfig.GetByCate(helper.ConfigCate(tab))
205 this.Data["Tab"] = tab
206 this.Data["IsCloudStore"] = true
207 this.TplName = "cloud-store.html"
208}
209
210func (this *SysController) SetCloudStore() {
211 storeType := helper.ConfigCate(this.GetString("tab", "cs-oss"))

Callers

nothing calls this directly

Calls 1

GetByCateMethod · 0.95

Tested by

no test coverage detected