|
@@ -32,16 +32,16 @@ public class TakeLookService {
|
|
|
param.setPlatform("ucenter");
|
|
|
return takeLookClient.roomAddOrUpdate(param,token);
|
|
|
}
|
|
|
- public String getRoomIdByNum(String num,String title,String token) {
|
|
|
+ public Object getRoomIdByNum(String num,String title,String token) {
|
|
|
ResultData<FdRoomVo> response = takeLookClient.getRoomIdByNum(num, token);
|
|
|
if(response.getCode() !=0){
|
|
|
ResultData<FdRoomAddParam> fdRoomAddParamResultData = fdCreateTakeLookRoom(title, Arrays.asList(num), null, token);
|
|
|
if(response.getCode() !=0){
|
|
|
throw new BusinessException(fdRoomAddParamResultData.getCode(),fdRoomAddParamResultData.getMessage());
|
|
|
}
|
|
|
- return fdRoomAddParamResultData.getData().getRoomId();
|
|
|
+ return fdRoomAddParamResultData.getData();
|
|
|
}else {
|
|
|
- return response.getData().getRoomId();
|
|
|
+ return response.getData();
|
|
|
}
|
|
|
|
|
|
}
|