From 208955ff481fe3b303d9c52fa979c7ce3f948e19 Mon Sep 17 00:00:00 2001 From: linju Date: Wed, 6 Jul 2022 16:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9setCid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages/changelog.md | 2 ++ uni_modules/uni-id-pages/package.json | 4 ++-- .../cloudfunctions/uni-id-co/module/utils/set-push-cid.js | 6 ++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index b1e8ddc..efa978c 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,3 +1,5 @@ +## 1.0.4(2022-07-06) +- uni-id-co增加clientInfo字段类型校验 ## 1.0.3(2022-07-05) 新增监听token更新时机,同步客户端push_clientid至uni-id-device表 ## 1.0.2(2022-07-04) diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index 0ba4bb5..03a40f9 100644 --- a/uni_modules/uni-id-pages/package.json +++ b/uni_modules/uni-id-pages/package.json @@ -1,7 +1,7 @@ { "id": "uni-id-pages", "displayName": "uni-id-pages", - "version": "1.0.2", + "version": "1.0.3", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", @@ -75,7 +75,7 @@ }, "H5-pc": { "Chrome": "y", - "IE": "u", + "IE": "y", "Edge": "y", "Firefox": "u", "Safari": "y" diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js index af5511f..05ab61e 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/utils/set-push-cid.js @@ -61,9 +61,7 @@ async function setOpendbDevice ({ return } data.create_date = now - await opendbDeviceCollection.where({ - device_id: deviceId - }).add(data) + await opendbDeviceCollection.add(data) } /** @@ -104,7 +102,7 @@ module.exports = async function (params = {}) { } } const deviceRecord = getDeviceRes.data[0] - await setOpendbDevice({ + await setOpendbDevice.call(this, { pushClientId }) if (!deviceRecord) { -- GitLab