|
@@ -2,13 +2,17 @@ package com.fdkankan.scene.service.impl;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.common.util.DateExtUtil;
|
|
|
+import com.fdkankan.scene.entity.JySceneAuth;
|
|
|
import com.fdkankan.scene.service.IJmgaService;
|
|
|
+import com.fdkankan.scene.service.IJySceneAuthService;
|
|
|
import com.fdkankan.scene.vo.SceneInfoParamVO;
|
|
|
import com.fdkankan.web.util.WebUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -32,6 +36,9 @@ public class JmgaServiceImpl implements IJmgaService {
|
|
|
@Value("${scene.view.encrypt-key:3d8904474ebbdbbd81c5952524dad646}")
|
|
|
private String ENCRYPT_KEY;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IJySceneAuthService jySceneAuthService;
|
|
|
+
|
|
|
@Override
|
|
|
public boolean checkSceneViewGign(SceneInfoParamVO param, HttpServletRequest request) throws Exception{
|
|
|
|
|
@@ -85,6 +92,12 @@ public class JmgaServiceImpl implements IJmgaService {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean isBizAuth(String num) {
|
|
|
+ long count = jySceneAuthService.count(new LambdaQueryWrapper<JySceneAuth>().eq(JySceneAuth::getNum, num).eq(JySceneAuth::getAuthType, 0));
|
|
|
+ return count > 0 ? true : false;
|
|
|
+ }
|
|
|
+
|
|
|
public static void main(String[] args) throws NoSuchPaddingException, NoSuchAlgorithmException, BadPaddingException, IllegalBlockSizeException, InvalidKeyException {
|
|
|
|
|
|
String sign = "P9md4QmKxb4VvpUY1pSnG3ycLyJ7c95mloXRrp50m+J6lhs0WHHD5rtPTSI8TXKC";
|