调用云函数出错
wx.cloud.callFunction({
name: ‘search’,
data: {
y:y,
m:m,
openid:this.data._openid
},
success: res => {
console.log(’[云函数] [login] user openid: ', res)
this.setData({
income:res.income,
expense:res.expense,
flag: true
})
},
fail: err => {
console.error(’[云函数] [login] 调用失败’, err)
}
})