requestGetNewVersion static method
版本升级
callBack 返回结果
Implementation
static requestGetNewVersion(Function(VersionModel?) callBack) {
DioManager().request<dynamic>(RequestType.POST, RequestApi.apiGetNewVersion, onSuccess: (data) {
callBack(VersionModel.fromJson(data));
}, onError: (error) {
callBack(null);
}, errorToast: false);
}