creatorder(){
DB.collection('order').add({
data:{
nickname:wx.getStorageSync('user').nickName,
phone:wx.getStorageSync('userphone'),
ordertime:util.formatTime(new Date()),
oodianming:this.data.abc.MDname,
ooname:this.data.canghao,
oocode:this.data.cangcode,
oozujin:this.data.danjia,
ooyajin:this.data.yajin,
ooprice:this.data.zongjia,
starttime:this.data.qzrq,
status:0,
deadtime:this.data.dqrq,
canghaoid:this.data.oid1,
cangxinid:this.data.oid2,
dianmingid:this.data.oid3,
}
}).then(res=>{
console.log('创建订单云函数的返回数据',res)
wx.cloud.callFunction({
name:'updatecanglist',
data:{
nnn:this.data.upid,
mmmm:this.data.upstore,
canghaoid:this.data.oid1,
cangxinid:this.data.oid2,
}
}).then(res=>{
console.log("执行了删除仓号云函数")
this.gopay()
}).catch(res=>{
console.log("执行删除仓号云函数失败")
})
}).catch(res=>{
wx.hideLoading()
wx.showToast({title: '订单创建失败',})
}) },
这里add会执行失败,并不是直接执行失败(是执行成功到.then{{}}里面的内容都执行)只是添加的记录不存在,偶尔出现此类情况,大概百分之一二十
失败的错误日志是?