|
|
|
@ -41,8 +41,7 @@ public class UpgradeController extends BaseController {
|
|
|
|
|
if (file == null) {
|
|
|
|
|
throw new ApiException("缺少上传的文件");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isBlank(file.getOriginalFilename()) ||
|
|
|
|
|
!file.getOriginalFilename().endsWith(".apk") && !file.getOriginalFilename().endsWith(".zip")) {
|
|
|
|
|
if (StringUtils.isBlank(file.getOriginalFilename())) {
|
|
|
|
|
throw new ApiException("文件格式不正确");
|
|
|
|
|
}
|
|
|
|
|
MntnUpgrades record = new MntnUpgrades();
|
|
|
|
|