From 128a56616202db24d8892dad29225ace906ad0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 12 Apr 2026 22:03:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(rider):=20=E4=BF=AE=E5=A4=8D=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E6=B6=88=E6=81=AF=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在请求订阅消息时添加支付宝模板ID字段entityIds,满足类型要求 - 保持微信端代码逻辑不变 - 修正options对象类型声明为Taro.requestSubscribeMessage.Option --- src/rider/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rider/index.tsx b/src/rider/index.tsx index 584c0ca..7fbeae8 100644 --- a/src/rider/index.tsx +++ b/src/rider/index.tsx @@ -97,6 +97,7 @@ const DealerIndex: React.FC = () => { // 请求订阅 Taro.requestSubscribeMessage({ tmplIds: validTemplateIds, + entityIds: [], // 支付宝模板ID(微信端不需要,仅满足类型要求) success: (res) => { console.log('订阅消息授权结果:', res) const accepted = Object.values(res).some(v => v === 'accept') @@ -121,7 +122,7 @@ const DealerIndex: React.FC = () => { icon: 'none' }) } - }) + } as Taro.requestSubscribeMessage.Option) } // 点击待使用金额 - 配送员专用:将冻结金额转入可提现