fix: 改进错误提示、代理测试和落地IP查询
- 前端所有页面显示后端真实错误信息,不再显示通用"失败" - 新增代理测试功能和落地IP查询 - 修复凭证未配置时返回500改为400+中文提示 - 修复Settings页面字段名与后端一致(proxy_ip) - 修复favicon 404、bcrypt版本兼容、tsconfig配置
This commit is contained in:
@@ -83,3 +83,12 @@ def test_connection(
|
||||
):
|
||||
"""Test Airwallex API connection with current settings."""
|
||||
return airwallex_service.test_connection(db)
|
||||
|
||||
|
||||
@router.post("/test-proxy")
|
||||
def test_proxy(
|
||||
db: Session = Depends(get_db),
|
||||
user: AdminUser = Depends(get_current_user),
|
||||
):
|
||||
"""Test proxy connectivity and query outbound IP."""
|
||||
return airwallex_service.test_proxy(db)
|
||||
|
||||
Reference in New Issue
Block a user