From 3d35218d6b65c0df84bbac4108d9f8b71cb088f9 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Mon, 15 Jun 2026 13:55:08 +0800 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=E6=96=B0=E5=A2=9E=E6=89=8B=E6=A9=9F?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E8=88=87=20LINE=20Pay=20=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E7=9B=B4=E9=80=A3=E6=94=AF=E4=BB=98=E9=A1=9E=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Order.php getPaymentTypeLabels() 新增支付碼 10(手機支付/NFC 行動支付,走信用卡軌道)與 70(LINE Pay 官方直連,非 TapPay 底下的 30)。 2. config/api-docs.php B600 order.payment_type 說明字串補上 10 與 70 兩碼定義。 3. api-technical-specs SKILL.md Appendix A 支付類型對照表同步補上 10、70,並將 30 備註明確為「TapPay 底下的 LINE Pay」以區分兩條 LINE Pay 路線。 4. 三語系 (zh_TW/en/ja) 新增 "Mobile Pay"、"LINE Pay (Official)" 詞條,並重新 ksort 對齊字母排序。 Co-Authored-By: Claude Opus 4.8 (1M context) --- .agents/skills/api-technical-specs/SKILL.md | 4 +++- app/Models/Transaction/Order.php | 2 ++ config/api-docs.php | 2 +- lang/en.json | 2 ++ lang/ja.json | 2 ++ lang/zh_TW.json | 2 ++ 6 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.agents/skills/api-technical-specs/SKILL.md b/.agents/skills/api-technical-specs/SKILL.md index ba5be58..1467c40 100644 --- a/.agents/skills/api-technical-specs/SKILL.md +++ b/.agents/skills/api-technical-specs/SKILL.md @@ -422,8 +422,9 @@ description: 本技能規範定義了 Star Cloud 系統中所有機台 (IoT) 與 | `7` | 來店禮 | | | `8` | 問卷 | | | `9` | 零錢 | 硬幣投幣機 | +| `10` | 手機支付 | NFC 手機感應(行動支付,走信用卡軌道,依使用者按鈕分類) | | `21` ~ `25` | 線下付款 + X | `21`=線下+1, `22`=線下+2... `25`=線下+9 | -| `30` | TapPay - LINE Pay | | +| `30` | TapPay - LINE Pay | TapPay 底下的 LINE Pay | | `31` | TapPay - 街口支付 | | | `32` | TapPay - 悠遊付 | | | `33` | TapPay - Pi 拍錢包 | | @@ -431,6 +432,7 @@ description: 本技能規範定義了 Star Cloud 系統中所有機台 (IoT) 與 | `40` | 會員驗證取貨商品 | | | `41` | 員工卡 | RFID / NFC 刷卡 | | `50` ~ `54` | 線下付款 + TapPay | `50`=線下+30, `51`=線下+31... `54`=線下+34 | +| `70` | LINE Pay(官方直連) | LINE Pay 官方直連,非 TapPay 底下的 `30` | | `60` | 點數 / 優惠卷全額折抵 | 點數全額折抵出貨 或 優惠卷全額折抵出貨 | | `61` ~ `69` | 會員 + X | `61`=會員+1, `62`=會員+2... `69`=會員+9 | | `90` ~ `94` | 會員 + TapPay | `90`=會員+30, `91`=會員+31... `94`=會員+34 | diff --git a/app/Models/Transaction/Order.php b/app/Models/Transaction/Order.php index ba72068..3c28ae3 100644 --- a/app/Models/Transaction/Order.php +++ b/app/Models/Transaction/Order.php @@ -77,6 +77,7 @@ class Order extends Model 7 => __('Welcome Gift'), 8 => __('Questionnaire'), 9 => __('Coin Acceptor'), + 10 => __('Mobile Pay'), // NFC 手機感應(行動支付,信用卡軌道,依使用者按鈕分類) 21 => __('Offline + 1'), 22 => __('Offline + 2'), 23 => __('Offline + 3'), @@ -105,6 +106,7 @@ class Order extends Model 67 => __('Member + 7'), 68 => __('Member + 8'), 69 => __('Member + 9'), + 70 => __('LINE Pay (Official)'), // LINE Pay 官方直連(非 TapPay 底下的 30) 90 => __('Member + LINE Pay'), 91 => __('Member + JKO Pay'), 92 => __('Member + Easy Wallet'), diff --git a/config/api-docs.php b/config/api-docs.php index ac280c3..f1e4418 100644 --- a/config/api-docs.php +++ b/config/api-docs.php @@ -857,7 +857,7 @@ return [ 'order.original_amount' => ['type' => 'numeric', 'description' => '(選填) 原始標價金額', 'required' => false], 'order.discount_amount' => ['type' => 'numeric', 'description' => '(選填) 折扣金額,預設 0', 'required' => false], 'order.points_used' => ['type' => 'integer', 'description' => '(選填) 使用點數,預設 0', 'required' => false], - 'order.payment_type' => ['type' => 'integer', 'description' => "(必填) 支付類型代碼:\n1:信用卡, 2:悠遊卡/一卡通, 3:掃碼支付, 4:紙鈔機, 5:通行碼, 6:取貨碼, 7:來店禮, 8:問卷, 9:零錢, 41:員工卡, 42:取物單。\n21~25:線下付款+X (21:線下+1, 22:線下+2, 23:線下+3, 24:線下+4, 25:線下+9)。\n30:LINE Pay, 31:街口, 32:悠遊付, 33:Pi, 34:全盈+。\n40:會員驗證取貨商品。\n50~54:線下付款+TapPay (50:線下+30, 51:線下+31, 52:線下+32, 53:線下+33, 54:線下+34)。\n60:點數/優惠卷全額折抵。61~69:會員+X (61:會員+1...69:會員+9)。\n90~94:會員+TapPay (90:會員+30...94:會員+34)。\n100:遠端出貨。"], + 'order.payment_type' => ['type' => 'integer', 'description' => "(必填) 支付類型代碼:\n1:信用卡, 2:悠遊卡/一卡通, 3:掃碼支付, 4:紙鈔機, 5:通行碼, 6:取貨碼, 7:來店禮, 8:問卷, 9:零錢, 10:手機支付(行動支付/NFC手機), 41:員工卡, 42:取物單。\n21~25:線下付款+X (21:線下+1, 22:線下+2, 23:線下+3, 24:線下+4, 25:線下+9)。\n30:LINE Pay, 31:街口, 32:悠遊付, 33:Pi, 34:全盈+。\n70:LINE Pay(官方直連,非 TapPay 底下的 30)。\n40:會員驗證取貨商品。\n50~54:線下付款+TapPay (50:線下+30, 51:線下+31, 52:線下+32, 53:線下+33, 54:線下+34)。\n60:點數/優惠卷全額折抵。61~69:會員+X (61:會員+1...69:會員+9)。\n90~94:會員+TapPay (90:會員+30...94:會員+34)。\n100:遠端出貨。"], 'order.payment_status' => ['type' => 'integer', 'description' => '(必填) 支付狀態 (1:成功)'], 'order.code_id' => ['type' => 'string', 'description' => '(選填) 閉環勾稽用的代碼 ID (payment_type 為 5, 6, 41 時必填)', 'required' => false], 'order.payment_request' => ['type' => 'string', 'description' => '(選填) 金流請求原始字串', 'required' => false], diff --git a/lang/en.json b/lang/en.json index 177d589..3adfc6d 100644 --- a/lang/en.json +++ b/lang/en.json @@ -960,6 +960,7 @@ "LEVEL TYPE": "LEVEL TYPE", "LINE Official Pay": "LINE Official Pay", "LINE Pay": "LINE Pay", + "LINE Pay (Official)": "LINE Pay (Official)", "LINE Pay Direct": "LINE Pay Direct", "LINE Pay Direct Settings Description": "LINE Pay Direct Settings Description", "LINE-ChannelId": "LINE-ChannelId", @@ -1207,6 +1208,7 @@ "Microwave push rod retract error (0223)": "Microwave push rod retract error (0223)", "Milk dispense timeout": "Milk dispense timeout", "Min 8 characters": "Min 8 characters", + "Mobile Pay": "Mobile Pay", "Mobile Payment": "Mobile Payment", "Model": "Model", "Model Default": "Model Default", diff --git a/lang/ja.json b/lang/ja.json index 087a65a..9e37d33 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -960,6 +960,7 @@ "LEVEL TYPE": "レベルタイプ", "LINE Official Pay": "LINE 公式決済", "LINE Pay": "LINE Pay", + "LINE Pay (Official)": "LINE Pay(公式)", "LINE Pay Direct": "LINE Pay 直結", "LINE Pay Direct Settings Description": "LINE Pay 直結設定", "LINE-ChannelId": "LINE-ChannelId", @@ -1207,6 +1208,7 @@ "Microwave push rod retract error (0223)": "電子レンジプッシュロッド引き込みエラー (0223)", "Milk dispense timeout": "牛乳抽出タイムアウト", "Min 8 characters": "最低 8文字", + "Mobile Pay": "モバイル決済", "Mobile Payment": "モバイル決済", "Model": "機器モデル", "Model Default": "モデルデフォルト", diff --git a/lang/zh_TW.json b/lang/zh_TW.json index db013f6..10c32a2 100644 --- a/lang/zh_TW.json +++ b/lang/zh_TW.json @@ -960,6 +960,7 @@ "LEVEL TYPE": "層級類型", "LINE Official Pay": "Line官方支付", "LINE Pay": "LINE Pay", + "LINE Pay (Official)": "LINE Pay(官方)", "LINE Pay Direct": "LINE Pay 官方直連", "LINE Pay Direct Settings Description": "LINE Pay 官方直連設定", "LINE-ChannelId": "LINE-ChannelId", @@ -1207,6 +1208,7 @@ "Microwave push rod retract error (0223)": "微波爐內推桿收回錯誤", "Milk dispense timeout": "按鍵出奶超時", "Min 8 characters": "至少 8 個字元", + "Mobile Pay": "手機支付", "Mobile Payment": "手機支付", "Model": "機台型號", "Model Default": "型號預設",