云函数数据库增加不能保存
发布于 5 年前 作者 guiying82 5331 次浏览 来自 问答

调用执行完成后,没有报错信息,但是云数据库中没有新增的数据

let orderData = {

         out_trade_no,

         time_stamp,

         nonce_str,

         sign,

         sign_type,

         body,

         total_fee,

         prepay_id,

         sign,

         status: 0, // 订单文档的status 0 未支付 1 已支付 2 已关闭

         _openid: openid,

       };

       let order = await orderCollection.add(orderData);

回到顶部