Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yizhi_server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
yizhi_server
Commits
9f5c4e68
Commit
9f5c4e68
authored
Dec 18, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type
parent
18969422
Pipeline
#18287
passed with stage
in 4 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
recharge.js
app/controller/recharge.js
+2
-2
No files found.
app/controller/recharge.js
View file @
9f5c4e68
...
@@ -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
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment