|
|
@@ -246,14 +246,11 @@ public class WeChatUtil {
|
|
|
* @return 返回包含微信公众号码ticket的Map
|
|
|
*/
|
|
|
public Map<?, ?> getTicket(String token, String openId) {
|
|
|
-
|
|
|
String url = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=" + token;
|
|
|
-
|
|
|
String param = "{\"action_name\": \"QR_LIMIT_STR_SCENE\",\"action_info\": {\"scene\": {\"scene_str\": \"" + openId + "\"}}}";
|
|
|
|
|
|
String rs = HttpUtil.post(url, param);
|
|
|
Map<?, ?> map = JSONObject.parseObject(rs, Map.class);
|
|
|
-
|
|
|
// String ticket = map.get("ticket").toString();
|
|
|
//
|
|
|
// String encode = null;
|
|
|
@@ -273,7 +270,6 @@ public class WeChatUtil {
|
|
|
// Map<?, ?> rsmap = JSONObject.parseObject(s, Map.class);
|
|
|
// return rsmap;
|
|
|
return map;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|