管线到微信的群消息通知文案格式优化,方便其他人更好看懂

main
ZhuoZhou 2025-06-26 15:28:57 +08:00
parent 421b2e7a84
commit 84ced896ef
3 changed files with 15 additions and 7 deletions

View File

@ -156,7 +156,7 @@ def generateLevelIdListByGitLog():
_levelModifiedIdList_.append(level_id)
print(f'资源修改列表:{str(_levelModifiedIdList_)}')
config.notification_helper.append_msg(f"构建资源列表: {str(_levelModifiedIdList_)}")
config.notification_helper.append_msg(f"需要打包的资源:总共{len(_levelModifiedIdList_)}个 所有id: {str(_levelModifiedIdList_)}")
def update_new_git_hash():
if opts.old_hash != '' and opts.new_hash != '':

View File

@ -35,9 +35,11 @@ if len(sys.argv) > 4:
if __name__ == '__main__':
# operation = config.config_pipe_operation.update_acceptance_passed_sheet.value
# operation = config.config_pipe_operation.update_main_level_db.value
# platform = "Android"
# platform = "iOS"
# mode = "debug"
# mode = "release"
# config_country = '1'
if operation == config.config_pipe_operation.update_all_levels_google_sheet.value:
@ -46,7 +48,8 @@ if __name__ == '__main__':
print(f"更新{platform}所有关卡资源表(包含未测试关卡)")
gen_levels_db.update_all_levels_google_sheet(platform)
config.notification_helper.append_msg(f"{platform}平台美术验收关卡列表刷新完成")
config.notification_helper.append_msg(f"{platform}平台全关卡资源表刷新完成")
config.notification_helper.append_msg("表格链接: https://docs.google.com/spreadsheets/d/1Hfqjl4Jxg0Eykw1M3WPnoMgnq1lMvo4DXXQELq8CVaI/edit?pli=1&gid=0#gid=0")
elif operation == config.config_pipe_operation.update_acceptance_passed_sheet.value:
if platform is None:
exit(1)
@ -56,14 +59,19 @@ if __name__ == '__main__':
time.sleep(5)
print(f"更新关卡表里对应玩法资源表每一关属性内容")
gen_levels_db.update_level_config_assets(platform)
config.notification_helper.append_msg(f"{platform}策划可配置关卡列表和FindObject关卡资源表刷新完成")
config.notification_helper.append_msg(f"{platform}FindObject验收通过资源表和FindObject可配置关卡资源表刷新完成")
if platform == "Android":
config.notification_helper.append_msg(f"验收通过资源表链接: https://docs.google.com/spreadsheets/d/1mwisjfsQwcSqQ0BJ2TszThSZRCRqOaAqgpHaPGGCzYs/edit?pli=1&gid=0#gid=0")
elif platform == "iOS":
config.notification_helper.append_msg(f"验收通过资源表链接: https://docs.google.com/spreadsheets/d/1yO142VI6hBldtR_baQMgx4bC3fleYDcULiyb2_OntIY/edit?gid=0#gid=0")
config.notification_helper.append_msg("可配置关卡资源表格链接: https://docs.google.com/spreadsheets/d/1Y0tkjtgNy90IGSMLdSMFdDPMwP9Wbt0uDSHdyEfHxnA/edit?gid=0#gid=0")
elif operation == config.config_pipe_operation.update_main_level_db.value:
if platform is None or mode is None:
exit(1)
print(f"更新Main配置表")
url = gen_levels_db.update_main_level_db(platform, mode)
config.notification_helper.append_msg(f"platform:{platform},mode:{mode} 更新Main配置表成功 \n 最新配置表url: {url}")
config.append_msg(f"{platform}平台的mode:{mode}配置 更新配置文件成功 \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:

View File

@ -41,7 +41,7 @@ def upload_all_levels_sheet(platform, gameplay_levels_dict):
row_end = row_start + len(list) - 1
cell_range = sheet.range(row_start, col, row_end, col) # 获取要更新的单元格范围
sheet_helper.sheet_update_cells_value(sheet, cell_range, list)
config.notification_helper.append_msg(f"[{config.sheet_all_level}文件, {platform}-{config.table_all_levels}表格] 更新所有可测试关卡表成功")
config.notification_helper.append_msg(f"[{config.sheet_all_level}, {platform}-{config.table_all_levels}表格] 更新全关卡资源表成功")
def update_all_levels_google_sheet(platform):
try:
@ -120,7 +120,7 @@ def update_all_acceptance_passed_levels_2_google_sheet(platform):
row_end = row_start + len(levels_list) - 1
cell_range = sheet.range(row_start, col, row_end, col)
sheet_helper.sheet_update_cells_value(sheet, cell_range, levels_list)
config.notification_helper.append_msg(f"{gameplay}模式新增关卡{str(levels_list)}")
config.notification_helper.append_msg(f"{gameplay}模式新增关卡{len(levels_list)}个 关卡ID:{str(levels_list)}")
else:
print(f"{gameplay}玩法模式没有新的验收通过关卡可以添加到sheet")
except Exception as e: