lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
1ba47fbf9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/dock/patent.js

+ 1 - 1
app/service/dock/patent.js

@@ -15,7 +15,7 @@ class PatentService extends CrudService {
     super(ctx, 'patent');
     this.model = this.ctx.model.Patent;
 
-    this.root_path = process.env.NODE_ENV === 'development' ? 'E:\\exportFile' : _.get(this.ctx.app.config.export, 'root_path');
+    this.root_path = _.get(this.ctx.app.config.export, 'root_path');
     this.file_type = '';
     if (!fs.existsSync(`${this.root_path}${this.file_type}`)) {
       // 如果不存在文件夹,就创建