update pay function

This commit is contained in:
2025-11-23 23:32:35 +08:00
parent 0a149eaa0f
commit 4054e2e106
2 changed files with 8 additions and 3 deletions

3
app.py
View File

@@ -13662,6 +13662,9 @@ def get_prediction_topics():
def get_prediction_topic_detail(topic_id):
"""获取预测话题详情"""
try:
# 刷新会话,确保获取最新数据
db.session.expire_all()
topic = PredictionTopic.query.get_or_404(topic_id)
# 增加浏览量