app内更新-ios小写过滤

This commit is contained in:
2022-11-07 14:49:01 +08:00
parent 43c3a3e641
commit ab88aa9113
2 changed files with 15 additions and 0 deletions

View File

@@ -80,6 +80,19 @@ public class GlobalExceptionHandler {
return new BusiResult<Void>(null, Objects.requireNonNull(fieldError).getDefaultMessage());
}
/**
* 捕获参数异常
*
* @param request 请求对象
* @param exception 异常
* @return BusiResult
*/
@ExceptionHandler({IllegalStateException.class})
public BusiResult<Void> handle(HttpServletRequest request, IllegalStateException exception) {
logErrorMessage(request, exception);
return new BusiResult<>(BusiStatus.SERVER_BUSY.value(), exception.getMessage());
}
/**
* 捕获请求体异常
*

View File

@@ -186,6 +186,8 @@ public class AppVersionService extends BaseService {
* @return
*/
private AppVersion getNewestAppVersion(String os,String channel) {
//外层已经判过空
os = os.toLowerCase();
// 从配置表中获取当前最新的版本号
String newestVersionValue = sysConfService.getSysConfValueById(getNewestVersionKey(os, channel));
// 根据版本号获取版本信息