update pay ui
This commit is contained in:
1
MP_verify_17Fo4JhapMw6vtNa.txt
Normal file
1
MP_verify_17Fo4JhapMw6vtNa.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
17Fo4JhapMw6vtNa
|
||||||
13
app_vx.py
13
app_vx.py
@@ -5920,7 +5920,6 @@ def api_calendar_events():
|
|||||||
fact, \
|
fact, \
|
||||||
related_stocks, \
|
related_stocks, \
|
||||||
concepts, \
|
concepts, \
|
||||||
inferred_tag, \
|
|
||||||
second_modified_text, \
|
second_modified_text, \
|
||||||
`second_modified_text.1` as second_modified_text_1, \
|
`second_modified_text.1` as second_modified_text_1, \
|
||||||
best_matches
|
best_matches
|
||||||
@@ -5947,11 +5946,6 @@ def api_calendar_events():
|
|||||||
query += f" AND star IN ({placeholders})"
|
query += f" AND star IN ({placeholders})"
|
||||||
for i, imp in enumerate(importance_list):
|
for i, imp in enumerate(importance_list):
|
||||||
params[f'imp_{i}'] = imp
|
params[f'imp_{i}'] = imp
|
||||||
if category != 'all':
|
|
||||||
# category参数用于筛选inferred_tag字段(如"大周期"、"大消费"等)
|
|
||||||
query += " AND inferred_tag = :category"
|
|
||||||
params['category'] = category
|
|
||||||
|
|
||||||
# 新增搜索条件
|
# 新增搜索条件
|
||||||
if search_query:
|
if search_query:
|
||||||
# 使用LIKE进行模糊搜索,同时搜索title和related_stocks字段
|
# 使用LIKE进行模糊搜索,同时搜索title和related_stocks字段
|
||||||
@@ -5992,9 +5986,6 @@ def api_calendar_events():
|
|||||||
elif len(importance_list) > 1:
|
elif len(importance_list) > 1:
|
||||||
placeholders = ', '.join([f':imp_{i}' for i in range(len(importance_list))])
|
placeholders = ', '.join([f':imp_{i}' for i in range(len(importance_list))])
|
||||||
count_query += f" AND star IN ({placeholders})"
|
count_query += f" AND star IN ({placeholders})"
|
||||||
if category != 'all':
|
|
||||||
count_query += " AND inferred_tag = :category"
|
|
||||||
|
|
||||||
# 新增搜索条件到计数查询
|
# 新增搜索条件到计数查询
|
||||||
if search_query:
|
if search_query:
|
||||||
count_query += """ AND (
|
count_query += """ AND (
|
||||||
@@ -6157,11 +6148,9 @@ def api_calendar_events():
|
|||||||
'category': {
|
'category': {
|
||||||
'event_type': event.type,
|
'event_type': event.type,
|
||||||
'importance': event.star,
|
'importance': event.star,
|
||||||
'star_rating': star_rating,
|
'star_rating': star_rating
|
||||||
'inferred_tag': event.inferred_tag # 添加inferred_tag到返回数据
|
|
||||||
},
|
},
|
||||||
'star_rating': star_rating,
|
'star_rating': star_rating,
|
||||||
'inferred_tag': event.inferred_tag, # 直接返回行业标签
|
|
||||||
'related_concepts': related_concepts,
|
'related_concepts': related_concepts,
|
||||||
'related_stocks': related_stocks_list,
|
'related_stocks': related_stocks_list,
|
||||||
'related_avg_chg': round(related_avg_chg, 2),
|
'related_avg_chg': round(related_avg_chg, 2),
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ server {
|
|||||||
|
|
||||||
# 上交所行情(本地服务)
|
# 上交所行情(本地服务)
|
||||||
location /ws/sse {
|
location /ws/sse {
|
||||||
proxy_pass http://127.0.0.1:8765;
|
proxy_pass http://101.43.133.214:8765;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
@@ -658,6 +658,21 @@ server {
|
|||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ============================================
|
||||||
|
# 微信域名验证
|
||||||
|
# ============================================
|
||||||
|
# 微信公众号网页授权域名验证
|
||||||
|
location = /MP_verify_17Fo4JhapMw6vtNa.txt {
|
||||||
|
return 200 '17Fo4JhapMw6vtNa';
|
||||||
|
add_header Content-Type text/plain;
|
||||||
|
}
|
||||||
|
|
||||||
|
# 微信开放平台域名校验
|
||||||
|
location = /gvQnxIQ5Rs.txt {
|
||||||
|
return 200 'd526e9e857dbd2621e5100811972e8c5';
|
||||||
|
add_header Content-Type text/plain;
|
||||||
|
}
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
# 默认返回 404
|
# 默认返回 404
|
||||||
# ============================================
|
# ============================================
|
||||||
|
|||||||
Reference in New Issue
Block a user