提交 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)
新增监听token更新时机,同步客户端push_clientid至uni-id-device表
## 1.0.2(2022-07-04)
......
{
"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"
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册