和表格相关的修改
parent
56cc296556
commit
21787443e9
|
|
@ -210,7 +210,7 @@ def build_package(opts, modify_files):
|
|||
config.notification_helper.append_msg(f"{opts.platform}平台 YooAsset资源构建成功, cost time:{(time_build_package_end - time_build_package_start):.0f}s")
|
||||
else:
|
||||
config.notification_helper.append_msg(f"{opts.platform}平台 YooAsset资源构建失败, error:{error}, 请前往Jenkins查看具体日志")
|
||||
config.notification_helper.append_at_people(config.at_xiaohang)
|
||||
config.notification_helper.append_at_people(config.at_zhouzhuo)
|
||||
return is_build_success, bundle_file_path
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from ipm.wechat_alert import wechat_alert
|
|||
# 群机器人@配置
|
||||
at_all = "@all"
|
||||
at_wangshan = "15175778576"
|
||||
at_xiaohang = "15036516116"
|
||||
at_zhouzhuo = "15036516116"
|
||||
notification_helper = NotificationHelper()
|
||||
alert = wechat_alert()
|
||||
|
||||
|
|
@ -44,9 +44,9 @@ level_bundle_prefix = 'assets_assetraw_uiraw_raw_level'
|
|||
bundle_endfix = '.bundle'
|
||||
|
||||
# sheet信息配置
|
||||
sheet_all_level = '关卡资源表(包含未测试完成关卡)'
|
||||
sheet_acceptance_passed_levels = '验收通过关卡资源表'
|
||||
sheet_level_config = 'FindIt.Level.Config'
|
||||
sheet_all_level = 'find_object全关卡资源表'
|
||||
sheet_acceptance_passed_levels = 'find_object验收通过关卡资源表'
|
||||
sheet_level_config = 'FindObject.Level.Config'
|
||||
sheet_ai_localization = 'AI Localization FindIt'
|
||||
|
||||
# sheet table信息配置
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ if len(sys.argv) > 4:
|
|||
|
||||
if __name__ == '__main__':
|
||||
|
||||
operation = config.config_pipe_operation.update_acceptance_passed_sheet.value
|
||||
platform = "Android"
|
||||
mode = "debug"
|
||||
# operation = config.config_pipe_operation.update_acceptance_passed_sheet.value
|
||||
# platform = "Android"
|
||||
# mode = "debug"
|
||||
# config_country = '1'
|
||||
|
||||
if operation == config.config_pipe_operation.update_all_levels_google_sheet.value:
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ def upload_all_levels_sheet(platform, gameplay_levels_dict):
|
|||
"""更新所有存在ab包的,psd_id的Google Sheet库"""
|
||||
sheet_helper = GoogleSheetHelper()
|
||||
sheet = sheet_helper.get_sheet_table(config.sheet_all_level, f"{platform}-{config.table_all_levels}")
|
||||
sheet.clear()
|
||||
sheet.clear() #清除表格中的所有现有数据
|
||||
for i, gameplay in enumerate(gameplay_levels_dict):
|
||||
list = gameplay_levels_dict[gameplay]
|
||||
if len(list) <= 0:
|
||||
|
|
@ -39,7 +39,7 @@ def upload_all_levels_sheet(platform, gameplay_levels_dict):
|
|||
col = i + 1
|
||||
row_start = 1
|
||||
row_end = row_start + len(list) - 1
|
||||
cell_range = sheet.range(row_start, col, row_end, col)
|
||||
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}表格] 更新所有可测试关卡表成功")
|
||||
|
||||
|
|
@ -131,7 +131,7 @@ def update_all_acceptance_passed_levels_2_google_sheet(platform):
|
|||
|
||||
# endregion
|
||||
|
||||
# region 更新Find It关卡文档里地资源表
|
||||
# region 更新Find Object关卡文档里地资源表
|
||||
|
||||
def update_level_config_assets(platform):
|
||||
"""更新关卡表里对应玩法资源表每一关属性内容"""
|
||||
|
|
@ -167,7 +167,7 @@ def update_level_config_assets(platform):
|
|||
# 设置表公式
|
||||
second_row = []
|
||||
id_formula = f"=ARRAYFORMULA(IF(B2:B<>\"\", ROW(B2:B)-ROW(B$2)+1, \"\"))"
|
||||
name_formula = "=IMPORTRANGE(" + "\"https://docs.google.com/spreadsheets/d/1oXxTgq3c24AQj1iwR5_W15oDSE51ZSGcsRPhzQ-MwIM\", " + f"\"{gameplay}!A:A\")"
|
||||
name_formula = "=IMPORTRANGE(" + "\"https://docs.google.com/spreadsheets/d/1mwisjfsQwcSqQ0BJ2TszThSZRCRqOaAqgpHaPGGCzYs\", " + f"\"{gameplay}!A:A\")"
|
||||
second_row.append([id_formula, name_formula])
|
||||
gameplay_sheet.update("A2", second_row, value_input_option="USER_ENTERED")
|
||||
print(f"延时10秒,等待公式计算完成")
|
||||
|
|
@ -236,7 +236,7 @@ def update_level_config_assets(platform):
|
|||
|
||||
# endregion
|
||||
|
||||
# region 更新Find It主线关卡配置
|
||||
# region 更新Find object主线关卡配置
|
||||
# 如果要修改此处逻辑,记得下面的update_main_country_level_db方法的逻辑一起修改
|
||||
###
|
||||
def update_main_level_db(platform, mode):
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ from handler.firebase_storage import FirebaseStorageHandler
|
|||
|
||||
# 定义端口用于指定HTTP服务监听的端口
|
||||
# 如果命令行中带有port同名参数则会称为全局tornado.options的属性,若没有则使用define定义。
|
||||
define("port", type=int, default=5002, help="run on the given port")
|
||||
define("port", type=int, default=5003, help="run on the given port")
|
||||
|
||||
# 创建路由表
|
||||
urls = [
|
||||
Loading…
Reference in New Issue