lrf402788946 před 4 roky
rodič
revize
72a03c048f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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, '未找到上传的名单');
     }