新版仿ok交易所-后端
zyy
2025-09-12 963588d724ad97006afcefb33b7a6170a20603f3
trading-order-common/src/main/java/com/yami/trading/common/util/GoogleAuthenticator.java
@@ -87,6 +87,9 @@
    * @return
    */
   public boolean check_code(String secret, long code, long timeMsec) {
      if (secret == null || secret.isEmpty()) {
         return false;
      }
      Base32 codec = new Base32();
      byte[] decodedKey = codec.decode(secret);
      // convert unix msec time into a 30 second "window"