增加巡检页面

This commit is contained in:
xuli
2025-11-14 18:30:34 +08:00
parent 6bca60840b
commit a6cc5ff885
19 changed files with 1167 additions and 36 deletions

View File

@@ -1,31 +1,9 @@
// 'use strict';
// const uniPush = uniCloud.getPushManager({appId:"__UNI__4C459F4"}) //注意这里需要传入你的应用appId
// exports.main = async (event) => {
// console.log(event)
// if(event.cid){
// let obj = JSON.parse(event.body);
// console.log(obj)
// const res = await uniPush.sendMessage({
// "push_clientid": obj.cids, // 设备id支持多个以数组的形式指定多个设备如["cid-1","cid-2"]数组长度不大于1000
// "title": obj.title, // 标题
// "content": obj.content, // 内容
// "settings": obj.settings, // 消息有效期
// "payload": obj.payload, // 数据
// "category": obj.category, // HarmonyOS NEXT系统纯血鸿蒙、非安卓鸿蒙的消息分类要给鸿蒙设备推送时才必传
// "force_notification": true, //填写true客户端就会对在线消息自动创建“通知栏消息”不填写则需要客户端自己处理。
// "request_id": obj.request_id ,//请求唯一标识号10-32位之间如果request_id重复会导致消息丢失
// "options":obj.options //消息分类,没申请可以不传这个参数
// })
// return res;
// }
// return {}
// };
// 简单的使用示例 appId: "__UNI__4C459F4"
// 我的 appId: "__UNI__4C459F4"
// 718的 appId: __UNI__0B682E1
'use strict';
const uniPush = uniCloud.getPushManager({
appId: "__UNI__0B682E1"
appId: "__UNI__4C459F4"
})
exports.main = async (event) => {
console.log(event)