From c4f44a9c0627d134ee00aa816750aa42f12b322b Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5uni-id-co?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/facial-recognition-verify/get-auth-result.js | 1 + .../uniCloud/cloudfunctions/uni-id-co/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/facial-recognition-verify/get-auth-result.js b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/facial-recognition-verify/get-auth-result.js index 7993457..3a68e22 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/facial-recognition-verify/get-auth-result.js +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/facial-recognition-verify/get-auth-result.js @@ -109,6 +109,7 @@ module.exports = async function (params) { fileID } = await uniCloud.uploadFile({ cloudPath: `user/id-card/${uid}.b64`, + cloudPathAsRealPath: true, fileContent: Buffer.from(encryptData.call(this, pictureRes.data.toString('base64'))) }) updateData.realname_auth.in_hand = fileID diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json index c590707..c73f6ae 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json @@ -22,4 +22,4 @@ "cloudfunction-config": { "keepRunningAfterReturn": false } -} +} \ No newline at end of file -- GitLab