he2802 2 лет назад
Родитель
Сommit
2f591eeff2

BIN
zhongzheng-admin/src/main/resources/config/1640084970/apiclient_cert.p12


+ 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() {

BIN
zhongzheng-api/src/main/resources/config/1640084970/apiclient_cert.p12