hch
2018-09-20 a6dea7e613db9663d62fac3028bc04842f27282f
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]