- 云函数查询数据库的最后一千条,突然出错,已正常运行大半年,最近突然返回的数据会跳过很多记录.....
如下在云函数中代码,期望返回的是最后1000条记录,之前都是正常返回的,最近突然出现返回的记录里面漏掉很多的情况? 总数还是1000条,但根本不是最新的1000条,而是跳着来。很奇怪。 [图片]
2022-11-18 - wx.cloud.callFunction这个函数调用无反应?
wx.showLoading({ title: '加载中', }) log.info("uni_order_num:", that.data.uni_order_num, "total_fee", that.data.selectedInfo.selectedFee) try { //console.log("uni_order_num:", that.data.uni_order_num, "total_fee", that.data.selectedInfo.selectedFee) wx.cloud.callFunction({ name: "payment", data: { command: "pay", out_trade_no: that.data.uni_order_num, body: '充电付款', total_fee: that.data.selectedInfo.selectedFee }, success(res) { console.log("云函数payment提交成功:", res.result) wx.hideLoading() that.pay(res.result) }, fail(res) { console.log("云函数payment提交失败:", res) wx.hideLoading() } }) } catch(error) { wx.hideLoading() console.log(error) log.warn(error) } }, 上述这段代码调用后, log.info("uni_order_num:", that.data.uni_order_num, "total_fee", that.data.selectedInfo.selectedFee)这行打印能在公众平台上看到,但是没有后面的云函数的调用信息,从云平台上看不到,这个问题是偶现的,不是每个手机都会出现,但出现问题的手机是必现的,有哪位大神能知道是为什么吗?
2022-03-08