行了,找到原因了 cloud test不能绑定小程序上下文 submit必须绑定mini app上下文才能执行
内容接入API能否通过云函数调用https://developers.weixin.qq.com/miniprogram/introduction/widget/we-search/WXAPAGES.html 该方法能否在云函数中调用? wxaapi_submitpages wx-server-sdk中是否包含该方法入口? 更新 尝试用cloud.openapi.search.submitPages调用 在本地环境和测试(云)环境下均成功,但是在正式(云)环境下失败 异常信息: { "errCode": -501001, "errMsg": "search.submitPages:fail unknown response [object Object]" } REPORT RequestId:f6606925-ca25-4efb-b83a-b68c2b3de0cc Duration:124ms Memory:256MB MemUsage:27.102219MB END ERROR RequestId:f6606925-ca25-4efb-b83a-b68c2b3de0cc Result:{"errCode":1,"errMsg":"user code exception caught","stackTrace":"Error: errCode: -501001 resource system error | errMsg: search.submitPages:fail unknown response [object Object]\n at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:444:15)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
2022-07-06