Skip to content

Commit 9862f6e

Browse files
committed
修复 当奖品文件夹不存在时,设置抽奖名单导致抽奖功能失效的问题, 修复 抽奖名单页面表格因路径错误导致无法显示的问题
1 parent ca803cf commit 9862f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/common/reward_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def export_prize_list(self):
238238
def show_table(self):
239239
prize_pools_name = self.prize_pools_comboBox.currentText()
240240
# 获取是否存在奖品
241-
prize_file = path_manager.get_resource_path('reward/reward_dir', f'{prize_pools_name}.json')
241+
prize_file = path_manager.get_resource_path('reward', f'{prize_pools_name}.json')
242242
if prize_file.exists():
243243
with open_file(prize_file, 'r', encoding='utf-8') as f:
244244
data = json.load(f)

0 commit comments

Comments
 (0)