소스 검색

修改配置文件

zqbo 5 년 전
부모
커밋
a9ae5da478
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      package_utils_record.py

+ 3 - 3
package_utils_record.py

@@ -548,14 +548,14 @@ def addConfig(game, sdk, subChannel, config):
     '''
     添加config.json
     '''
-    if 'recordConfig' not in config:
-        print('recordConfig is null')
+    if 'configData' not in config:
+        print('configData is null')
         return 0
 
     print('add config.json...')
     decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
     configJson = os.path.join(decompliePath, 'assets', 'tool_config.json')
-    jsonText = json.dumps(config['recordConfig'], ensure_ascii=False)
+    jsonText = json.dumps(config['configData'], ensure_ascii=False)
     file_utils.createFile(configJson, jsonText)
     return 0