|
1
|
import 'dart:convert';
|
1
|
import 'dart:convert';
|
|
|
|
2
|
+import 'dart:io';
|
|
2
|
|
3
|
|
|
3
|
import 'package:flutter/material.dart';
|
4
|
import 'package:flutter/material.dart';
|
|
4
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
5
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
@@ -339,6 +340,9 @@ class UserModel with ChangeNotifier { |
|
@@ -339,6 +340,9 @@ class UserModel with ChangeNotifier { |
|
339
|
if (baseResp.code != Constant.status_success) {
|
340
|
if (baseResp.code != Constant.status_success) {
|
|
340
|
Utils.showToast(baseResp.msg ?? "退出登录失败,请稍后重试");
|
341
|
Utils.showToast(baseResp.msg ?? "退出登录失败,请稍后重试");
|
|
341
|
} else {
|
342
|
} else {
|
|
|
|
343
|
+ if (Platform.isIOS) {
|
|
|
|
344
|
+ XgFlutterPlugin().stopXg();
|
|
|
|
345
|
+ }
|
|
342
|
if (App.sp.containsKey('unionid')) {
|
346
|
if (App.sp.containsKey('unionid')) {
|
|
343
|
//微信登陆的时候,退出清空数据
|
347
|
//微信登陆的时候,退出清空数据
|
|
344
|
App.sp.remove('openid');
|
348
|
App.sp.remove('openid');
|