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