Browse Source

还原

master
yinzuomei 3 years ago
parent
commit
fd0e388e43
  1. 6
      epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java

6
epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java

@ -777,14 +777,16 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol
//生成token串 //生成token串
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put(AppClientConstant.APP, app); map.put(AppClientConstant.APP, app);
map.put(AppClientConstant.CLIENT, client); // map.put(AppClientConstant.CLIENT, client);
// 第三方企业应用传应用的SuiteKey 作为client
map.put(AppClientConstant.CLIENT, suiteKey);
map.put("userId", userId); map.put("userId", userId);
String token = jwtTokenUtils.createToken(map); String token = jwtTokenUtils.createToken(map);
int expire = jwtTokenProperties.getExpire(); int expire = jwtTokenProperties.getExpire();
TokenDto tokenDto = new TokenDto(); TokenDto tokenDto = new TokenDto();
tokenDto.setCustomerId(customerId); tokenDto.setCustomerId(customerId);
tokenDto.setApp(app); tokenDto.setApp(app);
tokenDto.setClient(client); tokenDto.setClient(suiteKey);
tokenDto.setUserId(userId); tokenDto.setUserId(userId);
tokenDto.setToken(token); tokenDto.setToken(token);
tokenDto.setUpdateTime(System.currentTimeMillis()); tokenDto.setUpdateTime(System.currentTimeMillis());

Loading…
Cancel
Save