ShowLoginView static method
void
ShowLoginView(
- dynamic params
Implementation
static void ShowLoginView(dynamic params) {
Log.i(tag, "ShowLoginView:$params");
//更新用户数据(状态)
int code = params[1];
pocChangeNotifier.setStatus(Constant.PocStatus_Offline);
pocChangeNotifier.setOfflineCode(code);
Log.i(tag, "ShowLoginView:code:$code");
if(pocChangeNotifier.monitoredGroupIds.isNotEmpty){
needAutoMonitorGroupIds=List.from(pocChangeNotifier.monitoredGroupIds);
pocChangeNotifier.resetMonitoredGroupIds();
}
//addMonitorGroupIds=[];
if (code == 0 ||
code == 2 ||
code == 3 ||
code == 4 ||
code == 5 ||
code == 6) {
// 掉线重登
} else if (code > 0) {
//离线,不再重登
playPocString(code);
}
}