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

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": {}
}
}

View File

@@ -0,0 +1,12 @@
// 本文件用于使用JQL语法操作项目关联的uniCloud空间的数据库方便开发调试和远程数据库管理
// 编写clientDB的js API也支持常规js语法比如var可以对云数据库进行增删改查操作。不支持uniCloud-db组件写法
// 可以全部运行也可以选中部分代码运行。点击工具栏上的运行按钮或者按下【F5】键运行代码
// 如果文档中存在多条JQL语句只有最后一条语句生效
// 如果混写了普通js最后一条语句需是数据库操作语句
// 此处代码运行不受DB Schema的权限控制移植代码到实际业务中注意在schema中配好permission
// 不支持clientDB的action
// 数据库查询有最大返回条数限制详见https://uniapp.dcloud.net.cn/uniCloud/cf-database.html#limit
// 详细JQL语法请参考https://uniapp.dcloud.net.cn/uniCloud/jql.html
// 下面示例查询uni-id-users表的所有数据
db.collection('uni-id-users').get();