Ver código fonte

1、用户协议的SP key改成comm库的GlobalConfig

tags/0.0.16+1
PH2 3 anos atrás
pai
commit
1917e14b5a
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      lib/pages/guide_page/guide_page.dart

+ 2
- 2
lib/pages/guide_page/guide_page.dart Ver arquivo

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


Carregando…
Cancelar
Salvar