commit
This commit is contained in:
@@ -232,3 +232,12 @@ func (c *DatabaseConfig) GetDSN() string {
|
||||
c.Loc,
|
||||
)
|
||||
}
|
||||
|
||||
// GetPythonServiceURL 获取Python服务地址
|
||||
func GetPythonServiceURL() string {
|
||||
if AppConfig != nil && AppConfig.XHS.PythonServiceURL != "" {
|
||||
return AppConfig.XHS.PythonServiceURL
|
||||
}
|
||||
// 默认返回本地地址
|
||||
return "http://localhost:8000"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user