|
@@ -204,12 +204,11 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
// 场景还原,记录邀请码 |
|
|
// 场景还原,记录邀请码 |
|
|
void _restore(MLSDKScene scene) { |
|
|
void _restore(MLSDKScene scene) { |
|
|
// const bool inProduction = const bool.fromEnvironment("dart.vm.product"); |
|
|
// const bool inProduction = const bool.fromEnvironment("dart.vm.product"); |
|
|
bool inProduction = false; |
|
|
|
|
|
if (!inProduction) { |
|
|
|
|
|
// 非release环境,弹窗测试 |
|
|
|
|
|
showAlert('要还原的路径为:' + scene.className + '\n' + scene.params.toString(), |
|
|
|
|
|
context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (!inProduction) { |
|
|
|
|
|
// // 非release环境,弹窗测试 |
|
|
|
|
|
// showAlert('要还原的路径为:' + scene.className + '\n' + scene.params.toString(), |
|
|
|
|
|
// context); |
|
|
|
|
|
// } |
|
|
Logger.debug('要还原的路径为:' + scene.className); |
|
|
Logger.debug('要还原的路径为:' + scene.className); |
|
|
try { |
|
|
try { |
|
|
Map<String, dynamic> params = Map<String, dynamic>.from(scene.params); |
|
|
Map<String, dynamic> params = Map<String, dynamic>.from(scene.params); |
|
@@ -230,11 +229,10 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
if (null != event) { |
|
|
if (null != event) { |
|
|
Map<String, dynamic> params = Map<String, dynamic>.from(event); |
|
|
Map<String, dynamic> params = Map<String, dynamic>.from(event); |
|
|
// const bool inProduction = const bool.fromEnvironment("dart.vm.product"); |
|
|
// const bool inProduction = const bool.fromEnvironment("dart.vm.product"); |
|
|
bool inProduction = false; |
|
|
|
|
|
if (!inProduction) { |
|
|
|
|
|
// 非release环境,弹窗测试 |
|
|
|
|
|
showAlert('要还原的路径为[活着]:$event', context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (!inProduction) { |
|
|
|
|
|
// // 非release环境,弹窗测试 |
|
|
|
|
|
// showAlert('要还原的路径为[活着]:$event', context); |
|
|
|
|
|
// } |
|
|
if (params['params'].containsKey('tgid')) { |
|
|
if (params['params'].containsKey('tgid')) { |
|
|
String tgid = params['params']['tgid'].toString(); |
|
|
String tgid = params['params']['tgid'].toString(); |
|
|
// 记录邀请码到本地 |
|
|
// 记录邀请码到本地 |
|
|