修改了资源路径-作者1

This commit is contained in:
wucongxing8150 2025-08-01 14:15:46 +08:00
parent b9c47f8aca
commit 14856318d8

View File

@ -863,10 +863,21 @@ public class CaseClinicalVideoService {
// 新增新的作者
for (addClinicalVideoApp.Author author : addList){
// 获取医生数据
GetUserInfoResponse result = userInfo.getUserInfoByUuid(author.getDoctorIden());
GetUserInfoResponse result = new GetUserInfoResponse();
if (author.getDoctorIden() == null || Objects.equals(author.getDoctorIden(), "")){
GetUserInfoResponse.ResponsData resultData = new GetUserInfoResponse.ResponsData();
resultData.setOfficeName(author.getDoctorName());
resultData.setRealname(author.getDoctorName());
resultData.setHospitalUuid(author.getHospitalIden());
result.setData(resultData);
}else{
// 获取医生数据
result = userInfo.getUserInfoByUuid(author.getDoctorIden());
}
CaseClinicalDoctorModel caseClinicalDoctor = userService.GetAppCaseClinicalDoctor(result);
CaseClinicalVideoAuthorModel caseClinicalVideoAuthor = new CaseClinicalVideoAuthorModel();
caseClinicalVideoAuthor.setVideoId(caseClinicalVideo.getVideoId());
caseClinicalVideoAuthor.setDoctorId(String.valueOf(caseClinicalDoctor.getDoctorId()));
@ -889,13 +900,13 @@ public class CaseClinicalVideoService {
qrCodeByte = userService.CreateUserCaseClinicalUnlimitedQrcode(String.valueOf(caseClinicalVideo.getVideoId()),2);
} catch (Exception e) {
// 不处理
throw new BusinessException("-1", "无法完成此操作");
throw new BusinessException("-1", "无法完成此操作1");
}
}else{
// 下载二维码图片
qrCodeByte = Oss.getObjectToByte(caseClinicalVideo.getShareQrcode().replaceFirst("^/+", ""));
if (qrCodeByte == null) {
throw new BusinessException("-1", "无法完成此操作");
throw new BusinessException("-1", "无法完成此操作2");
}
}
@ -904,7 +915,7 @@ public class CaseClinicalVideoService {
// 下载头像
byte[] avatarByte = new byte[0];
if (caseClinicalDoctor.getAvatar() != null) {
if (caseClinicalDoctor.getAvatar() != null && caseClinicalDoctor.getAvatar() != "") {
avatarByte = Oss.getObjectToByte(caseClinicalDoctor.getAvatar().replaceFirst("^/+", ""));
}else{
try {