提交 c4f44a9c 编写于 作者: A Anne_LXM

同步uni-id-co

上级 cd9fabbc
...@@ -109,6 +109,7 @@ module.exports = async function (params) { ...@@ -109,6 +109,7 @@ module.exports = async function (params) {
fileID fileID
} = await uniCloud.uploadFile({ } = await uniCloud.uploadFile({
cloudPath: `user/id-card/${uid}.b64`, cloudPath: `user/id-card/${uid}.b64`,
cloudPathAsRealPath: true,
fileContent: Buffer.from(encryptData.call(this, pictureRes.data.toString('base64'))) fileContent: Buffer.from(encryptData.call(this, pictureRes.data.toString('base64')))
}) })
updateData.realname_auth.in_hand = fileID updateData.realname_auth.in_hand = fileID
......
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
"cloudfunction-config": { "cloudfunction-config": {
"keepRunningAfterReturn": false "keepRunningAfterReturn": false
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册