lrf402788946 4 years ago
parent
commit
0ee4258812
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/service/lesson.js
  2. 1 1
      app/service/school.js

+ 1 - 1
app/service/lesson.js

@@ -405,7 +405,7 @@ class LessonService extends CrudService {
         // console.error(`${teacherInfo.name}-email:${email}`);
         const subject = '吉林省高等学校毕业生就业指导中心通知';
         const text = teacherInfo.name + `${content},请您尽快登陆双困生培训系统查看您的安排,系统邮件,请勿回复!`;
-        // this.ctx.service.util.sendMail(email, subject, text);
+        this.ctx.service.util.sendMail(email, subject, text);
       }
 
 

+ 1 - 1
app/service/school.js

@@ -50,7 +50,7 @@ class SchoolService extends CrudService {
     const planid = plan.id;
     const planyearid = plan.planyearid;
     // 取得excle中数据
-    const _filepath = 'http://127.0.0.1:9900' + filepath; // this.ctx.app.config.baseUrl
+    const _filepath = this.ctx.app.config.baseUrl + filepath; //
     console.log(_filepath);
     const studatas = await this.getImportXLSXData(
       _filepath,