【修改】登录市场和方法统一修改
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.jero.common.exception;
|
||||
|
||||
import io.lettuce.core.RedisConnectionException;
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
import org.apache.shiro.authz.AuthorizationException;
|
||||
import org.apache.shiro.authz.UnauthorizedException;
|
||||
import com.jero.common.api.vo.Result;
|
||||
@@ -29,7 +29,7 @@ public class JeroBootExceptionHandler {
|
||||
* 处理自定义异常
|
||||
*/
|
||||
@ExceptionHandler(JeroBootException.class)
|
||||
public Result<?> handleRRException(JeroBootException e){
|
||||
public Result<?> handleJeroBootException(JeroBootException e){
|
||||
log.error(e.getMessage(), e);
|
||||
return Result.error(e.getMessage());
|
||||
}
|
||||
|
||||
+3
-2
@@ -28,8 +28,9 @@ import com.jero.common.util.oConvertUtils;
|
||||
**/
|
||||
public class JwtUtil {
|
||||
|
||||
// Token过期时间30分钟(用户登录过期时间是此时间的两倍,以token在reids缓存时间为准)
|
||||
public static final long EXPIRE_TIME = 60 * 60 * 1000;
|
||||
// Token过期时间180分钟(用户登录过期时间是此时间的两倍,以token在reids缓存时间为准)
|
||||
public static final long EXPIRE_TIME = 180 * 60 * 1000;
|
||||
// public static final long EXPIRE_TIME = 2000;
|
||||
|
||||
/**
|
||||
* 校验token是否正确
|
||||
|
||||
+6
-8
@@ -143,8 +143,7 @@ public class OnlCgformApiController {
|
||||
Result var2 = new Result();
|
||||
OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1);
|
||||
if (var3 == null) {
|
||||
var2.error500("实体不存在");
|
||||
return var2;
|
||||
return Result.error("实体不存在");
|
||||
} else {
|
||||
OnlComplexModel var4 = this.onlineService.queryOnlineConfig(var3);
|
||||
var4.setIsDesForm(var3.getIsDesForm());
|
||||
@@ -167,8 +166,7 @@ public class OnlCgformApiController {
|
||||
Result var3 = new Result();
|
||||
OnlCgformHead var4 = (OnlCgformHead)this.onlCgformHeadService.getById(var1);
|
||||
if (var4 == null) {
|
||||
var3.error500("实体不存在");
|
||||
return var3;
|
||||
return Result.error("实体不存在");
|
||||
} else {
|
||||
try {
|
||||
String var5 = var4.getTableName();
|
||||
@@ -178,7 +176,7 @@ public class OnlCgformApiController {
|
||||
var3.setResult(var7);
|
||||
} catch (Exception var8) {
|
||||
log.error(var8.getMessage(), var8);
|
||||
var3.error500("数据库查询失败," + var8.getMessage());
|
||||
return Result.error("数据库查询失败," + var8.getMessage());
|
||||
}
|
||||
|
||||
var3.setOnlTable(var4.getTableName());
|
||||
@@ -1100,7 +1098,7 @@ public class OnlCgformApiController {
|
||||
Result var3 = new Result();
|
||||
OnlCgformHead var4 = (OnlCgformHead)this.onlCgformHeadService.getById(var1);
|
||||
if (var4 == null) {
|
||||
var3.error500("实体不存在");
|
||||
var3.error("实体不存在");
|
||||
return var3;
|
||||
} else {
|
||||
try {
|
||||
@@ -1127,7 +1125,7 @@ public class OnlCgformApiController {
|
||||
var3.setResult(var11);
|
||||
} catch (Exception var12) {
|
||||
log.error(var12.getMessage(), var12);
|
||||
var3.error500("数据库查询失败" + var12.getMessage());
|
||||
var3.error("数据库查询失败" + var12.getMessage());
|
||||
}
|
||||
|
||||
var3.setOnlTable(var4.getTableName());
|
||||
@@ -1183,7 +1181,7 @@ public class OnlCgformApiController {
|
||||
Result var2 = new Result();
|
||||
OnlCgformHead var3 = (OnlCgformHead)this.onlCgformHeadService.getById(var1);
|
||||
if (var3 == null) {
|
||||
var2.error500("实体不存在");
|
||||
var2.error("实体不存在");
|
||||
return var2;
|
||||
} else {
|
||||
HashMap var4 = new HashMap();
|
||||
|
||||
Reference in New Issue
Block a user