|
|
@ -351,12 +351,12 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pushData = sharedPreferences.getString("pushData") ?? ""; |
|
|
|
pushData = sharedPreferences.getString("pushData") ?? ""; |
|
|
|
} |
|
|
|
} |
|
|
|
if (pushData == null || pushData == "") return; |
|
|
|
if (pushData == "") return; |
|
|
|
Map<String, dynamic> pushMap = jsonDecode(pushData); |
|
|
|
Map<String, dynamic>? pushMap = jsonDecode(pushData); |
|
|
|
if (pushMap != null) { |
|
|
|
if (pushMap != null) { |
|
|
|
String routeName = ""; |
|
|
|
String routeName = ""; |
|
|
|
Map<String, dynamic> params = {}; |
|
|
|
Map<String, dynamic> params = {}; |
|
|
|
switch (pushMap["typed"].toString()) { |
|
|
|
switch (pushMap["typed"] ?? '') { |
|
|
|
case "1": |
|
|
|
case "1": |
|
|
|
case "ARTICLE": |
|
|
|
case "ARTICLE": |
|
|
|
routeName = "/router/web_page"; |
|
|
|
routeName = "/router/web_page"; |
|
|
|