修改了资源路径5
This commit is contained in:
parent
68e4c8d592
commit
7a060c442e
@ -127,7 +127,7 @@ public class ClinicalController extends BaseController {
|
||||
certWrapper.eq(CaseClinicalDoctorCertModel::getType, 1);
|
||||
CaseClinicalDoctorCertModel caseClinicalDoctorCert = caseClinicalDoctorCertDao.selectOne(certWrapper);
|
||||
if (caseClinicalDoctorCert != null){
|
||||
dto.setCertImage(Replace.addOssDomain(dto.getCertImage()));
|
||||
dto.setCertImage(Replace.addOssDomain(caseClinicalDoctorCert.getCertImage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -216,7 +216,7 @@ public class ClinicalController extends BaseController {
|
||||
certWrapper.eq(CaseClinicalDoctorCertModel::getType, 2);
|
||||
CaseClinicalDoctorCertModel caseClinicalDoctorCert = caseClinicalDoctorCertDao.selectOne(certWrapper);
|
||||
if (caseClinicalDoctorCert != null){
|
||||
dto.setCertImage(Replace.addOssDomain(dto.getCertImage()));
|
||||
dto.setCertImage(Replace.addOssDomain(caseClinicalDoctorCert.getCertImage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -895,7 +895,6 @@ public class CaseClinicalVideoService {
|
||||
throw new BusinessException("-1", "无法完成此操作");
|
||||
}
|
||||
|
||||
|
||||
userService.CreateUserCert(
|
||||
String.valueOf(caseClinicalVideo.getVideoId()),
|
||||
2,
|
||||
|
||||
@ -31,7 +31,8 @@ public class CertService {
|
||||
String certificateNo,
|
||||
String name,
|
||||
String content,
|
||||
byte[] qrCodeByte
|
||||
byte[] qrCodeByte,
|
||||
String doctorId
|
||||
){
|
||||
try {
|
||||
// 加载背景模板图片
|
||||
@ -102,9 +103,9 @@ public class CertService {
|
||||
|
||||
String fileName = "";
|
||||
if (Objects.equals(envConfig.getActive(), "dev")){
|
||||
fileName = "dev/static/images/" + certificateNo + ".png";
|
||||
fileName = "dev/static/images/" + certificateNo + doctorId + ".png";
|
||||
}else{
|
||||
fileName = "prod/static/images/" + certificateNo + ".png";
|
||||
fileName = "prod/static/images/" + certificateNo + doctorId + ".png";
|
||||
}
|
||||
|
||||
boolean uploaded = Oss.putObject(fileName, imageBytes);
|
||||
|
||||
@ -637,7 +637,8 @@ public class UserService {
|
||||
certificateNo,
|
||||
caseClinicalDoctor.getDoctorName(),
|
||||
"您的案例《" + title + "》经评议,被肝胆相照临床病例库收录,特发此证",
|
||||
qrCodeByte
|
||||
qrCodeByte,
|
||||
doctorId
|
||||
);
|
||||
|
||||
// 新增证书文件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user