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
85c3f209
Commit
85c3f209
authored
Oct 28, 2020
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝人脸烟柜增加年龄判断
parent
3725df79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
android
android
+1
-1
FacePage.js
src/pages/FacePage.js
+1
-4
SmokePage.js
src/pages/SmokePage.js
+1
-0
store.js
src/services/store.js
+2
-2
No files found.
android
@
bb6ce209
Subproject commit
ec3dba3f5035c0c0721961f1301321677dcd4bf4
Subproject commit
bb6ce2099f5d2d3a14e6d8373ea5178fa3bc022a
src/pages/FacePage.js
View file @
85c3f209
...
@@ -326,10 +326,7 @@ class FacePage extends Component {
...
@@ -326,10 +326,7 @@ class FacePage extends Component {
const
tipText
=
'正在人脸识别,请看向屏幕,靠中间站稳'
;
const
tipText
=
'正在人脸识别,请看向屏幕,靠中间站稳'
;
Speech
.
speak
(
tipText
);
Speech
.
speak
(
tipText
);
await
this
.
alipayinfo
();
await
this
.
alipayinfo
();
if
(
!
this
.
alipayInfo
||
!
this
.
alipayInfo
.
metaInfo
)
{
if
(
!
this
.
alipayInfo
||
!
this
.
alipayInfo
.
metaInfo
)
return
;
this
.
props
.
speak
(
'刷脸支付启动失败,请重新刷脸或扫码支付'
,
true
);
return
;
}
const
{
data
}
=
await
this
.
props
.
dispatch
({
const
{
data
}
=
await
this
.
props
.
dispatch
({
type
:
'goods/smilepay'
,
type
:
'goods/smilepay'
,
service_id
:
'auth'
,
service_id
:
'auth'
,
...
...
src/pages/SmokePage.js
View file @
85c3f209
...
@@ -65,6 +65,7 @@ class SmokePage extends Component {
...
@@ -65,6 +65,7 @@ class SmokePage extends Component {
const
ret
=
await
this
.
props
.
dispatch
({
const
ret
=
await
this
.
props
.
dispatch
({
type
:
'store/wxdoor'
,
type
:
'store/wxdoor'
,
alipayUid
:
res
.
uid
,
alipayUid
:
res
.
uid
,
fToken
:
res
.
fToken
,
});
});
this
.
handleDoorLogin
(
ret
);
this
.
handleDoorLogin
(
ret
);
}
}
...
...
src/services/store.js
View file @
85c3f209
...
@@ -35,10 +35,10 @@ export function door({userId}) {
...
@@ -35,10 +35,10 @@ export function door({userId}) {
return
axios
.
post
(
'/store/door'
,
qs
.
stringify
({
userId
}));
return
axios
.
post
(
'/store/door'
,
qs
.
stringify
({
userId
}));
}
}
export
function
wxdoor
({
userId
,
openid
,
wxtoken
,
nickname
,
alipayUid
})
{
export
function
wxdoor
({
userId
,
openid
,
wxtoken
,
nickname
,
alipayUid
,
fToken
})
{
return
axios
.
post
(
return
axios
.
post
(
'/store/wxdoor'
,
'/store/wxdoor'
,
qs
.
stringify
({
userId
,
openid
,
wxtoken
,
nickname
,
alipayUid
}),
qs
.
stringify
({
userId
,
openid
,
wxtoken
,
nickname
,
alipayUid
,
fToken
}),
);
);
}
}
...
...
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