mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-24 18:25:01 +08:00
增加是否开启导出功能的选项
This commit is contained in:
@@ -137,6 +137,10 @@ func GetUploadFileSize() int64 {
|
||||
}
|
||||
return 0
|
||||
}
|
||||
//是否启用导出
|
||||
func GetEnableExport() bool {
|
||||
return beego.AppConfig.DefaultBool("enable_export",true)
|
||||
}
|
||||
//同一项目导出线程的并发数
|
||||
func GetExportProcessNum() int {
|
||||
exportProcessNum := beego.AppConfig.DefaultInt("export_process_num",1)
|
||||
|
||||
Reference in New Issue
Block a user