|
@@ -28,7 +28,7 @@ public class WechatUtil {
|
|
|
|
|
|
public static Token getToken(String appId, String appSecret, String code) {
|
|
|
Token token = new Token();
|
|
|
- LOG.info("to get the token");
|
|
|
+ LOG.info("Ready to get the token");
|
|
|
String result="";
|
|
|
try {
|
|
|
String url = token_url.replace("APPID", appId).replace("SECRET", appSecret).replace("CODE", code);
|
|
@@ -38,7 +38,7 @@ public class WechatUtil {
|
|
|
}
|
|
|
JSONObject object=new JSONObject(result);
|
|
|
try {
|
|
|
- System.out.println(object);
|
|
|
+ LOG.info(object.toString());
|
|
|
token.setAccessToken(object.getString("access_token"));
|
|
|
token.setExpiresIn(object.getInt("expires_in"));
|
|
|
token.setRefresh_token(object.getString("refresh_token"));
|