云函数本地调用、postman测试都是正常的。线上请求报错500 Request failed with status code 500
别的接口都正常只有这一个报错
postman:

本地:
线上:
代码:
export function addArticle(data) {
return request({
url: '/addArticle',
method: 'post',
data: data
})
}
addArticle({ ...this.postForm, display_time: parseTime(this.postForm.display_time, '{y}-{m}-{d} {h}:{i}') }).then(res => {
this.$notify({
title: '成功',
message: '发布文章成功',
type: 'success',
duration: 2000
})
})
}