lrf402788946 4 năm trước cách đây
mục cha
commit
72a03c048f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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, '未找到上传的名单');
     }