Pu Zhibing
2025-01-04 a015e7c916474bb51b33c228f690aa17f30c746c
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/util/payment/TransferUtil.java
@@ -1,5 +1,6 @@
package com.ruoyi.other.util.payment;
import cn.hutool.http.ContentType;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
@@ -42,6 +43,7 @@
   public static SinglePayResult singlePay(SinglePay singlePay){
      String url = "https://www.joinpay.com/payment/pay/singlePay";
      HttpRequest post = HttpUtil.createPost(url);
      post.contentType(ContentType.JSON.toString());
      JSONObject body = new JSONObject();
      //商户编号
      body.put("userNo", merchantNo);
@@ -124,6 +126,7 @@
   public static SinglePayQueryResult singlePayQuery(String merchantOrderNo){
      String url = "https://www.joinpay.com/payment/pay/singlePayQuery";
      HttpRequest post = HttpUtil.createPost(url);
      post.contentType(ContentType.JSON.toString());
      JSONObject body = new JSONObject();
      //商户编号
      body.put("userNo", merchantNo);
@@ -167,6 +170,7 @@
   public static AccountBalanceQueryResult accountBalanceQuery(){
      String url = "https://www.joinpay.com/payment/pay/accountBalanceQuery";
      HttpRequest post = HttpUtil.createPost(url);
      post.contentType(ContentType.JSON.toString());
      JSONObject body = new JSONObject();
      //商户编号
      body.put("userNo", merchantNo);
@@ -226,4 +230,9 @@
      return MD5AndKL.MD5(sb.toString());
   }
   
   public static void main(String[] args) {
      TransferUtil.accountBalanceQuery();
   }
}