chore(erp): 清理ERP_API_KEY硬编码默认值+任务脚本小调整(与本次待办跳转修复无关,单独成commit)

This commit is contained in:
Hermes CI Fix
2026-08-31 15:33:07 +08:00
parent 74dc9baff5
commit 79bc877f31
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ try:
else:
s = DataSourceConfig(name='ERP系统 - 博海网络', source_type='erp',
api_endpoint='http://127.0.0.1:8300/api/v1',
api_key='erp-gateway-key-bhwl-2026', sync_type='batch', status='active')
api_key=os.getenv("ERP_API_KEY", ""), sync_type='batch', status='active')
db.add(s); db.commit(); db.refresh(s)
print(f" [OK] 插入成功: id={s.id}")
for r in db.query(DataSourceConfig).all():