修改配置文件路徑
parent
b874910cbe
commit
9b88c718d9
|
@ -3,6 +3,6 @@ package file
|
||||||
import "aiweek/tools"
|
import "aiweek/tools"
|
||||||
|
|
||||||
func GetFileServerUrl() string {
|
func GetFileServerUrl() string {
|
||||||
server := tools.NewServerConfObj().ReadYaml("./fileserver.yaml").Server[0]
|
server := tools.NewServerConfObj().ReadYaml("/conf/fileserver.yaml").Server[0]
|
||||||
return server
|
return server
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ func Id2CloudId(id string) string {
|
||||||
|
|
||||||
func GetWeeklyTicket() []string {
|
func GetWeeklyTicket() []string {
|
||||||
optionobj := tools.NewOptionObj()
|
optionobj := tools.NewOptionObj()
|
||||||
Opt := optionobj.ReadYaml("./udesk.yaml").Filters
|
Opt := optionobj.ReadYaml("/conf/udesk.yaml").Filters
|
||||||
sevenDayPages, err := GetUdeskTicketId(Opt[0].Filter7D)
|
sevenDayPages, err := GetUdeskTicketId(Opt[0].Filter7D)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("获取7天的工单过滤器中的page信息失败!错误是%v", err)
|
log.Printf("获取7天的工单过滤器中的page信息失败!错误是%v", err)
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
// 加载宏
|
// 加载宏
|
||||||
func excludeMacros() []string {
|
func excludeMacros() []string {
|
||||||
macros := tools.NewOptionObj().ReadYaml("./udesk.yaml").Macros
|
macros := tools.NewOptionObj().ReadYaml("/conf/udesk.yaml").Macros
|
||||||
return macros
|
return macros
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue