修改配置文件路徑

main
Administrator 2024-05-19 00:31:20 +08:00
parent b874910cbe
commit 9b88c718d9
3 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@ package file
import "aiweek/tools"
func GetFileServerUrl() string {
server := tools.NewServerConfObj().ReadYaml("./fileserver.yaml").Server[0]
server := tools.NewServerConfObj().ReadYaml("/conf/fileserver.yaml").Server[0]
return server
}

View File

@ -102,7 +102,7 @@ func Id2CloudId(id string) string {
func GetWeeklyTicket() []string {
optionobj := tools.NewOptionObj()
Opt := optionobj.ReadYaml("./udesk.yaml").Filters
Opt := optionobj.ReadYaml("/conf/udesk.yaml").Filters
sevenDayPages, err := GetUdeskTicketId(Opt[0].Filter7D)
if err != nil {
log.Printf("获取7天的工单过滤器中的page信息失败错误是%v", err)

View File

@ -8,7 +8,7 @@ import (
// 加载宏
func excludeMacros() []string {
macros := tools.NewOptionObj().ReadYaml("./udesk.yaml").Macros
macros := tools.NewOptionObj().ReadYaml("/conf/udesk.yaml").Macros
return macros
}