Commit 85c3f209 by zeven

支付宝人脸烟柜增加年龄判断

parent 3725df79
android @ bb6ce209
Subproject commit ec3dba3f5035c0c0721961f1301321677dcd4bf4
Subproject commit bb6ce2099f5d2d3a14e6d8373ea5178fa3bc022a
......@@ -326,10 +326,7 @@ class FacePage extends Component {
const tipText = '正在人脸识别,请看向屏幕,靠中间站稳';
Speech.speak(tipText);
await this.alipayinfo();
if (!this.alipayInfo || !this.alipayInfo.metaInfo) {
this.props.speak('刷脸支付启动失败,请重新刷脸或扫码支付', true);
return;
}
if (!this.alipayInfo || !this.alipayInfo.metaInfo) return;
const {data} = await this.props.dispatch({
type: 'goods/smilepay',
service_id: 'auth',
......
......@@ -65,6 +65,7 @@ class SmokePage extends Component {
const ret = await this.props.dispatch({
type: 'store/wxdoor',
alipayUid: res.uid,
fToken: res.fToken,
});
this.handleDoorLogin(ret);
}
......
......@@ -35,10 +35,10 @@ export function door({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(
'/store/wxdoor',
qs.stringify({userId, openid, wxtoken, nickname, alipayUid}),
qs.stringify({userId, openid, wxtoken, nickname, alipayUid, fToken}),
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment