Commit c988330f authored by chenyuxi's avatar chenyuxi

feat: 发微信消息提取域名配置

parent 19f6b83a
...@@ -43,6 +43,8 @@ public class WxConfig { ...@@ -43,6 +43,8 @@ public class WxConfig {
private String agentid; private String agentid;
@Value("${wx.authUrl}") @Value("${wx.authUrl}")
private String authUrl; private String authUrl;
@Value("${wx.domainName}")
private String domainName;
@Autowired @Autowired
private RedisTemplate redisTemplate; private RedisTemplate redisTemplate;
......
...@@ -227,7 +227,7 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess ...@@ -227,7 +227,7 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess
String authUrl = null; String authUrl = null;
Map<String, Object> textcard = new HashMap<>(); Map<String, Object> textcard = new HashMap<>();
authUrl = String.format(SecurityConstants.WX_GET_MESSAGE_AUTH_URL, wxConfig.getCorpid(), "https://test-wx.worfu.com/auth/oauth/wxLogin", "01"+insuranceUnpurchaseApply.getId()); authUrl = String.format(SecurityConstants.WX_GET_MESSAGE_AUTH_URL, wxConfig.getCorpid(), wxConfig.getDomainName()+"/auth/oauth/wxLogin", "01"+insuranceUnpurchaseApply.getId());
textcard.put("title", "含风险项目不购买商险申请"); textcard.put("title", "含风险项目不购买商险申请");
textcard.put("url", authUrl); textcard.put("url", authUrl);
......
...@@ -20,5 +20,5 @@ wx: ...@@ -20,5 +20,5 @@ wx:
corpsecret: 16kqEL_eU-ARwYyqLgEBWHgxm8gXVnkzv_eJMLy9NpU corpsecret: 16kqEL_eU-ARwYyqLgEBWHgxm8gXVnkzv_eJMLy9NpU
agentid: 1000010 agentid: 1000010
authUrl: https://test-wx.worfu.com/yifu-auth/method/oauth/wxLogin authUrl: https://test-wx.worfu.com/yifu-auth/method/oauth/wxLogin
domainName: https://test-wx.worfu.com
...@@ -32,5 +32,6 @@ wx: ...@@ -32,5 +32,6 @@ wx:
corpsecret: R0nKkvsY-oF41fuQvUXZ-kFG3_g_Ce0bpZt6mByx524 corpsecret: R0nKkvsY-oF41fuQvUXZ-kFG3_g_Ce0bpZt6mByx524
agentid: 1000009 agentid: 1000009
authUrl: https://wx.worfu.com/yifu-auth/method/oauth/wxLogin authUrl: https://wx.worfu.com/yifu-auth/method/oauth/wxLogin
domainName: https://wx.worfu.com
...@@ -32,3 +32,4 @@ wx: ...@@ -32,3 +32,4 @@ wx:
corpsecret: 16kqEL_eU-ARwYyqLgEBWHgxm8gXVnkzv_eJMLy9NpU corpsecret: 16kqEL_eU-ARwYyqLgEBWHgxm8gXVnkzv_eJMLy9NpU
agentid: 1000010 agentid: 1000010
authUrl: https://test-wx.worfu.com/yifu-auth/method/oauth/wxLogin authUrl: https://test-wx.worfu.com/yifu-auth/method/oauth/wxLogin
domainName: https://test-wx.worfu.com
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment