update pay function
This commit is contained in:
3
app.py
3
app.py
@@ -13662,6 +13662,9 @@ def get_prediction_topics():
|
|||||||
def get_prediction_topic_detail(topic_id):
|
def get_prediction_topic_detail(topic_id):
|
||||||
"""获取预测话题详情"""
|
"""获取预测话题详情"""
|
||||||
try:
|
try:
|
||||||
|
# 刷新会话,确保获取最新数据
|
||||||
|
db.session.expire_all()
|
||||||
|
|
||||||
topic = PredictionTopic.query.get_or_404(topic_id)
|
topic = PredictionTopic.query.get_or_404(topic_id)
|
||||||
|
|
||||||
# 增加浏览量
|
# 增加浏览量
|
||||||
|
|||||||
@@ -466,14 +466,16 @@ const PredictionTopicDetail = () => {
|
|||||||
<HStack justify="space-between" fontSize="sm">
|
<HStack justify="space-between" fontSize="sm">
|
||||||
<Text color={forumColors.text.secondary}>参与人数</Text>
|
<Text color={forumColors.text.secondary}>参与人数</Text>
|
||||||
<HStack spacing="1">
|
<HStack spacing="1">
|
||||||
<Icon as={Users} boxSize="14px" />
|
<Icon as={Users} boxSize="14px" color={forumColors.text.primary} />
|
||||||
<Text fontWeight="600">{topic.participants_count || 0}</Text>
|
<Text fontWeight="600" color={forumColors.text.primary}>
|
||||||
|
{topic.participants_count || 0}
|
||||||
|
</Text>
|
||||||
</HStack>
|
</HStack>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|
||||||
<HStack justify="space-between" fontSize="sm">
|
<HStack justify="space-between" fontSize="sm">
|
||||||
<Text color={forumColors.text.secondary}>总交易量</Text>
|
<Text color={forumColors.text.secondary}>总交易量</Text>
|
||||||
<Text fontWeight="600">
|
<Text fontWeight="600" color={forumColors.text.primary}>
|
||||||
{Math.round((topic.yes_total_shares || 0) + (topic.no_total_shares || 0))}
|
{Math.round((topic.yes_total_shares || 0) + (topic.no_total_shares || 0))}
|
||||||
</Text>
|
</Text>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|||||||
Reference in New Issue
Block a user