From 0c2f7c40cce8588f55ece592a1dafa22d30d9fb8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 一月 2019 02:25:30 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(增加PK状态下不可进入跨服及提示)

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