用公众号开发者对应的appid和secret换取token的时候失败,返回的错误信息如下:
Error: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Error: document.update:fail -501007 invalid parameters. [InvalidParameterValue.InvalidDoc] Document entered in the request is illegal. Please check your request, but if the problem persists, contact us.
后尝试换成小程序的appid和secret,是可以成功获取到小程序的token值的。
同样一段代码可以成功获取小程序的token但无法获取公众号的token。请帮忙看看是什么原因?
没看懂,document.update fail跟获取TOKEN有啥关系?