FengChaoYu 3 kuukautta sitten
vanhempi
commit
4bbb8b4f4e

+ 1 - 1
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/utils/ocr/OCRUtil.java

@@ -102,7 +102,7 @@ public class OCRUtil {
      */
     private static String getFileContentAsBase64(String path, String imageBase64, boolean urlEncode) throws IOException {
         String base64 = imageBase64;
-        if (StringUtils.isBlank(path)) {
+        if (StringUtils.isNotBlank(path)) {
             byte[] b = Files.readAllBytes(Paths.get(path));
             base64 = Base64.getEncoder().encodeToString(b);
         }