|
@@ -59,9 +59,11 @@ public class DownloadController {
|
|
|
if (Objects.isNull(tbClientVersion)) {
|
|
|
tbClientVersion = tbClientVersionService.getMaxClientVersion();
|
|
|
}
|
|
|
- VersionBean v = new VersionBean(tbClientVersion.getName(), tbClientVersion.getValue(), tbClientVersion.getUrl());
|
|
|
- tbOrgDownloadBean.setVersion(v);
|
|
|
- tbOrgDownloadBean.setPackagePath(v.getUrl());
|
|
|
+ if (Objects.nonNull(tbClientVersion)) {
|
|
|
+ VersionBean v = new VersionBean(tbClientVersion.getName(), tbClientVersion.getValue(), tbClientVersion.getUrl());
|
|
|
+ tbOrgDownloadBean.setVersion(v);
|
|
|
+ tbOrgDownloadBean.setPackagePath(v.getUrl());
|
|
|
+ }
|
|
|
return ResultUtil.ok(tbOrgDownloadBean);
|
|
|
} else {
|
|
|
throw new BusinessException("超级管理员无需下载");
|