From d6d83fbc46c04f5b274a449afc067218242435f1 Mon Sep 17 00:00:00 2001 From: wkb Date: Thu, 5 Feb 2026 16:56:21 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=81=A9=E7=88=B1?= =?UTF-8?q?=E8=8A=82=E6=88=91=E7=9A=84=E9=82=80=E8=AF=B7=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_bridge.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/app_bridge.dart b/lib/utils/app_bridge.dart index 8d8d1fd..968d022 100644 --- a/lib/utils/app_bridge.dart +++ b/lib/utils/app_bridge.dart @@ -60,6 +60,8 @@ enum ToFlutterAppEnum { // 恩爱节活动跳转选择好友 lovingDayChooseFriend('lovingDayChooseFriend'), + // 恩爱节我的邀请页面 + lovingDayMyInvite('lovingDayMyInvite'), // 定向充值 rechargeItem('rechargeItem'), From 95e5c657090c2bc4e375b70561698955028bd3bb Mon Sep 17 00:00:00 2001 From: wkb Date: Thu, 5 Feb 2026 20:23:34 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B8=B8=E9=A9=BBcp?= =?UTF-8?q?=E8=A7=84=E5=88=99=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_bridge.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/app_bridge.dart b/lib/utils/app_bridge.dart index 968d022..cd91a8e 100644 --- a/lib/utils/app_bridge.dart +++ b/lib/utils/app_bridge.dart @@ -62,6 +62,8 @@ enum ToFlutterAppEnum { lovingDayChooseFriend('lovingDayChooseFriend'), // 恩爱节我的邀请页面 lovingDayMyInvite('lovingDayMyInvite'), + // 常驻cp活动规则页面 + taskKeyToCPRule('taskKeyToCPRule'), // 定向充值 rechargeItem('rechargeItem'), From 9545928a3507011dc22ba69850a3b6ee3bc79784 Mon Sep 17 00:00:00 2001 From: wkb Date: Fri, 6 Feb 2026 15:00:49 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_bridge.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/app_bridge.dart b/lib/utils/app_bridge.dart index cd91a8e..059b791 100644 --- a/lib/utils/app_bridge.dart +++ b/lib/utils/app_bridge.dart @@ -9,6 +9,7 @@ import 'package:flutter/foundation.dart'; // h5交互通知 原生 {type:'enum',data:'所需参数,可无'} enum ToFlutterAppEnum { close('close'), + reload('reload'), // 刷新 gameExit('gameExit'), createGame('createGame'), wantToPlay('wantToPlay'), From c8924ee3ed5a4b61e79ffa2ebc584998fb6e575c Mon Sep 17 00:00:00 2001 From: wkb Date: Fri, 6 Feb 2026 15:03:12 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=B8=B8=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_bridge.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/app_bridge.dart b/lib/utils/app_bridge.dart index 059b791..b4474ac 100644 --- a/lib/utils/app_bridge.dart +++ b/lib/utils/app_bridge.dart @@ -353,6 +353,7 @@ class FlutterBridge { // 具体封装的常用方法,直接发送消息给 Flutter Web void close() => sendToFlutter(ToFlutterAppEnum.close.code, {}); + void reload() => sendToFlutter(ToFlutterAppEnum.reload.code, {}); void gameOver() => sendToFlutter(ToFlutterAppEnum.gameOver.code, {}); void createGame(String gameId) => sendToFlutter(ToFlutterAppEnum.createGame.code, {'gameId': gameId}); From f51c64c9a281e351779b2fb01d9a0c5b0713c9db Mon Sep 17 00:00:00 2001 From: wkb Date: Sun, 8 Feb 2026 14:56:08 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0app=E8=B0=83=E7=94=A8js?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_bridge.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils/app_bridge.dart b/lib/utils/app_bridge.dart index b4474ac..cc0e1e4 100644 --- a/lib/utils/app_bridge.dart +++ b/lib/utils/app_bridge.dart @@ -131,6 +131,9 @@ enum FromFlutterAppEnum { redDiamondRecharge('diamond_recharge'), //钻石充值 shareFinished('share_finished'), //分享完成 cpSendRingCallBack('cp_send_ring_callback'), //送戒指后回调 + //通知回调,用于原生app通知Js,传回type字段用于标识不同场景 + // type: 1恩爱节发送告白礼物成功, + commonNotificationCallBack('commom_notification_callback'), defaultCode(''); const FromFlutterAppEnum(this.code); From 9007b717ce654469ee68cfba2b368f671b0d2d0b Mon Sep 17 00:00:00 2001 From: wkb Date: Sun, 8 Feb 2026 15:07:16 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_bridge.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/utils/app_bridge.dart b/lib/utils/app_bridge.dart index cc0e1e4..a92899f 100644 --- a/lib/utils/app_bridge.dart +++ b/lib/utils/app_bridge.dart @@ -130,10 +130,9 @@ enum FromFlutterAppEnum { translateResult('translateResult'), //翻译 redDiamondRecharge('diamond_recharge'), //钻石充值 shareFinished('share_finished'), //分享完成 - cpSendRingCallBack('cp_send_ring_callback'), //送戒指后回调 - //通知回调,用于原生app通知Js,传回type字段用于标识不同场景 - // type: 1恩爱节发送告白礼物成功, - commonNotificationCallBack('commom_notification_callback'), + //送戒指后回调,传入type参数 + // type: 1 cp戒指赠送成功,2恩爱节告白礼物赠送成功 + cpSendRingCallBack('cp_send_ring_callback'), defaultCode(''); const FromFlutterAppEnum(this.code);