|
@@ -199,10 +199,14 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ String path = null;
|
|
|
+ if(type.equals("leader")){
|
|
|
+ path = String.format(WxSharCodePath.hostCodePath,roomId,type,room.getRoomUserName());
|
|
|
+ }else {
|
|
|
+ path = String.format(WxSharCodePath.shardCodePath,roomId,"customer");
|
|
|
+ }
|
|
|
String localPath = String.format(FilePath.LOCAL_QRCODE_PATH, type,roomId);
|
|
|
String ossPath = String.format(FilePath.OSS_QRCODE_PATH,type, roomId);
|
|
|
- String path = String.format(WxSharCodePath.sharCodePath,roomId,type);
|
|
|
wxService.getWxQRCode(path,localPath,0);
|
|
|
if(!new File(localPath).exists()){
|
|
|
throw new BusinessException(ResultCode.QRCODE_MISS);
|