Commit 9f5c4e68 authored by 姜登's avatar 姜登

type

parent 18969422
Pipeline #18287 passed with stage
in 4 seconds
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: jd * @Author: jd
* @Date: 2019-06-10 19:49:32 * @Date: 2019-06-10 19:49:32
* @LastEditors: jd * @LastEditors: jd
* @LastEditTime: 2019-12-18 19:00:15 * @LastEditTime: 2019-12-18 19:10:23
*/ */
'use strict'; 'use strict';
...@@ -49,7 +49,7 @@ class RechargeController extends Controller { ...@@ -49,7 +49,7 @@ class RechargeController extends Controller {
const { ctx, service } = this; const { ctx, service } = this;
ctx.validate(this.indexRule, ctx.query); ctx.validate(this.indexRule, ctx.query);
await service.user.getUserInfo(); await service.user.getUserInfo();
const ret = await service.userDetail.findAll(this.model, { user_id: ctx.query.user_id }, [ 'id', 'user_id', 'money', 'receive_time', 'remark', 'operator' ], ctx.pagination); const ret = await service.userDetail.findAll(this.model, { user_id: ctx.query.user_id }, [ 'id', 'user_id', 'money', 'receive_time', 'remark', 'operator', 'type' ], ctx.pagination);
const total = await service.userDetail.count(this.model, { user_id: ctx.query.user_id }); const total = await service.userDetail.count(this.model, { user_id: ctx.query.user_id });
ctx.success({ data: ret, total, ...ctx.pagination }); ctx.success({ data: ret, total, ...ctx.pagination });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment