1
This commit is contained in:
@@ -19,9 +19,9 @@ public class WxLoginService {
|
||||
private final WxMiniAppConfig wxMiniAppConfig;
|
||||
private final RestTemplate restTemplate;
|
||||
|
||||
public WxLoginService(WxMiniAppConfig wxMiniAppConfig) {
|
||||
public WxLoginService(WxMiniAppConfig wxMiniAppConfig, RestTemplate restTemplate) {
|
||||
this.wxMiniAppConfig = wxMiniAppConfig;
|
||||
this.restTemplate = new RestTemplate();
|
||||
this.restTemplate = restTemplate;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,10 +17,20 @@ wx:
|
||||
appid: wx50fe0c5c28dd3060
|
||||
# 小程序AppSecret
|
||||
secret: e82fa407fad13a9df35503f2d176e5a4
|
||||
corp: # 企业ID
|
||||
corpid: ww257614cff8a1b61b
|
||||
# 应用Secret
|
||||
corpsecret: 2B0TAefYVewqjVHprLdGJQ8fNHz1drJq6235xN-mqNI
|
||||
# 审批模板ID
|
||||
approval-template-id: C4ej9uEntM19iNJbrtJsUqZakPFfjBNTPNLSKPno2
|
||||
# 审批回调URL(可选)
|
||||
callback-url: http://your-domain.com/api/wx-corp/approval-callback
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
type-aliases-package: com.example.mini_program.entity
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
map-underscore-to-camel-case: true
|
||||
|
||||
# 企业微信配置
|
||||
Reference in New Issue
Block a user