Commit c4885407 by 修福龙

支付宝刷脸支付使用余额抵扣

parent 1f738fc1
......@@ -522,7 +522,7 @@ const CounterMixins = ComposeComponent => {
};
// 付款码支付
barcodepay = async (code, facepay, openid, fToken) => {
barcodepay = async (code, facepay, openid, fToken, uid) => {
if (this.barcodeBusy) {
return true;
}
......@@ -544,6 +544,7 @@ const CounterMixins = ComposeComponent => {
noBarcode,
openid,
fToken,
uid,
});
if (res.code !== 1) {
await this.setState({voiceModal: true, voiceTitle: res.msg});
......
......@@ -240,7 +240,7 @@ class VerticalPage extends Component {
Toast.show(res.msg);
return;
}
await this.props.barcodepay(res.fToken, true, null, res.fToken);
await this.props.barcodepay(res.fToken, true, null, res.fToken, res.uid);
}
};
......
......@@ -9,10 +9,18 @@ export function getBags() {
return axios.get('/store/goods/bags');
}
export function barcodepay({ids, code, facepay, noBarcode, openid, fToken}) {
export function barcodepay({
ids,
code,
facepay,
noBarcode,
openid,
fToken,
uid,
}) {
return axios.post(
'/store/goods/barcodepay',
qs.stringify({ids, code, facepay, noBarcode, openid, fToken}),
qs.stringify({ids, code, facepay, noBarcode, openid, fToken, uid}),
);
}
......
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