From d3dd7b36e8b7bc96d0c6134cfa4773a020621bcd Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 20 九月 2018 14:04:41 +0800
Subject: [PATCH] fix:语音app修改
---
Tool/VoiceApp/webapp.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Tool/VoiceApp/webapp.py b/Tool/VoiceApp/webapp.py
index 3f33ff7..06f42e4 100644
--- a/Tool/VoiceApp/webapp.py
+++ b/Tool/VoiceApp/webapp.py
@@ -61,8 +61,7 @@
keyStr = '%s_%s'%(playerID, voiceID)
curTime = int(time.time())
- if not voiceInfoDict:
- voiceInfoDict = shelve.open('voice.db')
+
if dotype == 'upload': #瀛樺偍
saveData = [curTime, content]
voiceInfoDict[keyStr] = saveData
@@ -107,8 +106,7 @@
def __DelOldVoice():
global voiceInfoDict
- if not voiceInfoDict:
- voiceInfoDict = shelve.open('voice.db')
+
tick = int(time.time())
for voiceKey, voiceData in voiceInfoDict.items():
saveTime = voiceData[0]
--
Gitblit v1.8.0