Commit 9d309a2f by zeven

支付宝刷脸保存用户信息

parent e83451ae
......@@ -168,8 +168,8 @@ class VerifyCodeModal extends Component {
</View>
) : (
<Touch
style={styles.keyTouchOnSure}
onPress={() => this.pressKey(12)}>
// onPress={() => this.pressKey(12)}
style={styles.keyTouchOnSure}>
<Text style={styles.keyUnitClose}>确定</Text>
</Touch>
)}
......
......@@ -59,6 +59,7 @@ class FacePage extends Component {
const res = await this.props.dispatch({
type: 'store/sendsms',
phone: _phone,
faceType: this.state.faceType,
});
if (res.code === 1) {
if (/^\d+$/.test(res.msg)) {
......@@ -82,6 +83,7 @@ class FacePage extends Component {
code,
phone: this.phone,
userId: this.userId,
faceType: this.state.faceType,
});
if (res.code === 1) {
this.setState({
......@@ -337,7 +339,7 @@ class FacePage extends Component {
}
const ret = await this.props.dispatch({
type: 'store/wxdoor',
fToken: res.fToken,
alipayUid: res.uid,
});
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, fToken}) {
export function wxdoor({userId, openid, wxtoken, nickname, alipayUid}) {
return axios.post(
'/store/wxdoor',
qs.stringify({userId, openid, wxtoken, nickname, fToken}),
qs.stringify({userId, openid, wxtoken, nickname, alipayUid}),
);
}
......@@ -46,12 +46,15 @@ export function scaleData() {
return axios.get('/store/scaleData');
}
export function sendsms({phone}) {
return axios.post('/store/sendsms', qs.stringify({phone}));
export function sendsms({phone, faceType}) {
return axios.post('/store/sendsms', qs.stringify({phone, faceType}));
}
export function verifysms({phone, code, userId}) {
return axios.post('/store/verifysms', qs.stringify({phone, code, userId}));
export function verifysms({phone, code, userId, faceType}) {
return axios.post(
'/store/verifysms',
qs.stringify({phone, code, userId, faceType}),
);
}
export function getAdvertising(action) {
......
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