|
|
@@ -49,6 +49,9 @@ public class AccessControlServiceImpl implements AccessControlService{
|
|
|
@Value("${wechat.template.accesscontrol}")
|
|
|
private String accessControlTemplateId;
|
|
|
|
|
|
+ @Value("${smartschool.domain.wechat}")
|
|
|
+ private String wechatBaseUrl;
|
|
|
+
|
|
|
@Override
|
|
|
public void onAccessControlEvent(AccessControlInfo info) {
|
|
|
String filePath = null;
|
|
|
@@ -102,6 +105,7 @@ public class AccessControlServiceImpl implements AccessControlService{
|
|
|
* 3、推送消息到消息服务器(微信服务监听此消息发送微信消息)
|
|
|
*/
|
|
|
MessageInfoDTO msg = new MessageInfoDTO();
|
|
|
+ msg.setUrl(wechatBaseUrl + "/accessnoticedetail/" + record.getRecord_id());
|
|
|
msg.setAppId(studentInfo.getAppId());
|
|
|
msg.setSecret(studentInfo.getSecret());
|
|
|
msg.setTouser(studentInfo.getOpenId());
|