https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/staticstorage/jump-miniprogram.html
按上面这个文档里的那个云函数public写的。
间歇报错。
返回结果:
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: 85401 | errMsg: openapi.urlscheme.generate:fail time limit between 1min and 1year rid: 644209b9-7ee08408-171b5218\n at callWXOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:2397:31)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","statusCode":430}
请参考https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-scheme/urlscheme.generate.html#%E4%BA%91%E8%B0%83%E7%94%A8
好的我自己解决了。返回时间的误差导致这个expiretime 的时间有概率会没大于1分钟
把这个60调大点就ok了。。