| | |
| | | String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken; |
| | | Map<String, Object> param = new HashMap<>(); |
| | | param.put("scene", "phone=" + phonenumber+",amount="+amount); |
| | | param.put("path", "chargingPile/payMent/payMent"); |
| | | param.put("page", "chargingPile/payMent/payMent"); |
| | | param.put("check_path", false); |
| | | param.put("env_version", "trial"); |
| | | param.put("width", 200); //二维码尺寸 |
| | |
| | | |
| | | String signStr = JSON.toJSONString(JSONObject.parseObject(JSON.toJSONString(dataMap), TreeMap.class)); |
| | | |
| | | |
| | | System.out.println("待签名字符串:" + signStr); |
| | | |
| | | // 签名 (按照汇付天下规则,使用MD5加签) |