|
|
@@ -119,6 +119,26 @@ class TurnChainUtil { |
|
|
|
case GlobalConfig.PROVIDER_KL: |
|
|
|
case GlobalConfig.PROVIDER_PDD: |
|
|
|
case GlobalConfig.PROVIDER_SN: |
|
|
|
bool launchable = await canLaunch(appUrl); |
|
|
|
if (Platform.isIOS) { |
|
|
|
launchable = await launch(appUrl); |
|
|
|
} |
|
|
|
if (launchable) { |
|
|
|
if (!Platform.isIOS) { |
|
|
|
if(appUrl.startsWith("suning")){ |
|
|
|
RouterUtil.openWebview(webUrl, context); |
|
|
|
}else{ |
|
|
|
RouterUtil.openWebview(webUrl, context); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (!EmptyUtil.isEmpty(webUrl)) { |
|
|
|
Logger.log('打开${provider} webUrl, url = ${webUrl}'); |
|
|
|
RouterUtil.openWebview(webUrl, context); |
|
|
|
} else { |
|
|
|
Fluttertoast.cancel(); |
|
|
|
Fluttertoast.showToast(msg: '购买链接不存在'); |
|
|
|
} |
|
|
|
break; |
|
|
|
case GlobalConfig.PROVIDER_VIP: |
|
|
|
bool launchable = await canLaunch(appUrl); |
|
|
|
if (Platform.isIOS) { |
|
|
|