app内更新-ios小写过滤
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
* 捕获请求体异常
|
||||
*
|
||||
|
@@ -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));
|
||||
// 根据版本号获取版本信息
|
||||
|
Reference in New Issue
Block a user