cheny 5 年之前
父节点
当前提交
3cfa259536
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/controller/transaction.js

+ 2 - 2
app/controller/transaction.js

@@ -14,9 +14,9 @@ class TransactionController extends Controller {
   }
 
   async findTransactionList() {
-    const res = await this.service.findTransactionList(this.ctx.request.body);
+    const data = await this.service.findTransactionList(this.ctx.request.body);
     // this.ctx.ok({ ...res });
-    this.ctx.ok({ res });
+    this.ctx.ok({ data });
   }
 }