Browse Source

1、IOS百川调用指定渠道(天猫or淘宝)

tags/0.0.16+8^0
PH2 3 years ago
parent
commit
8028bb08b4
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      lib/util/turn_chain/turn_chain_util.dart

+ 5
- 1
lib/util/turn_chain/turn_chain_util.dart View File

@@ -1,6 +1,7 @@
import 'dart:io'; import 'dart:io';


import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter_alibc/alibc_const_key.dart';
import 'package:flutter_alibc/alibc_model.dart'; import 'package:flutter_alibc/alibc_model.dart';
import 'package:flutter_alibc/flutter_alibc.dart'; import 'package:flutter_alibc/flutter_alibc.dart';
import 'package:fluttertoast/fluttertoast.dart'; import 'package:fluttertoast/fluttertoast.dart';
@@ -230,7 +231,10 @@ class TurnChainUtil {
RouterUtil.openWebview(webUrl, context); RouterUtil.openWebview(webUrl, context);
rlt = true; rlt = true;
} else { } else {
tradeResult = await FlutterAlibc.openByUrl(url: openAppUrl);
tradeResult = await FlutterAlibc.openByUrl(
url: openAppUrl,
schemeType: provider == GlobalConfig.PROVIDER_TM ? AlibcSchemeType.AlibcSchemeTmall : AlibcSchemeType.AlibcSchemeTaoBao,
);
rlt = true; rlt = true;
} }
} }


Loading…
Cancel
Save