44444
This commit is contained in:
parent
075fb78d3a
commit
523299f91a
@ -1,6 +1,7 @@
|
|||||||
package com.example.caseData.service;
|
package com.example.caseData.service;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.example.caseData.config.AppConfig;
|
||||||
import com.example.caseData.config.EnvConfig;
|
import com.example.caseData.config.EnvConfig;
|
||||||
import com.example.caseData.dao.*;
|
import com.example.caseData.dao.*;
|
||||||
import com.example.caseData.exception.BusinessException;
|
import com.example.caseData.exception.BusinessException;
|
||||||
@ -25,6 +26,7 @@ import jakarta.validation.Validation;
|
|||||||
import jakarta.validation.Validator;
|
import jakarta.validation.Validator;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||||
@ -103,6 +105,8 @@ public class CaseClinicalVideoService {
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private CaseClinicalDoctorCertDao caseClinicalDoctorCertDao;
|
private CaseClinicalDoctorCertDao caseClinicalDoctorCertDao;
|
||||||
|
@Autowired
|
||||||
|
private AppConfig appConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增收藏-临床病例库-视频
|
* 新增收藏-临床病例库-视频
|
||||||
@ -575,8 +579,13 @@ public class CaseClinicalVideoService {
|
|||||||
throw new BusinessException("-1", errorMessage);
|
throw new BusinessException("-1", errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String secretKey = "26e8675f44565b1ed4eaaa0fcf3531d7";
|
||||||
|
if (Objects.equals(envConfig.getActive(), "prod")){
|
||||||
|
secretKey = "a1e5d9ca1d3fbae69532f134bf6cdee9";
|
||||||
|
}
|
||||||
|
|
||||||
// 检测签名
|
// 检测签名
|
||||||
Video.checkSign(request,"26e8675f44565b1ed4eaaa0fcf3531d7",r,objectMapper);
|
Video.checkSign(request,secretKey,r,objectMapper);
|
||||||
|
|
||||||
// 获取视频数据
|
// 获取视频数据
|
||||||
LambdaQueryWrapper<CaseClinicalVideoModel> videoQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<CaseClinicalVideoModel> videoQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user