|
|
|
@@ -138,8 +138,7 @@ public class TtMaServiceImpl implements TtMaService, RequestHttp<CloseableHttpCl |
|
|
|
Map<String, String> params = new HashMap<>(8); |
|
|
|
params.put("appid", config.getAppid()); |
|
|
|
params.put("secret", config.getSecret()); |
|
|
|
params.put("js_code", jsCode); |
|
|
|
params.put("grant_type", "authorization_code"); |
|
|
|
params.put("code", jsCode); |
|
|
|
|
|
|
|
String result = get(JSCODE_TO_SESSION_URL, Joiner.on("&").withKeyValueSeparator("=").join(params)); |
|
|
|
return WxMaJscode2SessionResult.fromJson(result); |
|
|
|
|