提交 df4ad7e3 编写于 作者: VK1688's avatar VK1688

Update uni-pay.md

上级 eea6d276
......@@ -898,7 +898,7 @@ module.exports = async (obj) => {
let orderInfo = orderRes.data[0];
// 给用户充值余额
let res = await db.collection("uni-id-users").doc(orderInfo.user_id).update({
balance: _.inc(orderInfo.total_fee)
balance: _.inc(total_fee)
});
if (res && res.updated) {
user_order_success = true; // 通知插件我的自定义回调逻辑执行成功
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册