From 38904391ac59bc51133e66b9b5150c6b5db46ec4 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 08 十月 2019 17:58:00 +0800
Subject: [PATCH] 8301 【恺英】【后端】仙缘币货币调整(改为给灵石,刷新召唤改为消耗灵石)

---
 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