- 输入源“/body/appid”映射到字段“公众号ID”必填性规则校验失败,此字段为必填项 ?
调用https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi返回的报错信息 “输入源“/body/appid”映射到字段“公众号ID”必填性规则校验失败,此字段为必填项”,怎么解决?求大佬指点
2022-01-02 - CMS导入数据报数据格式错误,bug?
[图片] 这是导入的数据,花材列表对应的是flowerAry字段 [ { "_id": "fa24ce1a6185e545047af44b5a648d1b", "orderId": "fa24ce1a6185e545047af4477be662da", "flowerAry": [ { "count": 61, "flowerName": "坦尼克", "from": "拍市", "images": [ "cloud://cloud1-9ggo18myb0215df8.636c-cloud1-9ggo18myb0215df8-1307909104/flower-images/dantoumei/tannike/tannike1.jpg" ], "level": "D", "price": 21 } ], "createTime": { "$date": "2021-11-06T02:15:33.514Z" } }, { "_id": "859059a561862881040a94182464b197", "orderId": "859059a561862881040a941446bdd017", "flowerAry": [ { "count": 51, "flowerName": "卡罗拉", "from": "拍市", "images": [ "cloud://cloud1-9ggo18myb0215df8.636c-cloud1-9ggo18myb0215df8-1307909104/flower-images/dantoumei/kaluola/kaluola1.jpg" ], "level": "C", "price": 31.5 } ], "createTime": { "$date": "2021-11-06T07:02:25.829Z" } } ]
2021-11-08 - CMS导入csv文件报错
non-quoted-f[图片]ield
2021-11-08 - CMS数据格式报错?
上传到CMS后报如下错误: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Bcount%2C%20flowerName%2C%20from%2C%20images%2C%20level%2C%20price%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
2021-11-07 - 创建订单,减库存时使用循环+事务,当循环数组length达到50就直接崩了,如何破解啊?
for (let i = 0; i < cartInfoAry.length; i++) { const item = cartInfoAry[i]; // 删除购物车数据 const deleteCartRes = await transaction.collection(cartCollectionName).doc(item.cartId).remove(); if (deleteCartRes.stats.removed > 0) deleteCartArr.push(item.cartId); // 减库存和增销量 const minusStockRes = await transaction.collection(levelCollectionName).doc(item.levelId).update({ data: { stock: _.inc(-item.count), saleVolume: _.inc(item.count) } }) if (minusStockRes.stats.updated > 0) minusStockArr.push(item.levelId); } [图片]
2021-11-04 - 云开发,微信支付成功后为什么没有触发回调函数?
// 云函数代名称pay const res = await cloud.cloudPay.unifiedOrder({ "body": goodsInfo, "outTradeNo": (Math.random() * 10000000000 + new Date().getTime()).toFixed(0), "spbillCreateIp": "127.0.0.1", "subMchId": "*****", "totalFee": totalPrice, "envId": "*******", "functionName": "payCallback" }) // 小程序端调用支付接口 pay(orderId, totalPrice) { wx.cloud.callFunction({ name: "pay", data: { goodsInfo: "微信支付测试", totalPrice: 1 } }).then(res => { const payment = res.result.payment wx.requestPayment({ ...payment, }).then(res => { }) }).catch(err => { console.log(err) }) }, payCallback回调函数没有被触发,基础库2.14.1
2021-10-24 - 云开发中,支付成功后的回调函数"functionName": "pay_cb"没有调用
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/open/pay/CloudPay.unifiedOrder.html 支付成功后的回调函数"functionName": "pay_cb"没有调用,什么情况
2021-10-23