http://10.222.3.228:8080/wxapp/getProjectsInfo 外网无法访问
云函数本地测试正常,非本地测试调用失败,超时?Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID aa11a287-9923-11eb-9e5f-5254000ead67, cloud function service error code -504003, error message Invoking task timed out after 8 seconds; at cloud.callFunction api; 这个云函数时用来发送http请求,本地测试很快就收到结果了,处理起来也没有问题,直接调用就这样了,大家由遇到类似情况吗 [图片]本地测试结果 [图片]云函数
2021-04-15你还判断文件大小啊
wxacode.getUnlimited小程序码下载图片文件大小不一致,有没可能保持下载文件大小?API: wxacode.getUnlimited在相同的请求参数下: 每次触发下载下来的文件大小都不一致 [图片][图片] [图片]
2021-04-15https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.sort.html#%E7%A4%BA%E4%BE%8B 聚合是sort
云函数使用orderBy 提示orderBy is not a function?云函数怎么按日期排序获取数据库的数据啊,我存储到数据库的日期格式是这样 2021-04-13T11:26:11.109Z //中国标准时间 [图片] 使用过 order进行排序 到出来的结果不对,然后换成了orderBy,在云端测试的时候直接报错了 提示 orderBy is not a function 云函数部分代码如下: [图片] 呜呜呜求助各位大佬了
2021-04-15[图片]
云函数查询中,and有必要吗?以下两种方式返回结果相同,and 貌似没有必要,如何理解官方文档中“通常需要显示使用 and 是用在有跨字段或操作的时候”?若有必要,请举例说明下。还有怎么算是‘跨字段查询’? const _ = db.command db.collection("student").where(_.and([ _.or({ "balance":_.gt(7) }), _.or({ "sname":"Tom" }) ])).get(); ======================================= db.collection("student").where({ "balance":_.gt(7), "sname":"Tom" }).get();
2021-04-15文件没保存吧
关于触发器上传不了的问题?请假大佬,第一次使用触发器,直接用的文档里的示例程序,为什么还是报错呢?谢谢 [图片]
2021-04-14https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/aggregate/AggregateCommand.size.html
云数据库中如何查询数组字段里边的对象数量?arr.length如何查询我的数据结构是这样的,有表 table 里边字段是 _id,arr1;arr1里边都是一个个对象; 第一数据 _id:1,arr1:[{t:1},{t:2},{t:3}] 第2数据 _id:2,arr1:[{t:12},{t:22},{t:32}] 第2数据 _id:3,arr1:[{t:212},{t:22},{t:32},{t:3},{t:4}] 我怎么用数据库查询出来 _id:1,arr1.length:3 _id:2,arr1.length:3 _id:3,arr1.length:5 或者arr1.length:11 总的对象数量是11;
2021-04-14app.globalData
新手提问 如何使用app.js中的数据如何使用?小程序页面要获取app.js中的数据 [图片] App({ onLaunch: function () { if (!wx.cloud) { console.error('请使用 2.2.3 或以上的基础库以使用云能力') } else { wx.cloud.init({ env: 'kk-cloud-test', traceUser: true, }) } this.globalData = { openid: "", //用户唯一标识 avatarUrl: "", //头像 nickName: "" //昵称 } }, //获取openid方法,再index中调用过一次 getOpenId: function () { wx.cloud.callFunction({ name: 'login', data: {}, success: (res => { console.log('[云函数] [login] user openid: ', res.result.openid) this.globalData.openid = res.result.openid console.log(this.globalData.openid); }), fail: err => { console.error('[云函数] [login] 调用失败', err) } }) } }) 需要app.js中的数据的页面代码: const app = getApp(); Page({ data: { name:"昵称", src:"../../images/logo.png" }, onLoad: function (options) { this.setData({name:app.nickName}); this.setData({src:app.avatarUrl}); console.log("方式1-id"+app.openid) console.log("方式1-nc"+app.nickName) console.log("方式2-id"+app.globalData.openid); console.log("方式2-nc"+app.globalData.nickName); }, //收藏列表按钮 btn_course:function(e){ wx.navigateTo({ url: 'collection_course/collection_course', success: (result) => {}, fail: (res) => {}, complete: (res) => {}, }) } }) 为什么获取同一地方的数据,打印结果却不一样? 相关赋值代码: 代码块1 bindGetUserInfo: function(e) { var that = this wx.getUserProfile({ desc: '用于完善会员资料', success: (res) => { console.log("新登入方法profile"); console.log(res); app.nickName=res.userInfo.nickName; app.avatarUrl=res.userInfo.avatarUrl; console.log("1"+app.nickName); that.setData({ isHide: false }); }, 代码块2 const app = getApp(); onLoad: function (options) { app.getOpenId() } 结果: [图片] 所以到底如何获取app.js中的globalData?
2021-04-14传了也得传对,data传json,不是json字符串,文档都不看
如何解决订阅推送失败参数为空?如图我是有传参数的显示为isemtpy[图片]
2021-04-14开始日期比结束日期大?
getUserPortrait时间范围问题?问题如图所示,时间范围为开发文档所说的6天可用范围,但是还是报日期范围出错 [图片] 把日期改为昨天时间到7天前的日期也是同样报错,昨天用着是好的,今天怎么弄都不行 [图片] 只有设置为0天(1天可以读取),麻烦大佬帮我看看,感激不尽! [图片]
2021-04-14用错access_token了
获取直播列表为什么接口一直报48001?已经添加组件 [图片] [图片] 已发布上线了 [图片] 接口报错 [图片] 这是什么原因?
2021-04-14