Przeglądaj źródła

修改EzPayDebugController

qmj 6 godzin temu
rodzic
commit
aa7bfd778b

+ 4 - 4
ruoyi-admin/src/main/java/com/ruoyi/app/utils/ezPay/EzPay.java

@@ -185,10 +185,10 @@ public class EzPay {
             return false;
         }
         String decrypted = EzPayEncryptUtil.decrypt(resultHex, config.getHashKey(), config.getHashIV());
-//        boolean exist = decrypted != null && decrypted.contains("IsExist=Y");
-//        // decrypted 形如 CellphoneBarcode=%2FABC1234&IsExist=Y
-//        log.info("[EzPay] checkBarCode decrypted={}, isExist={}", decrypted, exist);
-        return true;
+        boolean exist = decrypted != null && decrypted.contains("IsExist=Y");
+        // decrypted 形如 CellphoneBarcode=%2FABC1234&IsExist=Y
+        log.info("[EzPay] checkBarCode decrypted={}, isExist={}", decrypted, exist);
+        return exist;
     }
 
     /**