|
@@ -104,9 +104,10 @@ class TurnChainUtil { |
|
|
case GlobalConfig.PROVIDER_PDD: |
|
|
case GlobalConfig.PROVIDER_PDD: |
|
|
case GlobalConfig.PROVIDER_SN: |
|
|
case GlobalConfig.PROVIDER_SN: |
|
|
case GlobalConfig.PROVIDER_VIP: |
|
|
case GlobalConfig.PROVIDER_VIP: |
|
|
if (!EmptyUtil.isEmpty(appUrl) && await canLaunch(appUrl)) { |
|
|
|
|
|
Logger.log('打开${provider} app, url = ${appUrl}'); |
|
|
|
|
|
launch(appUrl); |
|
|
|
|
|
|
|
|
print(await canLaunch(appUrl)); |
|
|
|
|
|
bool launchable = await launch(appUrl); |
|
|
|
|
|
if (launchable) { |
|
|
|
|
|
// Logger.log('打开${provider} app, url = ${appUrl}'); |
|
|
} else if (!EmptyUtil.isEmpty(webUrl)) { |
|
|
} else if (!EmptyUtil.isEmpty(webUrl)) { |
|
|
Logger.log('打开${provider} webUrl, url = ${webUrl}'); |
|
|
Logger.log('打开${provider} webUrl, url = ${webUrl}'); |
|
|
RouterUtil.openWebview(webUrl, context); |
|
|
RouterUtil.openWebview(webUrl, context); |
|
|