You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// 简单的使用示例
|
|
'use strict';
|
|
const uniPush = uniCloud.getPushManager({appId:"__UNI__4796942"}) //注意这里需要传入你的应用appId
|
|
exports.main = async (event) => {
|
|
const obj = JSON.parse(event.body)
|
|
const res = await uniPush.sendMessage(obj)
|
|
return res;
|
|
}; |