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