change
This commit is contained in:
@@ -299,20 +299,7 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
}
|
||||
|
||||
String _urlWithToken(String url, String token) {
|
||||
if (!NextStep.I.j) {
|
||||
return url;
|
||||
}
|
||||
if (token.isEmpty) return url;
|
||||
|
||||
try {
|
||||
final uri = Uri.parse(url);
|
||||
final params = Map<String, String>.from(uri.queryParameters);
|
||||
params['token'] = token;
|
||||
return uri.replace(queryParameters: params).toString();
|
||||
} catch (e) {
|
||||
debugPrint('append web login token failed: $e');
|
||||
return url;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
void _hideWebViewProgressSoon() {
|
||||
@@ -349,8 +336,8 @@ class _LoadingScreenState extends State<LoadingScreen>
|
||||
void _reportWebViewEvent(String eventName, Map<String, dynamic> params) {
|
||||
ReportService.I.report(eventName, {
|
||||
...params,
|
||||
'currentUrl': _safeReportUrl(_currentWebViewUrl),
|
||||
'redirectUrl': _safeReportUrl(_redirect),
|
||||
'cu': _safeReportUrl(_currentWebViewUrl),
|
||||
're': _safeReportUrl(_redirect),
|
||||
'reloadNonce': _webViewReloadNonce,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.1+3
|
||||
version: 1.0.2+4
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.4
|
||||
|
||||
Reference in New Issue
Block a user