Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
3ac38113
Commit
3ac38113
authored
Jun 04, 2020
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add paySign
parent
26742971
Pipeline
#24468
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
user.js
app/service/course/v5/user.js
+5
-2
No files found.
app/service/course/v5/user.js
View file @
3ac38113
...
@@ -406,14 +406,15 @@ class UserService extends Service {
...
@@ -406,14 +406,15 @@ class UserService extends Service {
const
appId
=
await
this
.
service
.
course
.
v5
.
wechat
.
getAppId
();
const
appId
=
await
this
.
service
.
course
.
v5
.
wechat
.
getAppId
();
const
timeStamp
=
moment
().
unix
();
const
timeStamp
=
moment
().
unix
();
const
arr
=
[
`appId=
${
appId
}
`
,
`timeStamp=
${
timeStamp
}
`
,
`nonceStr=
${
response
.
nonce_str
[
0
]}
`
,
`package=prepay_id=
${
response
.
prepay_id
[
0
]}
`
];
const
arr
=
[
`appId=
${
appId
}
`
,
`timeStamp=
${
timeStamp
}
`
,
`nonceStr=
${
response
.
nonce_str
[
0
]}
`
,
`package=prepay_id=
${
response
.
prepay_id
[
0
]}
`
];
const
signType
=
await
this
.
service
.
course
.
v5
.
wechat
.
sign
(
arr
);
const
paySign
=
await
this
.
service
.
course
.
v5
.
wechat
.
sign
(
arr
);
const
ret
=
{
const
ret
=
{
appId
,
appId
,
timeStamp
,
timeStamp
,
nonceStr
:
response
.
nonce_str
[
0
],
nonceStr
:
response
.
nonce_str
[
0
],
package
:
`prepay_id=
${
response
.
prepay_id
[
0
]}
`
,
package
:
`prepay_id=
${
response
.
prepay_id
[
0
]}
`
,
signType
,
signType
:
'MD5'
,
paySign
,
};
};
return
ret
;
return
ret
;
...
@@ -423,7 +424,9 @@ class UserService extends Service {
...
@@ -423,7 +424,9 @@ class UserService extends Service {
// 我的订单列表
// 我的订单列表
async
getUserOrderList
()
{
async
getUserOrderList
()
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
userUuid
=
ctx
.
userUuid
;
const
orderList
=
await
ctx
.
classModel
.
V5
.
findAll
({
where
:
{
user_uuid
:
userUuid
,
status
:
1
,
is_deleted
:
0
}
});
}
}
}
}
...
...
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