收藏
回答

调用url link生成接口,query中带json参数时,生成链接失败?

调用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"}



回答关注问题邀请回答
收藏

2 个回答

  • Presents
    Presents
    2022-10-08

    不支持大括号吧

    2022-10-08
    有用
    回复
  • Damon
    Damon
    2021-07-05

    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}

    2021-07-05
    有用
    回复 1
    • 段进堂
      段进堂
      2021-07-05
      试过了,报错是一样的,【请求参数】:{"path":"/pages/seckill/seckill","is_expire":false,"query":"pageId=93752&storeId=350&channelId=1&isShare=isShare&configId=432&shareStoreInfo=%7B%22storeId%22%3A350%2C%22configId%22%3A432%2C%22isHomeDeliveryEnable%22%3Atrue%7D","expire_interval":365,"expire_type":1}
      【错误信息】:错误代码:40212, 错误信息:invalid query rid: 60e2b11b-75970ec0-194697d9,微信原始报文:{"errcode":40212,"errmsg":"invalid query rid: 60e2b11b-75970ec0-194697d9"}
      2021-07-05
      回复
登录 后发表内容