|
@@ -485,14 +485,12 @@ public class AuthServiceImpl implements IAuthService {
|
|
|
String clientType = loginBase.getClientType();
|
|
String clientType = loginBase.getClientType();
|
|
|
Integer systemType = loginBase.getSystemType();
|
|
Integer systemType = loginBase.getSystemType();
|
|
|
String deviceId = loginBase.getDeviceId();
|
|
String deviceId = loginBase.getDeviceId();
|
|
|
- Long timestamp = System.currentTimeMillis();
|
|
|
|
|
Map<String, Object> info = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
Map<String, Object> info = new HashMap<>(Global.NUMERICAL_SIXTEEN);
|
|
|
info.put("userId", userId);
|
|
info.put("userId", userId);
|
|
|
info.put("account", account);
|
|
info.put("account", account);
|
|
|
info.put("clientType", clientType);
|
|
info.put("clientType", clientType);
|
|
|
info.put("systemType", systemType);
|
|
info.put("systemType", systemType);
|
|
|
info.put("deviceId", deviceId);
|
|
info.put("deviceId", deviceId);
|
|
|
- info.put("timestamp", timestamp);
|
|
|
|
|
info.put("type", "refresh");
|
|
info.put("type", "refresh");
|
|
|
String key = Global.getFullRefreshTokenKey(clientType, userId, deviceId);
|
|
String key = Global.getFullRefreshTokenKey(clientType, userId, deviceId);
|
|
|
String refreshToken = EncryUtil.encryV1(Global.PRI_KEY, JSON.toJSONString(info));
|
|
String refreshToken = EncryUtil.encryV1(Global.PRI_KEY, JSON.toJSONString(info));
|
|
@@ -527,7 +525,7 @@ public class AuthServiceImpl implements IAuthService {
|
|
|
|
|
|
|
|
// 根据系统类型处理刷新逻辑
|
|
// 根据系统类型处理刷新逻辑
|
|
|
Integer tokenSystemType = Integer.valueOf(tokenInfoMap.get("systemType").toString());
|
|
Integer tokenSystemType = Integer.valueOf(tokenInfoMap.get("systemType").toString());
|
|
|
- if (tokenSystemType == SystemTypeEnum.DRIVER.getCode()) {
|
|
|
|
|
|
|
+ if (Objects.equals(tokenSystemType, SystemTypeEnum.DRIVER.getCode())) {
|
|
|
return handleDriverRefresh(loginBase, tokenInfoMap);
|
|
return handleDriverRefresh(loginBase, tokenInfoMap);
|
|
|
} else {
|
|
} else {
|
|
|
return handleCommonRefresh(loginBase, tokenInfoMap);
|
|
return handleCommonRefresh(loginBase, tokenInfoMap);
|