fix[用户模块]:配置文件优化
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ public class TencentAuthenticationProvider extends BaseAuthenticationProvider {
|
||||
|
||||
HttpEntity<MultiValueMap<String, String>> requestEntity = new HttpEntity<>(params, headers);
|
||||
|
||||
ResponseEntity<String> responseEntity = restTemplate.exchange("https://api.weixin.qq.com/sns/jscode2session", HttpMethod.POST, requestEntity, String.class);
|
||||
ResponseEntity<String> responseEntity = restTemplate.exchange(securityProperties.getTencent().getJscode2sessionUrl(), HttpMethod.POST, requestEntity, String.class);
|
||||
|
||||
if (responseEntity.getStatusCode().is2xxSuccessful() && responseEntity.getBody().contains("openid")) {
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
Reference in New Issue
Block a user