微信小程序的问题,大神们能解决一下吗

Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID eb177005-6dbb-11ea-bad0-52540029942f, cloud function service error code -504002, error message Cannot read property 'then' of undefined
TypeError: Cannot read property 'then' of undefined

https://jingyan.baidu.com/article/48a420572cf763a925250466.html

具体可参考http://www.itcdns.cn/problem/detail/1585051181928