瀏覽代碼

[new]支付流程调整为:
1.ios可以先支付再登录
2.Android 商店渠道的要先登录,非商店渠道的可以先支付后登录

zk 3 月之前
父節點
當前提交
8c3a61705a

+ 1 - 1
lib/helper/member_pay_helper.dart

@@ -46,7 +46,7 @@ class MemberPayHelper implements PaymentStatusCallback {
       return;
     }
     //增加渠道登录判断
-    if (atmobPlatformInfo.tgPlatform == ChannelId.sd) {
+    if (Platform.isAndroid && atmobPlatformInfo.tgPlatform == ChannelId.sd) {
       if (!AccountRepository.getInstance().isLogin.value) {
         ToastUtil.show(StringName.accountNoLogin);
         final isLogin = await LoginPage.start();

+ 2 - 0
lib/module/member/activity/member_activity_controller.dart

@@ -89,6 +89,8 @@ class MemberActivityController extends BaseController {
         memberRepository.setLastSelectedMember(
             goodsList.first, payItemList.first);
       }
+    }).catchError((error) {
+      ErrorHandler.toastError(error);
     });
   }
 

+ 1 - 1
lib/module/member/member_controller.dart

@@ -333,7 +333,7 @@ class MemberController extends BaseController implements PaymentStatusCallback {
       return;
     }
     //增加渠道登录判断
-    if (atmobPlatformInfo.tgPlatform == ChannelId.sd) {
+    if (Platform.isAndroid && atmobPlatformInfo.tgPlatform == ChannelId.sd) {
       if (!accountRepository.isLogin.value) {
         ToastUtil.show(StringName.accountNoLogin);
         final isLogin = await LoginPage.start();