lrf402788946 4 years ago
parent
commit
f98e207c8d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/service/leave.js

+ 1 - 2
app/service/leave.js

@@ -32,8 +32,7 @@ class LeaveService extends CrudService {
       const detail = student.name + '发起了请假请求(点击消息审核请假)';
       const remark = '感谢您的使用';
       const to_uri = `${this.app.config.baseUrl}/msgconfirm/leave/status?id=${entity.id}`;
-      console.log(to_uri);
-      if (openid) { await this.ctx.service.weixin.sendTemplateMsg(this.ctx.app.config.REVIEW_TEMPLATE_ID, openid, '您有一个学生请假通知', detail, date, remark, to_uri); }
+      if (openid) { await this.ctx.service.weixin.sendTemplateDesign(this.ctx.app.config.REVIEW_TEMPLATE_ID, openid, '您有一个学生请假通知', detail, date, remark, to_uri); }
     }
     return await this.fetch({ id: entity.id });
   }