提交 780d581d authored 作者: shixiaochen's avatar shixiaochen

1、适配用户体系登录过期code码;

上级 8729a8c0
...@@ -131,7 +131,10 @@ abstract class BaseDio { ...@@ -131,7 +131,10 @@ abstract class BaseDio {
data: data, data: data,
options: _checkOptions(method.value, options), options: _checkOptions(method.value, options),
); );
if (response.data['code'] == 100 || response.data['code'] == "100") { if (response.data['code'] == 100 ||
response.data['code'] == "100" ||
response.data['code'] == -100 ||
response.data['code'] == "-100") {
logger.e("登录过期:${response.data['msg']}"); logger.e("登录过期:${response.data['msg']}");
onLoginExpire(); onLoginExpire();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论