新版仿ok交易所-后端
zyy
2025-09-23 a3d67de3175104103f43331dc575be34b44d3083
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"