Skip to content

Commit

Permalink
修正局部常/变量的初始化问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Nov 16, 2023
1 parent 71d5ce5 commit abeb7c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ChanceCustom/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : [
Expand Down
4 changes: 2 additions & 2 deletions ChanceCustom/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import platform

version = '0.2.12'
svn = 27
version = '0.2.13'
svn = 28

version_full = '%s(%d)' % (version, svn)

Expand Down
4 changes: 2 additions & 2 deletions ChanceCustom/replyCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit abeb7c4

Please sign in to comment.