调用url link生成接口,query中带json参数时,生成链接失败,如下参数
【请求参数】:{"path":"/pages/seckill/seckill","is_expire":false,"query":"pageId=93752&storeId=350&channelId=1&isShare=isShare&configId=432&shareStoreInfo={'storeId':350,'configId':432,'isHomeDeliveryEnable':true}","expire_interval":365,"expire_type":1}
【错误信息】:错误代码:40212, 错误信息:invalid query rid: 60e2a6ff-5b0280d6-2e9155ba,微信原始报文:{"errcode":40212,"errmsg":"invalid query rid: 60e2a6ff-5b0280d6-2e9155ba"}
不支持大括号吧
用encodeURIComponent 一下之后再试下?
encodeURIComponent("{'storeId':350,'configId':432,'isHomeDeliveryEnable':true}")
{"path":"/pages/seckill/seckill","is_expire":false,"query":"pageId=93752&storeId=350&channelId=1&isShare=isShare&configId=432&shareStoreInfo=%7B'storeId'%3A350%2C'configId'%3A432%2C'isHomeDeliveryEnable'%3Atrue%7D","expire_interval":365,"expire_type":1}
【错误信息】:错误代码:40212, 错误信息:invalid query rid: 60e2b11b-75970ec0-194697d9,微信原始报文:{"errcode":40212,"errmsg":"invalid query rid: 60e2b11b-75970ec0-194697d9"}