提交打包
This commit is contained in:
4
app/.env
4
app/.env
@@ -12,8 +12,8 @@ client_name=ShuFuAI
|
||||
|
||||
|
||||
# java_api_base=http://47.111.163.154:18080
|
||||
java_api_base=http://127.0.0.1:18080
|
||||
# java_api_base=http://127.0.0.1:18080
|
||||
# java_api_base=http://8.136.19.173:18080
|
||||
# java_api_base=http://121.196.149.225:18080
|
||||
java_api_base=http://121.196.149.225:18080
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
1
app/assets/appearance-patent-D7zGgGOj.css
Normal file
1
app/assets/appearance-patent-D7zGgGOj.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
app/assets/appearance-patent-PfkmUjo7.css
Normal file
1
app/assets/appearance-patent-PfkmUjo7.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{b9 as r}from"./pywebview-BIpip8XG.js";const n="";function s(e){return r(`${n}/api/brand/expand-folder-recursive`,{folder:e})}export{s as e};
|
||||
import{bb as r}from"./pywebview-CcblbV5J.js";const n="";function s(e){return r(`${n}/api/brand/expand-folder-recursive`,{folder:e})}export{s as e};
|
||||
@@ -1 +0,0 @@
|
||||
import{ba as r}from"./pywebview-C5IohfcY.js";const n="";function a(e){return r(`${n}/api/brand/expand-folder-recursive`,{folder:e})}export{a as e};
|
||||
1
app/assets/brand-DWzxEq8d.js
Normal file
1
app/assets/brand-DWzxEq8d.js
Normal file
@@ -0,0 +1 @@
|
||||
import{bc as r}from"./pywebview-BdjYDsam.js";const n="";function s(e){return r(`${n}/api/brand/expand-folder-recursive`,{folder:e})}export{s as e};
|
||||
1
app/assets/brand-DqzUfBy1.js
Normal file
1
app/assets/brand-DqzUfBy1.js
Normal file
@@ -0,0 +1 @@
|
||||
import{bb as r}from"./pywebview-BPTq9Myk.js";const n="";function s(e){return r(`${n}/api/brand/expand-folder-recursive`,{folder:e})}export{s as e};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
55
app/assets/pywebview-BdjYDsam.js
Normal file
55
app/assets/pywebview-BdjYDsam.js
Normal file
File diff suppressed because one or more lines are too long
55
app/assets/pywebview-CcblbV5J.js
Normal file
55
app/assets/pywebview-CcblbV5J.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
app/assets/similar-asin-BNT8o5yy.css
Normal file
1
app/assets/similar-asin-BNT8o5yy.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
app/assets/similar-asin-CVTb4S1E.css
Normal file
1
app/assets/similar-asin-CVTb4S1E.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
app/assets/zh-cn-LxlSD91O.js
Normal file
1
app/assets/zh-cn-LxlSD91O.js
Normal file
File diff suppressed because one or more lines are too long
1
app/assets/zh-cn-i-iW9l8U.js
Normal file
1
app/assets/zh-cn-i-iW9l8U.js
Normal file
File diff suppressed because one or more lines are too long
@@ -218,15 +218,17 @@ def proxy(path):
|
||||
f"{JAVA_API_BASE}/api/product-risk-resolve/tasks/progress/batch",
|
||||
]
|
||||
proxy_timeout = 180 if target_url.endswith("/api/delete-brand/run") else 30
|
||||
if target_url not in ignore_url:
|
||||
try:
|
||||
print("=============================")
|
||||
print("target_url:",target_url)
|
||||
print("params:",params)
|
||||
print("data:",request.get_data())
|
||||
print("=============================")
|
||||
except Exception as e:
|
||||
print("打印失败",e)
|
||||
if target_url not in ignore_url:
|
||||
try:
|
||||
print("=============================")
|
||||
print("target_url:", target_url)
|
||||
print("params:", params)
|
||||
print("data:", request.get_data())
|
||||
print("method:", request.method)
|
||||
print("timeout:", proxy_timeout)
|
||||
print("=============================")
|
||||
except Exception as e:
|
||||
print("打印失败", e)
|
||||
|
||||
try:
|
||||
# 使用流式请求
|
||||
@@ -257,12 +259,12 @@ def proxy(path):
|
||||
|
||||
return response
|
||||
|
||||
except requests.exceptions.Timeout:
|
||||
print("后端服务超时")
|
||||
return Response("后端服务超时", status=504)
|
||||
except requests.exceptions.ConnectionError:
|
||||
print("无法连接到后端服务")
|
||||
return Response("无法连接到后端服务", status=502)
|
||||
except Exception as e:
|
||||
print(f"代理请求失败: {e}")
|
||||
except requests.exceptions.Timeout:
|
||||
print(f"后端服务超时:target_url={target_url}, timeout={proxy_timeout}")
|
||||
return Response("后端服务超时", status=504)
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
print(f"无法连接到后端服务:target_url={target_url}, error={e}")
|
||||
return Response("无法连接到后端服务", status=502)
|
||||
except Exception as e:
|
||||
print(f"代理请求失败:target_url={target_url}, error={e}")
|
||||
return Response(f"代理错误: {str(e)}", status=500)
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
base_url = "https://api.coze.cn/v1"
|
||||
coze_token = "sat_12nW40INoJxArrDXbY4lSCoudbqkOYTcphC99BP2efWyzxmsk4q81WDX3ezWgqZ5"
|
||||
workflow_id = "7608812635877900322"
|
||||
STITCH_WORKFLOW_ID = "7608813873483300907"
|
||||
|
||||
base_url = "https://api.coze.cn/v1"
|
||||
coze_token = "sat_12nW40INoJxArrDXbY4lSCoudbqkOYTcphC99BP2efWyzxmsk4q81WDX3ezWgqZ5"
|
||||
workflow_id = "7608812635877900322"
|
||||
STITCH_WORKFLOW_ID = "7608813873483300907"
|
||||
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
from queue import Queue
|
||||
load_dotenv()
|
||||
_base_url = os.getenv("base_url","http://159.75.121.33:15124")
|
||||
|
||||
base_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
dotenv_path = os.path.join(base_dir, ".env")
|
||||
load_dotenv(dotenv_path=dotenv_path, override=True)
|
||||
|
||||
_base_url = os.getenv("base_url","http://159.75.121.33:15124")
|
||||
|
||||
# MySQL 配置
|
||||
mysql_host = os.getenv("mysql_host")
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>格式转换 - 数富AI</title>
|
||||
<script type="module" crossorigin src="/assets/convert.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BIpip8XG.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-D0euV8A2.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DkmZpCeB.css">
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BPTq9Myk.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-DqzUfBy1.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DNJAt1gR.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/convert-BKSNvX8i.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>数据去重 - 数富AI</title>
|
||||
<script type="module" crossorigin src="/assets/dedupe.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BIpip8XG.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-D0euV8A2.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DkmZpCeB.css">
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BPTq9Myk.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-DqzUfBy1.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DNJAt1gR.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/dedupe-DNlVfFj-.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>删除品牌 - 数富AI</title>
|
||||
<script type="module" crossorigin src="/assets/delete-brand.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BIpip8XG.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-D0euV8A2.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BPTq9Myk.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-DqzUfBy1.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/categorized-timers-JPA-olTr.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DkmZpCeB.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DNJAt1gR.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/delete-brand-BJod9K65.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>数据拆分 - 数富AI</title>
|
||||
<script type="module" crossorigin src="/assets/split.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BIpip8XG.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-D0euV8A2.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DkmZpCeB.css">
|
||||
<link rel="modulepreload" crossorigin href="/assets/pywebview-BPTq9Myk.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/brand-DqzUfBy1.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/pywebview-DNJAt1gR.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/split-BoBVrLdC.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user