| | |
| | | try { |
| | | String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken; |
| | | Map<String, Object> param = new HashMap<>(); |
| | | // param.put("scene", "phone=" + phonenumber); |
| | | 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); //二维码尺寸 |
| | |
| | | Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); // 使用LinkedHashMap保持顺序 |
| | | dataMap.put("goods_desc", "积分充值"); |
| | | dataMap.put("huifu_id", "6666000174575407"); |
| | | dataMap.put("notify_url", "http://221.182.45.100:8084/other/wx/integralCallback"); |
| | | dataMap.put("notify_url", "http://47.120.5.122:8080/other/wx/integralCallback"); |
| | | dataMap.put("req_date", date.format(new Date())); |
| | | dataMap.put("req_seq_id", code); |
| | | dataMap.put("trade_type", "T_MINIAPP"); |
| | |
| | | Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); // 使用LinkedHashMap保持顺序 |
| | | dataMap.put("goods_desc", "积分充值"); |
| | | dataMap.put("huifu_id", "6666000174575407"); |
| | | dataMap.put("notify_url", "http://221.182.45.100:8084/other/wx/integralCallback"); |
| | | dataMap.put("notify_url", "http://47.120.5.122:8080/other/wx/integralCallback"); |
| | | dataMap.put("req_date", date.format(new Date())); |
| | | dataMap.put("req_seq_id", code); |
| | | dataMap.put("trade_type", "T_MINIAPP"); |
| | |
| | | Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); // 使用LinkedHashMap保持顺序 |
| | | dataMap.put("goods_desc", "积分充值"); |
| | | dataMap.put("huifu_id", "6666000174575407"); |
| | | dataMap.put("notify_url", "http://221.182.45.100:8084/other/wx/integralCallback"); |
| | | dataMap.put("notify_url", "http://47.120.5.122:8080/other/wx/integralCallback"); |
| | | dataMap.put("req_date", date.format(new Date())); |
| | | dataMap.put("req_seq_id", code); |
| | | dataMap.put("trade_type", "T_JSAPI"); |
| | |
| | | |
| | | String signStr = JSON.toJSONString(JSONObject.parseObject(JSON.toJSONString(dataMap), TreeMap.class)); |
| | | |
| | | |
| | | System.out.println("待签名字符串:" + signStr); |
| | | |
| | | // 签名 (按照汇付天下规则,使用MD5加签) |