valid method
Implementation
bool valid() {
bool isValid = this.isDataVali();
if ('${this.message}'.contains('认证失败') ||
this.code == 401 ||
this.code == 403) {
this.message.apiMessageShow();
AppHolder.eventBus.fire(MxGoLoginEvent(needClear: true));
return false;
}
if (!isValid) {
this.message.apiMessageShow();
}
return isValid;
}