Browse Source

修复资金测试bug

ellisran 10 tháng trước cách đây
mục cha
commit
67c5cde52b
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      app/service/financial_pay_contract.js

+ 3 - 1
app/service/financial_pay_contract.js

@@ -40,7 +40,9 @@ module.exports = app => {
                 fpid: fp.id,
             };
             const result = await this.db.insert(this.tableName, insertData);
-            return await this.getDataById(result.insertId);
+            const result2 = await this.getDataById(result.insertId);
+            result2.files = [];
+            return result2;
         }
 
         async addContracts(fp, cids) {