Commit 59060253 authored by 杜欣's avatar 杜欣

type check

parent 0acb9bbe
......@@ -54,8 +54,8 @@ class _MyAppState extends State<MyApp> {
Api.getInstance().initBuildConfig(params) == null) {
return ErrorPage("出错:需要传递的参数为空");
}
int survey_record_id = int.parse(params["survey_record_id"]);
int template_id = int.parse(params["template_id"]);
int survey_record_id = params["survey_record_id"] ? int.parse(params["survey_record_id"]) : null;
int template_id = params["survey_record_id"] ? int.parse(params["template_id"]) : 1;
return RouterCenterImpl()
.findActivityReportRouter()
?.getActivityReportPage(survey_record_id, template_id, fromPage);
......@@ -72,14 +72,14 @@ class _MyAppState extends State<MyApp> {
// initialRoute: '/test',
//// 调试的时候可以打开
routes: {
// '/': (context) => CommentSuggest({"Cookie":" _gm_token=7e48641558699683; sessionid=nb3ze4ur7ucosln8sd8pzwojddenv9ym; _gtid=a1bc0a387e1911e996b9525400fa516d4094"}),
'/': (context) {
Api.getInstance().initBuildConfig({'Cookie':'_gm_token=72ee1c1569466411; _gtid=58d3cc14df8711e99736525400e82fab81; sessionid=vhksn66854pejzjwi8ljhrmcew3domh2'
,"buildConfig":"debug"});
return RouterCenterImpl().findActivityReportRouter()?.getActivityReportPage(169, 1, '');
},
},
// routes: {
// // '/': (context) => CommentSuggest({"Cookie":" _gm_token=7e48641558699683; sessionid=nb3ze4ur7ucosln8sd8pzwojddenv9ym; _gtid=a1bc0a387e1911e996b9525400fa516d4094"}),
// '/': (context) {
// Api.getInstance().initBuildConfig({'Cookie':'_gm_token=72ee1c1569466411; _gtid=58d3cc14df8711e99736525400e82fab81; sessionid=vhksn66854pejzjwi8ljhrmcew3domh2'
// ,"buildConfig":"debug"});
// return RouterCenterImpl().findActivityReportRouter()?.getActivityReportPage(169, 1, '');
// },
// },
//调试的时候可以打开
builder: FlutterBoost.init(postPush: _onRoutePushed),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment