V2 推送 LINE 改依環境決定目標,移除卡片底部說明文字
根本原因: V2 原本把推送目標寫死在測試對話(target: local),部署到 NAS 後也只會 私訊測試對象,無法推到正式羽球群;另外卡片底部的「搭檔不重複・實力平衡 排點」說明文字對群組成員沒有意義。 影響: - NAS 正式環境(LINE_TARGET_MODE=prod)推送到勝皇羽球團群組 - 本機開發(local)維持推到測試對話,按鈕會標示「推送到 LINE(測試)」 - LINE 卡片不再顯示底部說明文字 修法: 前端移除寫死的 target 參數,交由 server 依 LINE_TARGET_MODE 解析目標; 按鈕文字與推送成功訊息改為依環境顯示;buildLineFlexMessageV2 移除 footer。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -499,20 +499,6 @@ function buildLineFlexMessageV2(time, courts) {
|
||||
],
|
||||
})),
|
||||
},
|
||||
footer: {
|
||||
type: 'box',
|
||||
layout: 'vertical',
|
||||
paddingAll: '10px',
|
||||
contents: [
|
||||
{
|
||||
type: 'text',
|
||||
text: '搭檔不重複・實力平衡排點',
|
||||
size: 'xxs',
|
||||
color: '#9AA89E',
|
||||
align: 'center',
|
||||
},
|
||||
],
|
||||
},
|
||||
})),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user