he2802 2 vuotta sitten
vanhempi
commit
5f56f2bb5b

+ 10 - 2
zhongzheng-api/src/main/java/com/zhongzheng/controller/cmmon/CommonController.java

@@ -58,6 +58,9 @@ public class CommonController extends BaseController {
 
     private final WxLoginService wxLoginService;
 
+    private final ISysConfigService configService;
+
+
     @Autowired
     private RedisCache redisCache;
 
@@ -120,8 +123,6 @@ public class CommonController extends BaseController {
         return AjaxResult.success(iCourseTopicService.getGoodsList(bo));
     }
 
-    private final ISysConfigService configService;
-
 
     /**
      * 查询课程列表
@@ -168,6 +169,13 @@ public class CommonController extends BaseController {
         return AjaxResult.success(map);
     }
 
+    @ApiOperation("登录双重验证")
+    @GetMapping("/dual_auth")
+    public AjaxResult<String> dual_auth() {
+        String dualAuth = configService.selectConfigByKey("login.dual.auth");
+        return AjaxResult.success("成功",dualAuth);
+    }
+
     /**
      * 公众号服务接口
      */

+ 1 - 1
zhongzheng-common/src/main/java/com/zhongzheng/common/type/EncryptHandler.java

@@ -17,7 +17,7 @@ public class EncryptHandler  implements TypeHandler<String> {
 
     private static final byte[] KEYS = "base20230213zzkj".getBytes(StandardCharsets.UTF_8);
 
-    public static final boolean ENCRYPT_STATUS = false; //是否开启字段加密
+    public static final boolean ENCRYPT_STATUS = true; //是否开启字段加密