| | |
| | | @Qualifier("sysUserDeptSystemMapper") |
| | | private SysUserDeptMapper sysUserDeptMapper; |
| | | |
| | | @Value("${wx_appid}") |
| | | private String wxAppid; |
| | | |
| | | @Value("${wx_appSecret}") |
| | | private String wxAppSecret; |
| | | // @Value("${wx_appid}") |
| | | // private String wxAppid; |
| | | // |
| | | // @Value("${wx_appSecret}") |
| | | // private String wxAppSecret; |
| | | |
| | | /** |
| | | * 登录方法 |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 登录方法 |
| | | * |
| | | * @param map 登录信息 |
| | | * @return 结果 |
| | | */ |
| | | @PostMapping("/test") |
| | | public void test(@RequestBody Map<String, Object> map) { |
| | | WxMpUtils wxMpUtils = new WxMpUtils(wxAppid, wxAppSecret); |
| | | boolean b = wxMpUtils.sendTextMessage("bA_nlW7yM6CCfQMUX5HpBg", "你好"); |
| | | System.out.println("b的值为:" + b); |
| | | } |
| | | // /** |
| | | // * 登录方法 |
| | | // * |
| | | // * @param map 登录信息 |
| | | // * @return 结果 |
| | | // */ |
| | | // @PostMapping("/test") |
| | | // public void test(@RequestBody Map<String, Object> map) { |
| | | // WxMpUtils wxMpUtils = new WxMpUtils(wxAppid, wxAppSecret); |
| | | // boolean b = wxMpUtils.sendTextMessage("bA_nlW7yM6CCfQMUX5HpBg", "你好"); |
| | | // System.out.println("b的值为:" + b); |
| | | // } |
| | | |
| | | /** |
| | | * 单点登录方法(需要配置IP白名单) |