Browse Source

通知需要登录问题解决

ellisran 1 year ago
parent
commit
30cd1feddd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/dashboard_controller.js

+ 1 - 1
app/controller/dashboard_controller.js

@@ -236,7 +236,7 @@ module.exports = app => {
                             const projectData = await ctx.service.project.getDataById(ctx.session.sessionProject.id);
                             // 绑定成功通知
                             const templateId = 'VKUo4us4lt2dQY0EaaJxcui2jkjmriN3A0K7i4kpZwY';
-                            const url = ctx.protocol + '://' + ctx.host + '/wap/dashboard/msg/' + msgInfo.id;
+                            const url = ctx.protocol + '://' + ctx.host + '/wx/url2wap?project=' + ctx.session.sessionProject.code + '&url=' + ctx.protocol + '://' + ctx.host + '/wap/dashboard/msg/' + msgInfo.id;
                             const msgData = {
                                 thing21: {
                                     value: ctx.helper.contentChange(projectData.name),