lrf402788946 4 jaren geleden
bovenliggende
commit
3aa941cc80
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      app/service/school.js

+ 1 - 2
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:2001' + filepath; // this.ctx.app.config.baseUrl http://jytz.jilinjobs.cn
+    const _filepath = 'http://127.0.0.1' + filepath; // this.ctx.app.config.baseUrl http://127.0.0.1:2001 http://jytz.jilinjobs.cn
     const studatas = await this.getImportXLSXData(
       _filepath,
       termid,
@@ -136,7 +136,6 @@ class SchoolService extends CrudService {
   async getschnum(plan, type, schid, termid, batchid) {
     const schtime = await this.schmodel.findOne({ schid, planid: plan.id });
     const { arrange } = schtime;
-    console.log(arrange);
     const r = arrange.find(f => f.batchid === batchid);
     if (!r) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '没有找到该学校的计划');
     const { number } = r;