diff --git a/README.md b/README.md index d9f9799..e02beb3 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ - 人數 4~7 人時只排 2 號場地 8 局;未滿 4 人無法排賽程 - `讀取指定日期` 可把之前上傳的 V2 賽程從資料庫回填到畫面;該日還沒賽程時會自動改載入出席名單(V1 格式的舊資料請到 `/v1` 讀取) - 上傳沿用原本的 `badminton` 表:`personnel` 存全部出席者、`battlecombination` 的 `"0"` / `"1"` 分別存 2、3 號場地的 16 組搭檔(依序每 2 組為一局的對戰雙方) -- `推送到 LINE` 固定推到測試群組(`LINE_TARGET_ID_LOCAL`),不會推到正式羽球群;一樣要按兩次確認 +- `推送到 LINE` 跟著 `LINE_TARGET_MODE` 走:NAS 正式環境(`prod`)推到羽球群、本機開發(`local`)推到測試對話;一樣要按兩次確認,`local` 模式時按鈕會標示「測試」 ## V1 功能說明(`/v1`) diff --git a/server/server.mjs b/server/server.mjs index 31ce6a6..524ac20 100644 --- a/server/server.mjs +++ b/server/server.mjs @@ -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', - }, - ], - }, })), }, } diff --git a/src/AppV2.tsx b/src/AppV2.tsx index e656690..d3d2b4d 100644 --- a/src/AppV2.tsx +++ b/src/AppV2.tsx @@ -322,7 +322,7 @@ function AppV2() { await pushScheduleToLine(timeKey, schedule) setActionState('sharing') - setActionMessage(`已推送到 LINE 測試群組:${timeKey}`) + setActionMessage(`已推送到 LINE:${timeKey}`) } catch (pushError) { setActionState('error') setActionMessage( @@ -441,7 +441,7 @@ function AppV2() { onClick={() => void pushToLine()} disabled={actionState === 'saving' || actionState === 'loading'} > - {linePushArmed ? '確認推送到 LINE' : '推送到 LINE(測試群)'} + {linePushArmed ? '確認推送到 LINE' : showTestBadge ? '推送到 LINE(測試)' : '推送到 LINE'} ) : null} @@ -803,7 +803,6 @@ async function pushScheduleToLine(time: string, schedule: ScheduleRound[]) { }, body: JSON.stringify({ time, - target: 'local', courts: courtGames.map(([court, games]) => ({ court, games: games.map((game, gameIndex) => ({