| 
														
															@@ -103,15 +103,15 @@ public class TestController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return; 
														 | 
														
														 | 
														
															             return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<String> collect = userList.stream().map(User::getExternalUserId3rdParty).collect(Collectors.toList()); 
														 | 
														
														 | 
														
															         List<String> collect = userList.stream().map(User::getExternalUserId3rdParty).collect(Collectors.toList()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        String s = collect.get(0); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         String weComAccessToken = accessTokenService.getWeComAccessToken(); 
														 | 
														
														 | 
														
															         String weComAccessToken = accessTokenService.getWeComAccessToken(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         log.info("weComAccessToken={}", weComAccessToken); 
														 | 
														
														 | 
														
															         log.info("weComAccessToken={}", weComAccessToken); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (weComAccessToken == null) { 
														 | 
														
														 | 
														
															         if (weComAccessToken == null) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return; 
														 | 
														
														 | 
														
															             return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        String url = String.format("https://qyapi.weixin.qq.com/cgi-bin/batch/openuserid_to_userid?access_token=%s", weComAccessToken); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        String url = String.format("https://qyapi.weixin.qq.com/cgi-bin/externalcontact/from_service_external_userid?access_token=%s", weComAccessToken); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         JSONObject jsonObject = new JSONObject(); 
														 | 
														
														 | 
														
															         JSONObject jsonObject = new JSONObject(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        JSONArray jsonArray = JSONArray.parseArray(JSON.toJSONString(collect)); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        jsonObject.put("open_userid_list", jsonArray); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        jsonObject.put("external_userid", s); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         jsonObject.put("source_agentid", 1000009); 
														 | 
														
														 | 
														
															         jsonObject.put("source_agentid", 1000009); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         String post = httpPoolClientDefault.post(url, jsonObject.toJSONString()); 
														 | 
														
														 | 
														
															         String post = httpPoolClientDefault.post(url, jsonObject.toJSONString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         log.info("getUserId={}", post); 
														 | 
														
														 | 
														
															         log.info("getUserId={}", post); 
														 |