Pu Zhibing
2024-10-29 801e650124598ad5ae1629149cfd70a2598d7bf1
ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/barrierGate/model/SwitchwayGate.java
@@ -4,6 +4,7 @@
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.util.security.MD5Encoder;
/**
 * @author zhibing.pu
@@ -39,7 +40,7 @@
      String str = String.format("action=%s&appkey=%s&channel=%s&timestamp=%s&key=%s", this.getAction(), this.getAppkey(), this.getChannel(), this.getTimestamp(), secretkey);
      log.info("待签名串:{}", str);
      //MD5加密
      String encoder = MD5Util.getMD5(str);
      String encoder = MD5Util.encoder(str);
      //将签名结果转大写
      encoder = encoder.toUpperCase();
      log.info("签名结果:{}", encoder);