소스 검색

fix config

he2802 2 년 전
부모
커밋
d18d39be25
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      zhongzheng-api/src/main/java/com/zhongzheng/controller/cmmon/CommonController.java

+ 11 - 0
zhongzheng-api/src/main/java/com/zhongzheng/controller/cmmon/CommonController.java

@@ -169,6 +169,17 @@ public class CommonController extends BaseController {
         return AjaxResult.success(map);
     }
 
+    @ApiOperation("获取微信参数")
+    @GetMapping("/wx/config")
+    public AjaxResult<Map<String,Object>> wxConfig() {
+        Map<String,Object> map = new HashMap<>();
+        String smallAppId = configService.selectConfigByKey("wx.small.appid");
+        String gzhAppId = configService.selectConfigByKey("wx.gzh.appid");
+        map.put("smallAppId",smallAppId);
+        map.put("gzhAppId",gzhAppId);
+        return AjaxResult.success(map);
+    }
+
     @ApiOperation("登录双重验证")
     @GetMapping("/dual_auth")
     public AjaxResult<String> dual_auth() {