From abeb7c4d866081b637988e1a2563ded08ca190f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Thu, 16 Nov 2023 10:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=B1=80=E9=83=A8=E5=B8=B8/?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChanceCustom/app.json | 4 ++-- ChanceCustom/main.py | 4 ++-- ChanceCustom/replyCore.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChanceCustom/app.json b/ChanceCustom/app.json index 87e714b..0a8ace2 100644 --- a/ChanceCustom/app.json +++ b/ChanceCustom/app.json @@ -4,8 +4,8 @@ "namespace" : "ChanceCustom", "info" : "以自定义回复为核心,附带群管、监控、词库、语音、图片、调用接口、对接网站、黑白名单、定时任务、网页爬虫、简单编程、入群验证、发言限制、简易QQ、Web服务器、制作接口等功能。交流群661366095", "priority" : 40000, - "version" : "0.2.12", - "svn" : 27, + "version" : "0.2.13", + "svn" : 28, "compatible_svn" : 101, "message_mode" : "old_string", "support" : [ diff --git a/ChanceCustom/main.py b/ChanceCustom/main.py index 126a598..e67c493 100644 --- a/ChanceCustom/main.py +++ b/ChanceCustom/main.py @@ -18,8 +18,8 @@ import platform -version = '0.2.12' -svn = 27 +version = '0.2.13' +svn = 28 version_full = '%s(%d)' % (version, svn) diff --git a/ChanceCustom/replyCore.py b/ChanceCustom/replyCore.py index e8daf10..2c2f25e 100644 --- a/ChanceCustom/replyCore.py +++ b/ChanceCustom/replyCore.py @@ -53,11 +53,11 @@ def setValDictUnity(valDict:dict): globalValDict['valGData'] = valDict['valGData'].copy() if 'innerVal' in valDict and 'bot_hash' in valDict['innerVal']: bot_hash = valDict['innerVal']['bot_hash'] - if 'valRawGOData' not in valDict: + if 'valRawGOData' not in globalValDict: globalValDict['valRawGOData'] = {} if 'valRawGOData' in valDict: globalValDict['valRawGOData'][bot_hash] = valDict['valRawGOData'].copy() - if 'valGOData' not in valDict: + if 'valGOData' not in globalValDict: globalValDict['valGOData'] = {} if 'valGOData' in valDict: globalValDict['valGOData'][bot_hash] = valDict['valGOData'].copy()