新版仿ok交易所-后端
1
zyy
2026-03-08 74e5a0efcda0eff0f23037c3439ef5405bafe922
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"