diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index b1e8ddc7e209c4671bbf60657918ced73d70e880..efa978cfc64ca82d26c99dbc9cba7377ca2e3259 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 0ba4bb560276d9c39938ff23aad82bf5add0cf52..03a40f91e31501c0d39d90075bd08797cb3e1e4b 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 af5511f1085e4e47d77a239a295c2ac615471059..05ab61ec23f693b1bf5aeb070ee0b335ee74d167 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) {