|
@@ -131,6 +131,9 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
@Override
|
|
|
public String getWxQrCode(Integer roomId) {
|
|
|
Room room = this.getById(roomId);
|
|
|
+ if(room == null){
|
|
|
+ throw new BusinessException(ResultCode.ROOM_MISS);
|
|
|
+ }
|
|
|
if(StringUtils.isNotBlank(room.getRoomQrCode())){
|
|
|
if(uploadToOssUtil.existKey(room.getRoomQrCode())){
|
|
|
return room.getRoomQrCode();
|