rentaiming
2024-05-29 7998c03ea0b22ca4f7fc50d77d99df6501fb7fd1
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/tencent/protocol/UnifiedorderReqData.java
@@ -89,7 +89,7 @@
    * @param notify_url      通知地址
    * @throws IllegalAccessException 
    */
   public UnifiedorderReqData(String out_trade_no, String body, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{
/*   public UnifiedorderReqData(String out_trade_no, String body, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{
      //appID与商户号
      this.appid = Configure.getGappid();
@@ -115,8 +115,8 @@
      //      setNotify_url(notify_url);// 通知地址
      this.notify_url = notify_url;
      /*trade_type 交易类型JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付,统一下单接口trade_type的传参可参考这里
      MICROPAY--刷卡支付,刷卡支付有单独的支付接口,不调用统一下单接口*/
      *//*trade_type 交易类型JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付,统一下单接口trade_type的传参可参考这里
      MICROPAY--刷卡支付,刷卡支付有单独的支付接口,不调用统一下单接口*//*
      this.trade_type = trade_type;
      this.openid = openid;
@@ -124,7 +124,7 @@
      this.sign =  Signature.getSign(1,toMap());
   }
   */
   /**
    * 预支付请求需要的参数(获取微信统一下单-必填参数)(小程序)
    * 公众账号ID    appid (内置)
@@ -137,7 +137,7 @@
    * @param notify_url      通知地址
    * @throws IllegalAccessException 
    */
   public UnifiedorderReqData(String out_trade_no, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{
   public UnifiedorderReqData(String out_trade_no, String body, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{
      //appID与商户号
      this.appid = Configure.getXappid();
@@ -151,7 +151,7 @@
      //      setBody(body);// 商品描述
      this.body = "小程序支付";
      this.body = body;
      //      setOut_trade_no(out_trade_no);// 商户订单号
      this.out_trade_no = out_trade_no;