lrf402788946 4 rokov pred
rodič
commit
bce5342bdc
2 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  1. 1 2
      app/service/lesson.js
  2. 1 1
      config/config.default.js

+ 1 - 2
app/service/lesson.js

@@ -416,7 +416,7 @@ class LessonService extends CrudService {
         if (openid) {
           const tourl = this.ctx.app.config.baseUrl + '/msgconfirm/?userid=' + teacherUser.uid + '&noticeid=' + nresid;
           // TODO 推送
-          const res = await this.ctx.service.weixin.sendTemplateDesign(
+          await this.ctx.service.weixin.sendTemplateDesign(
             this.ctx.app.config.REVIEW_TEMPLATE_ID,
             openid,
             '您有一个新的通知,请点击信息,确认您已收到信息!(若已确认,则无需理会)',
@@ -425,7 +425,6 @@ class LessonService extends CrudService {
             '感谢您的使用',
             tourl
           );
-          console.error(`wx:${res}`);
           person = { notifiedid: teacherUser.uid, username: teacherUser.name };
         }
       }

+ 1 - 1
config/config.default.js

@@ -63,7 +63,7 @@ module.exports = appInfo => {
   // base路径
   // appID
   config.appid = 'wxdf3ed83c095be97a';
-  config.REVIEW_TEMPLATE_ID = 'oqmozBcdkCzBOvNrdzMQ1lDJcobD5uBEpNoLWec0bPY';
+  config.REVIEW_TEMPLATE_ID = 'BI4h0AQpdctm74I7-7PyHAspSMX2oJOTJVQsgrppOag';
 
   // 邮箱配置
   config.user_email = 'system@jilinjobs.cn';