提交 208955ff 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修改setCid

上级 a7419435
## 1.0.4(2022-07-06)
- uni-id-co增加clientInfo字段类型校验
## 1.0.3(2022-07-05) ## 1.0.3(2022-07-05)
新增监听token更新时机,同步客户端push_clientid至uni-id-device表 新增监听token更新时机,同步客户端push_clientid至uni-id-device表
## 1.0.2(2022-07-04) ## 1.0.2(2022-07-04)
......
{ {
"id": "uni-id-pages", "id": "uni-id-pages",
"displayName": "uni-id-pages", "displayName": "uni-id-pages",
"version": "1.0.2", "version": "1.0.3",
"description": "云端一体简单、统一、可扩展的用户中心页面模版", "description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [ "keywords": [
"用户管理", "用户管理",
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
}, },
"H5-pc": { "H5-pc": {
"Chrome": "y", "Chrome": "y",
"IE": "u", "IE": "y",
"Edge": "y", "Edge": "y",
"Firefox": "u", "Firefox": "u",
"Safari": "y" "Safari": "y"
......
...@@ -61,9 +61,7 @@ async function setOpendbDevice ({ ...@@ -61,9 +61,7 @@ async function setOpendbDevice ({
return return
} }
data.create_date = now data.create_date = now
await opendbDeviceCollection.where({ await opendbDeviceCollection.add(data)
device_id: deviceId
}).add(data)
} }
/** /**
...@@ -104,7 +102,7 @@ module.exports = async function (params = {}) { ...@@ -104,7 +102,7 @@ module.exports = async function (params = {}) {
} }
} }
const deviceRecord = getDeviceRes.data[0] const deviceRecord = getDeviceRes.data[0]
await setOpendbDevice({ await setOpendbDevice.call(this, {
pushClientId pushClientId
}) })
if (!deviceRecord) { if (!deviceRecord) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册