修改微信授权登录参数-冯辉的参数
This commit is contained in:
		| @@ -28,8 +28,8 @@ public class WechatUtil { | ||||
|     /** | ||||
|      * 生成signature | ||||
|      **/ | ||||
|     private static String appid = "wxee0d0655e464f184"; | ||||
|     private static String secret = "38a71cb90ea12c6b2eee4434ae7932cf"; | ||||
|     private static String appid = "wx9d1cbc11c8c40ba7"; | ||||
|     private static String secret = "38e87cf6251945446e8ac091a0ba9ab2"; | ||||
|     public AppWechatEntity sign(String url) { | ||||
|         Map<String, String> ret = new HashMap(); | ||||
|         String nonceStr = create_nonce_str(); | ||||
| @@ -237,6 +237,8 @@ public class WechatUtil { | ||||
|      */ | ||||
|     public JSONObject code2Session(String code) { | ||||
|         try { | ||||
|             System.out.println("appid==============="+appid); | ||||
|             System.out.println("secret================"+secret); | ||||
|             String response = getAccessData("https://api.weixin.qq.com/sns/jscode2session?appid="+appid+"&secret="+secret+"&js_code="+code+"&grant_type=authorization_code"); | ||||
|             JSONObject result = JSONObject.parseObject(response); | ||||
|             // 微信返回错误码处理 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user