Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app-public
Project
Overview
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
姜雷
wx-school-app-public
Commits
66ff4279
Commit
66ff4279
authored
Apr 24, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加结果打印
parent
0d2551ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pay.tsx
src/pages/pay/pay.tsx
+3
-1
No files found.
src/pages/pay/pay.tsx
View file @
66ff4279
...
@@ -68,6 +68,8 @@ class Pay extends Component {
...
@@ -68,6 +68,8 @@ class Pay extends Component {
smaproPrepayConfigId
:
payId
,
smaproPrepayConfigId
:
payId
,
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res: '
,
res
);
const
{
payStr
}
=
res
;
const
{
payStr
}
=
res
;
const
key
=
customerId
.
toString
().
padEnd
(
16
,
'0'
);
const
key
=
customerId
.
toString
().
padEnd
(
16
,
'0'
);
const
payData
=
JSON
.
parse
(
const
payData
=
JSON
.
parse
(
...
@@ -76,7 +78,7 @@ class Pay extends Component {
...
@@ -76,7 +78,7 @@ class Pay extends Component {
padding
:
PaddingPkcs7
,
padding
:
PaddingPkcs7
,
}).
toString
(
Utf8
),
}).
toString
(
Utf8
),
);
);
console
.
log
(
payData
);
console
.
log
(
'payData:'
,
payData
);
Taro
.
requestPayment
({
Taro
.
requestPayment
({
timeStamp
:
payData
.
msg
.
timeStamp
.
toString
(),
timeStamp
:
payData
.
msg
.
timeStamp
.
toString
(),
nonceStr
:
payData
.
msg
.
nonceStr
,
nonceStr
:
payData
.
msg
.
nonceStr
,
...
...
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