This commit is contained in:
sjk
2026-01-07 22:55:12 +08:00
parent cb267e8d5e
commit 4720ab2a15
76 changed files with 3110 additions and 7168 deletions

View File

@@ -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"
}