diff --git a/FindObjectBundleBuilder/Tools/config_convert/gen_config_pipeline.py b/FindObjectBundleBuilder/Tools/config_convert/gen_config_pipeline.py index 4356c42..9e3419a 100644 --- a/FindObjectBundleBuilder/Tools/config_convert/gen_config_pipeline.py +++ b/FindObjectBundleBuilder/Tools/config_convert/gen_config_pipeline.py @@ -70,8 +70,8 @@ if __name__ == '__main__': exit(1) print(f"更新Main配置表") - url = gen_levels_db.update_main_level_db(platform, mode) - config.notification_helper.append_msg(f"{platform}平台的mode:{mode}配置 更新配置文件成功 \n 最新配置文件url: {url}") + url,level_count = gen_levels_db.update_main_level_db(platform, mode) + config.notification_helper.append_msg(f"{platform}平台的mode:{mode}配置,总共{level_count}个关卡 更新配置文件成功 \n 最新配置文件url: {url}") config.notification_helper.append_at_people(config.at_all) elif operation == config.config_pipe_operation.update_main_country_level_db.value: if platform is None or mode is None: diff --git a/FindObjectBundleBuilder/Tools/config_convert/gen_levels_db.py b/FindObjectBundleBuilder/Tools/config_convert/gen_levels_db.py index f67d171..233183f 100644 --- a/FindObjectBundleBuilder/Tools/config_convert/gen_levels_db.py +++ b/FindObjectBundleBuilder/Tools/config_convert/gen_levels_db.py @@ -412,9 +412,13 @@ def update_main_level_db(platform, mode): # levels_data_dic[gameplay] = [] # levels_data_dic[gameplay].append(one_level_data) + level_count = 0 if len(levels_data_dic) <= 0: print(f"没有任何可上线关卡数据") return + for game_level in levels_data_dic.values(): + level_count += len(game_level) + main_level_db = {} main_level_db["TotalLevelsDataDic"] = levels_data_dic # print(main_level_db) @@ -431,7 +435,7 @@ def update_main_level_db(platform, mode): value = f"{config.cdn}/Configs/{config_json_filename}?generation={generation}" firebase_helper.update_remote_config(None, condition, config.remote_key_main_db, f"main_{mode}", value) - return value + return value,level_count def update_main_country_level_db(platform, mode, all_country_list):