- 第一次发布小程序审核需要一天吗?
昨天第一次提交小程序,都审核一天,为什么还没通过? [图片]
2019-10-18 - 为什么按照官方文档的云开发方式,调试订阅消息不成功?
之前一直用模板消息,自从最近更新了订阅消息,第一是尝试,一直调试不成功 这是云函数push.js [代码]const cloud = require([代码][代码]'wx-server-sdk'[代码][代码])[代码][代码]cloud.init()[代码][代码]exports.main = async(event, context) => {[代码][代码] [代码][代码]return[代码] [代码]sendSubscribeMessage(event)[代码][代码]}[代码][代码]async [代码][代码]function[代码] [代码]sendSubscribeMessage(event) {[代码][代码] [代码][代码]const sendResult = await cloud.openapi.subscribeMessage.send({[代码][代码] [代码][代码]touser: cloud.getWXContext().OPENID,[代码][代码] [代码][代码]page: [代码][代码]'pages/index/index'[代码][代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]name1: {[代码][代码] [代码][代码]value: [代码][代码]'4542312'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]date3: {[代码][代码] [代码][代码]value: [代码][代码]'2015年01月05日'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]},[代码][代码] [代码][代码]templateId: [代码][代码]'yyFvDHU6xbrik5jQwYDpJuix8OOiBIvNrNTyC6u4anB'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]return[代码] [代码]sendResult[代码][代码]}[代码]这是页面的调用index.js(其中formSubmit是表单提交是点击保存按钮事件) [代码][代码] formSubmit: function(event) { [代码]wx.requestSubscribeMessage({[代码] [代码] [代码][代码]tmplIds: [[代码][代码]'yyFvDHU6xbrik5jQwYDpJuix8OOiBIvNrNTyC6u4anB'[代码][代码]],[代码][代码] [代码][代码]success(res) {[代码][代码] [代码][代码]wx.cloud.callFunction({[代码][代码] [代码][代码]name: [代码][代码]"push"[代码][代码],[代码][代码] [代码][代码]success(res) {[代码][代码] [代码][代码]console.log([代码][代码]"推送成功"[代码] [代码]+ res)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail(res) {[代码][代码] [代码][代码]console.log([代码][代码]"推送失败"[代码] [代码]+ res)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] } 有大佬帮帮忙吗?
2019-10-18 - 数据文档有误吧?
[图片] 看图点链接:https://developers.weixin.qq.com/miniprogram/analysis/?t=201714#指标解释
2019-08-15