微信公众号模板消息功能配置信息参数修改
This commit is contained in:
parent
4cd5348e7d
commit
e0f8e8072a
@ -101,7 +101,7 @@ token:
|
|||||||
# 令牌有效期(默认30分钟)
|
# 令牌有效期(默认30分钟)
|
||||||
expireTime: 30
|
expireTime: 30
|
||||||
# 请求拦截白名单
|
# 请求拦截白名单
|
||||||
ant-matchers: /postDischarge/**
|
ant-matchers: /postDischarge/**,/testMobile/**
|
||||||
|
|
||||||
## MyBatis-Plus配置
|
## MyBatis-Plus配置
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.xinelu.mobile.controller;
|
|||||||
|
|
||||||
import com.xinelu.mobile.utils.WeChatAppletUtils;
|
import com.xinelu.mobile.utils.WeChatAppletUtils;
|
||||||
import com.xinelu.mobile.utils.WeChatOfficialAccountUtils;
|
import com.xinelu.mobile.utils.WeChatOfficialAccountUtils;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@ -20,19 +21,20 @@ public class MobileTestController {
|
|||||||
private WeChatAppletUtils weChatAppletUtils;
|
private WeChatAppletUtils weChatAppletUtils;
|
||||||
@Resource
|
@Resource
|
||||||
private WeChatOfficialAccountUtils weChatOfficialAccountUtils;
|
private WeChatOfficialAccountUtils weChatOfficialAccountUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试获取微信小程序accessToken
|
* 测试获取微信小程序accessToken
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/getAppletAcccessToken")
|
@GetMapping("/getAppletAcccessToken")
|
||||||
public void getAppletAccessToken() {
|
public String getAppletAccessToken() {
|
||||||
weChatAppletUtils.getWeChatAppletAccessToken();
|
return weChatAppletUtils.getWeChatAppletAccessToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试获取微信公众号accessToken
|
* 测试获取微信公众号accessToken
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/getOfficialAccountAccessToken")
|
@GetMapping("/getOfficialAccountAccessToken")
|
||||||
public void getOfficialAccountAccessToken() {
|
public String getOfficialAccountAccessToken() {
|
||||||
weChatOfficialAccountUtils.getWeChatOfficialAccountAccessToken();
|
return weChatOfficialAccountUtils.getWeChatOfficialAccountAccessToken();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user