From f4a460eafb7123dfad90a356bd8559c9221f64e1 Mon Sep 17 00:00:00 2001 From: chenruilong Date: Mon, 4 Nov 2024 15:58:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B2=A1=E6=9C=89=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=E8=A7=A3=E5=AF=86=E5=AF=86?= =?UTF-8?q?=E9=92=A5=E6=97=B6=E7=99=BB=E5=BD=95=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages/changelog.md | 12 +++++++----- .../uni-id-co/common/sensitive-aes-cipher.js | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 1d5ca1a..12635d9 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,8 +1,10 @@ -## 1.1.22(2024-09-13) -- 注册登录时去除字符串两端的空白字符 -- 删除static目录下重复资源 -## 1.1.21(2024-08-02) -- uni-id-co 修复联登更新用户信息接口存在手机号或者邮箱时没有设置认证状态 +## 1.1.23(2024-11-04) +- uni-id-co 修复 没有配置敏感信息解密密钥时导致登录报错的问题 +## 1.1.22(2024-09-13) +- 注册登录时去除字符串两端的空白字符 +- 删除static目录下重复资源 +## 1.1.21(2024-08-02) +- uni-id-co 修复联登更新用户信息接口存在手机号或者邮箱时没有设置认证状态 ## 1.1.20(2024-04-28) - uni-id-co 兼容uni-app-x对客户端uniPlatform的调整(uni-app-x内uniPlatform区分app-android、app-ios) ## 1.1.19(2024-03-20) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js index 91e2db3..80ce279 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js @@ -21,10 +21,10 @@ function checkSecret (secret) { } } function encryptData (text = '') { - if (!text) return text - const encryptSecret = this.config.sensitiveInfoEncryptSecret + if (!text || !encryptSecret) return text + checkSecret(encryptSecret) const iv = encryptSecret.slice(-16) @@ -40,10 +40,10 @@ function encryptData (text = '') { } function decryptData (text = '') { - if (!text) return text - const encryptSecret = this.config.sensitiveInfoEncryptSecret + if (!text || !encryptSecret) return text + checkSecret(encryptSecret) const iv = encryptSecret.slice(-16) -- GitLab