|
@ -1,6 +1,7 @@ |
|
|
package com.ccsens.signin.api; |
|
|
package com.ccsens.signin.api; |
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
|
|
import cn.hutool.core.map.MapUtil; |
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import cn.hutool.core.util.StrUtil; |
|
|
import cn.hutool.extra.servlet.ServletUtil; |
|
|
import cn.hutool.extra.servlet.ServletUtil; |
|
@ -96,7 +97,7 @@ public class UserController { |
|
|
|
|
|
|
|
|
//3.生成token(access_token,refresh_token)
|
|
|
//3.生成token(access_token,refresh_token)
|
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
Map<String, Object> theMap = CollectionUtil.newHashMap(); |
|
|
Map<String, Object> theMap = MapUtil.newHashMap(); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType, identify_type,userSignVo, theMap); |
|
|
UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType, identify_type,userSignVo, theMap); |
|
|
|
|
|
|
|
@ -136,7 +137,7 @@ public class UserController { |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
|
|
|
|
|
|
Map<String, Object> theMap = CollectionUtil.newHashMap(); |
|
|
Map<String, Object> theMap = MapUtil.newHashMap(); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); |
|
|
UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); |
|
|
|
|
|
|
|
@ -192,7 +193,7 @@ public class UserController { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
Map<String, Object> theMap = CollectionUtil.newHashMap(); |
|
|
Map<String, Object> theMap = MapUtil.newHashMap(); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); |
|
|
tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); |
|
|
} |
|
|
} |
|
@ -212,7 +213,7 @@ public class UserController { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
Map<String, Object> theMap = CollectionUtil.newHashMap(); |
|
|
Map<String, Object> theMap = MapUtil.newHashMap(); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
tokenBean = userService.getUserInfoAndToken(clientType,identifyType, userSignVo, theMap); |
|
|
tokenBean = userService.getUserInfoAndToken(clientType,identifyType, userSignVo, theMap); |
|
|
} |
|
|
} |
|
@ -251,7 +252,7 @@ public class UserController { |
|
|
} |
|
|
} |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
Map<String, Object> theMap = CollectionUtil.newHashMap(); |
|
|
Map<String, Object> theMap = MapUtil.newHashMap(); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType,identifyType, userSignVo, theMap); |
|
|
UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType,identifyType, userSignVo, theMap); |
|
|
return JsonResponse.newInstance().ok(tokenBean); |
|
|
return JsonResponse.newInstance().ok(tokenBean); |
|
@ -343,7 +344,7 @@ public class UserController { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
if (ObjectUtil.isNotNull(userSignVo)) { |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); |
|
|
Map<String, Object> theMap = CollectionUtil.newHashMap(); |
|
|
Map<String, Object> theMap = MapUtil.newHashMap(); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); |
|
|
tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); |
|
|
tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); |
|
|
} |
|
|
} |
|
|