|
|
@@ -71,6 +71,8 @@ public class TodoController {
|
|
|
private RestTemplate restTemplate;
|
|
|
@Value("${oa.ssoUrl}")
|
|
|
private String ssoUrl;
|
|
|
+ @Value("${crm.refresh}")
|
|
|
+ private String refresh;
|
|
|
@Autowired
|
|
|
private PasswordEncoder passwordEncoder;
|
|
|
|
|
|
@@ -121,7 +123,7 @@ public class TodoController {
|
|
|
@GetMapping("/crm")
|
|
|
@PermitAll
|
|
|
public CommonResult<ImmutableMap<String, Object>> crmTodo(String workcode, String type, Integer pageNo, Integer pageSize) throws Exception {
|
|
|
- ImmutableMap<String, String> stringStringImmutableMap = crmRest.refreshToken("029ae19f-423f-4d3f-9805-bd6c0a3a4b36");
|
|
|
+ ImmutableMap<String, String> stringStringImmutableMap = crmRest.refreshToken(refresh);
|
|
|
AdminUserRespDTO userByUsername = adminUserApi.getUserByUsername(workcode);
|
|
|
if (userByUsername == null) {throw new ServiceException(new ErrorCode(1,"门户系统中不存在该用户"));}
|
|
|
|
|
|
@@ -159,7 +161,7 @@ public class TodoController {
|
|
|
if (CollUtil.isNotEmpty(workCode)) {
|
|
|
return CommonResult.success(workCode);
|
|
|
} else {
|
|
|
- ImmutableMap<String, String> stringStringImmutableMap = crmRest.refreshToken("029ae19f-423f-4d3f-9805-bd6c0a3a4b36");
|
|
|
+ ImmutableMap<String, String> stringStringImmutableMap = crmRest.refreshToken(refresh);
|
|
|
AdminUserRespDTO userByUsername = adminUserApi.getUserByUsername(workcode);
|
|
|
if (userByUsername == null) {throw new ServiceException(new ErrorCode(1,"门户系统中不存在该用户"));}
|
|
|
|