推送关联云服务空间、添加用户协议和隐私政策外部链接、修改活动状态和图片定位显示问题

This commit is contained in:
zhouyanli
2026-06-25 17:03:08 +08:00
parent 8939fec34b
commit 47079da1a4
21 changed files with 492 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
'use strict';
// 初始化推送管理器
const uniPush = uniCloud.getPushManager({
appId: "__UNI__29C3D60"
})
exports.main = async (event, context) => {
// event接收前端传入的推送参数
const res = await uniPush.sendMessage({
push_clientid: event.cid, // 客户端设备cid
title: "通知标题",
content: "通知内容",
force_notification: true // 离线厂商推送必填
})
return res
};

View File

@@ -0,0 +1,7 @@
{
"name": "push-send",
"dependencies": {},
"extensions": {
"uni-cloud-push": {}
}
}