lrf402788946 4 gadi atpakaļ
vecāks
revīzija
72a03c048f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/service/school.js

+ 1 - 1
app/service/school.js

@@ -169,7 +169,7 @@ class SchoolService extends CrudService {
   }
   // 整理excel数据
   async getDataFromExcel(url) {
-    const file = await this.ctx.curl(`http://127.0.0.1${url}`);
+    const file = await this.ctx.curl(`${url}`);
     if (!(file && file.data)) {
       throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到上传的名单');
     }