errCode: -404011 cloud function executio
- 当前 Bug 的表现(可附上截图) err Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -504002, error message Function not found: [getWXContext]; at cloud.callFunction api; - 预期表现 - 复现路径 [代码]isMatchAdmin (cb) {[代码][代码] [代码][代码]Cloud.getUserInfo()[代码][代码] [代码][代码].then((resInfo) => {[代码][代码] [代码][代码]const OPENID = [代码][代码]this[代码][代码].OPENID = resInfo.result.OPENID[代码][代码] [代码][代码]console.log(OPENID)[代码][代码] [代码][代码]cb && cb()[代码][代码] [代码][代码]Cloud.getAdminList({ db: [代码][代码]this[代码][代码].db })[代码][代码] [代码][代码].then((res) => {[代码][代码] [代码][代码]if[代码] [代码](res.data) {[代码][代码] [代码][代码]let isAdmin = [代码][代码]false[代码][代码] [代码][代码]res.data.forEach((item) => {[代码][代码] [代码][代码]if[代码] [代码](item.openId === OPENID) {[代码][代码] [代码][代码]isAdmin = [代码][代码]true[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]isAdmin: isAdmin[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]throw[代码] [代码]new[代码] [代码]Error()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]})[代码][代码] [代码][代码].[代码][代码]catch[代码][代码](err => {[代码][代码] [代码][代码]console.log([代码][代码]'err'[代码][代码], err)[代码][代码] [代码][代码]// this.goError()[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码]- 提供一个最简复现 Demo err Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -504002, error message Function not found: [getWXContext]; at cloud.callFunction api;