|
@@ -92,7 +92,9 @@ class SchoolService extends CrudService {
|
|
|
let school_name;
|
|
|
const sch = await this.ctx.model.School.findOne({ code: schid });
|
|
|
if (sch) school_name = sch.name;
|
|
|
- const fullUrl = 'http://jytz.jilinjobs.cn' + filepath;
|
|
|
+ let domain = 'http://127.0.0.1';
|
|
|
+ if (process.env.NODE_ENV === 'development') domain = 'http://jytz.jilinjobs.cn';
|
|
|
+ const fullUrl = domain + filepath;
|
|
|
let studentList = await this.getDataFromExcel(fullUrl);
|
|
|
const checkRes = await this.checkData(studentList);
|
|
|
const { errorcode } = checkRes;
|