|
|
@@ -170,14 +170,14 @@ class _GuidePageState extends State<GuidePage> { |
|
|
|
|
|
|
|
void showPlolicy() async { |
|
|
|
///协议弹窗 |
|
|
|
String isShowPolicy = await SharedPreferencesUtil.getStringValue(Constants.isShowPolicy); |
|
|
|
String isShowPolicy = await SharedPreferencesUtil.getStringValue(GlobalConfig.isShowPolicy); |
|
|
|
if (isShowPolicy == null || isShowPolicy != '1') { |
|
|
|
NativeUtil.notifyInitSuccess(); |
|
|
|
bool isAccept = await PolicyDialog.show(context); |
|
|
|
if (!isAccept) { |
|
|
|
exit(0); |
|
|
|
} else { |
|
|
|
await SharedPreferencesUtil.setStringValue(Constants.isShowPolicy, "1"); |
|
|
|
await SharedPreferencesUtil.setStringValue(GlobalConfig.isShowPolicy, "1"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|