Pu Zhibing
3 天以前 a878aac2cc6d82a870056d8fd2bf7584fa4659ca
ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/drainage/TCECUtil.java
@@ -227,6 +227,7 @@
    * @return
    */
   public static NotificationChargeOrderInfoResult notificationChargeOrderInfo(Operator operator, NotificationChargeOrderInfo info){
      System.out.println("推送充电订单信息:--->" + JSON.toJSONString(info));
      HttpRequest post = HttpUtil.createPost(operator.getUrl() + InterfaceUrlEnum.NOTIFICATION_CHARGE_ORDER_INFO.getUrl());
      buildBody(post, info, operator);
      HttpResponse execute = post.execute();
@@ -337,6 +338,20 @@
      }
      return sign;
   }
   public static String ourBuildSignJianGuan(BaseModel model){
      Operator operator = model.getOperator();
      if(null == operator){
         return "";
      }
      //签名秘钥SigSecret
      String key = operator.getOurSigSecret();
      String sign = "";
      //进行字符串拼接、计算
      String m1 = new StringBuilder(model.getOperatorID()).append(model.getData()).append(model.getTimeStamp()).append(model.getSeq()).toString();
      sign = SignUtil.hmacSign(m1, key);
      return sign;
   }