|
@@ -131,9 +131,9 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
@Override
|
|
|
public String getWxQrCode(Integer roomId) {
|
|
|
Room room = this.getById(roomId);
|
|
|
- if(StringUtils.isNotBlank(room.getRoomShareUrl())){
|
|
|
- if(uploadToOssUtil.existKey(room.getRoomShareUrl())){
|
|
|
- return room.getRoomShareUrl();
|
|
|
+ if(StringUtils.isNotBlank(room.getRoomQrCode())){
|
|
|
+ if(uploadToOssUtil.existKey(room.getRoomQrCode())){
|
|
|
+ return room.getRoomQrCode();
|
|
|
}
|
|
|
}
|
|
|
String localPath = String.format(FilePath.LOCAL_QRCODE_PATH, roomId);
|
|
@@ -147,7 +147,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
FileUtil.del(localPath);
|
|
|
throw new BusinessException(ResultCode.QRCODE_MISS);
|
|
|
}
|
|
|
- room.setRoomShareUrl(queryPath + ossPath);
|
|
|
+ room.setRoomQrCode(queryPath + ossPath);
|
|
|
this.updateById(room);
|
|
|
FileUtil.del(localPath);
|
|
|
return queryPath + ossPath;
|