refactor(shipping-notice): 更新环境变量以及接口增强
This commit is contained in:
1 parent
ff7c227cc2
commit
d9b414b07b
8 files changed
+92
-14
No files matched your search
@@ -14,9 +14,8 @@ from app.services.shipping_notice.openapi_spec import build_dify_openapi_spec
|
||||
|
||||
def main() -> None:
|
||||
base = (
|
||||
os.getenv("SHIPPING_NOTICE_TOOL_API_BASE")
|
||||
os.getenv("HXOPS_TOOLS_API_BASE")
|
||||
or os.getenv("PUBLIC_BASE_URL")
|
||||
or os.getenv("HXOPS_PUBLIC_BASE_URL")
|
||||
or "http://127.0.0.1:5052"
|
||||
).rstrip("/")
|
||||
spec = build_dify_openapi_spec(base)
|
||||
@@ -30,3 +29,4 @@ def main() -> None:
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in new issue
Block a user