Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
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
黄天晨
bh_face_counter
Commits
88506646
Commit
88506646
authored
Jan 20, 2021
by
修福龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把轮询支付分状态改至后端查询
parent
284eddc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
FacePage.js
src/pages/FacePage.js
+14
-18
No files found.
src/pages/FacePage.js
View file @
88506646
...
@@ -427,29 +427,25 @@ class FacePage extends Component {
...
@@ -427,29 +427,25 @@ class FacePage extends Component {
// 刷脸开通支付分
// 刷脸开通支付分
openPayScore
=
async
action
=>
{
openPayScore
=
async
action
=>
{
let
openPayScore
=
false
;
const
{
orderId
,
code
}
=
await
this
.
getPayScoreStatus
();
const
{
orderId
,
code
}
=
await
this
.
getPayScoreStatus
();
if
(
orderId
&&
code
)
{
if
(
orderId
&&
code
)
{
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
const
{
data
}
=
await
this
.
props
.
dispatch
({
// 查询用户支付分状态与服务授权状态
type
:
'goods/payscoreCheck'
,
await
delay
(
1000
);
userId
:
this
.
userId
,
const
{
data
}
=
await
this
.
props
.
dispatch
({
orderId
,
type
:
'goods/payscoreCheck'
,
code
,
userId
:
this
.
userId
,
});
orderId
,
if
(
data
.
code
===
1
)
{
code
,
await
this
.
wxdoor
();
});
}
else
{
if
(
data
.
code
===
1
&&
data
.
data
.
payscoreState
)
{
const
tipText
=
'请扫码开通支付分'
;
openPayScore
=
true
;
Speech
.
speak
(
tipText
);
await
this
.
wxdoor
();
this
.
setQrcode
({
action
,
tip
:
tipText
,
qrcode
:
true
});
// 扫码开通支付分
break
;
}
}
}
}
}
else
{
if
(
!
openPayScore
)
{
const
tipText
=
'请扫码开通支付分'
;
const
tipText
=
'请扫码开通支付分'
;
Speech
.
speak
(
tipText
);
Speech
.
speak
(
tipText
);
this
.
setQrcode
({
action
:
action
,
tip
:
tipText
,
qrcode
:
true
});
// 扫码开通支付分
this
.
setQrcode
({
action
,
tip
:
tipText
,
qrcode
:
true
});
// 扫码开通支付分
}
}
};
};
...
...
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