| | |
| | | //微信小程序appid |
| | | private static String sub_appid = "wxb7f0ea286fc4e535"; |
| | | //本地文件存储位置 |
| | | private static String path = "D:\\file"; |
| | | private static String path = "/home/hongruitang/shop/flies"; |
| | | //接口文档https://paas.huifu.com/partners/api/#/ |
| | | |
| | | |
| | |
| | | /** |
| | | * 查询结算记录 |
| | | * @param req_seq_id 流水号 |
| | | * @param huifu_id 商户号 |
| | | * @param huifuId 商户号 |
| | | * @param begin_date 开始日期 |
| | | * @param end_date 结束日期 |
| | | * @param page_num 分页页码,不传则默认为第1页 |
| | | * @param page_size 分页条数 |
| | | * @return |
| | | */ |
| | | public static R<List<MerchantBasicdataSettlementVo>> getMerchantBasicdataSettlement(String req_seq_id, String huifu_id, String begin_date, String end_date, String page_num, String page_size){ |
| | | public static R<List<MerchantBasicdataSettlementVo>> getMerchantBasicdataSettlement(String req_seq_id, String huifuId, String begin_date, String end_date, String page_num, String page_size){ |
| | | String url = "https://api.huifu.com/v2/merchant/basicdata/settlement/query"; |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); |
| | | JSONObject data = new JSONObject(); |
| | | data.put("req_seq_id", req_seq_id); |
| | | data.put("req_date", sdf.format(new Date())); |
| | | data.put("huifu_id", huifu_id); |
| | | data.put("huifu_id", huifuId); |
| | | data.put("begin_date", begin_date); |
| | | data.put("end_date", end_date); |
| | | data.put("page_num", page_num); |
| | |
| | | data.put("sort_order", "DESC"); |
| | | |
| | | JSONObject body = new JSONObject(); |
| | | body.put("sys_id", huifu_id); |
| | | body.put("sys_id", channel_id); |
| | | body.put("product_id", product_id); |
| | | body.put("sign", sign(data.toJSONString())); |
| | | body.put("sign", channel_sign(data.toJSONString())); |
| | | body.put("data", data); |
| | | HttpRequest post = HttpUtil.createPost(url); |
| | | Map<String, String> headers = new HashMap<>(); |