This commit is contained in:
admin
2026-06-11 11:12:46 +08:00
2 changed files with 4 additions and 17 deletions

View File

@@ -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,
});
}