xdh
2018-09-20 d3dd7b36e8b7bc96d0c6134cfa4773a020621bcd
fix:语音app修改
1个文件已修改
6 ■■■■■ 已修改文件
Tool/VoiceApp/webapp.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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]