新版仿ok交易所-后端
zyy
2026-03-05 6fd35ed620c5cc01a69d72b9d4d0e93703638847
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"