Browse Source

fix : 新增一个cp的token验证, 以及一个获取小程序token的rpc实现

bilingfeng 1 năm trước cách đây
mục cha
commit
0419be5d29

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/ManageApplication.java

@@ -23,7 +23,7 @@ public class ManageApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 <测试小程序监听> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <测试小程序监听1> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 2 - 0
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/controller/TestController.java

@@ -1,5 +1,6 @@
 package com.zanxiang.game.module.manage.controller;
 
+import com.zanxiang.erp.security.annotation.PreAuthorize;
 import com.zanxiang.game.module.manage.pojo.vo.VipLevelChoiceVO;
 import com.zanxiang.game.module.manage.service.IAppletCheckService;
 import com.zanxiang.module.util.pojo.ResultVO;
@@ -29,6 +30,7 @@ public class TestController {
 
     @ApiOperation(value = "小程序监测测试接口")
     @GetMapping(value = "/check/app")
+    @PreAuthorize(permissionKey = "manage:cp:checkApp")
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = VipLevelChoiceVO.class, responseContainer = "list")})
     public ResultVO<Void> vipLevelChoiceList() {
         appletCheckService.payApplicationCheck();