lyhzzz 2 år sedan
förälder
incheckning
27fad844db

+ 1 - 1
src/main/java/com/fdkankan/tk/service/impl/RoomServiceImpl.java

@@ -138,7 +138,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
         }
         String localPath = String.format(FilePath.LOCAL_QRCODE_PATH, roomId);
         String ossPath = String.format(FilePath.OSS_QRCODE_PATH, roomId);
-        wxService.getWxQRCode("roomId="+roomId,String.format(FilePath.LOCAL_QRCODE_PATH,roomId),0);
+        wxService.getWxQRCode("roomId="+roomId,localPath,0);
         if(!new File(localPath).exists()){
             throw new BusinessException(ResultCode.QRCODE_MISS);
         }

+ 1 - 0
src/main/java/com/fdkankan/tk/service/impl/WxServiceImpl.java

@@ -97,6 +97,7 @@ public class WxServiceImpl implements IWxService {
             if(!localFile.getParentFile().exists()){
                 localFile.mkdirs();
             }
+            log.info(localFile.getPath());
             FileOutputStream fileOutputStream = new FileOutputStream(localFile);
             IOUtils.copy(is , fileOutputStream);