到官方小程序创建了一个商品,对比了以下,不用编码: url: pages/index/index ; 错误写罚:/pages/index/index
goods url invalid rid: 667f59ed-329d5986-5ef667e4?小程序直播添加商品: 第一种:看文档说url参数需要编码:问号包括问号后面的都编码了 {"goodsInfo":{"coverImgUrl":"lcdHhYI4jGj3NdL7ji-uSHPl5afOpBGyJWxAT4nZdzsngKKTlGJQk9JppB2hnvmK","name":"121121","priceType":1,"price":111,"price2":0,"url":"/pages/shopping/products/products%3Fcategoryid%3D3ef2276f24ad45329cb79f02d2e9ab73"}} 返回错误信息:{"errmsg":"goods url invalid rid: 667f537b-63c86de1-22345cfd","errcode":300007} 第二种:从参数id后面的等号开始编码 {"goodsInfo":{"coverImgUrl":"lcdHhYI4jGj3NdL7ji-uSLx9PfUF3RYaQmKLmLUlvZMX25SCQjXZexs1jp-9Zuig","name":"测试商品","priceType":1,"price":168,"price2":0,"url":"/pages/shopping/products/detail/detail?id%3Db635c647649041859bc74884f54ef2f3"}} 还是报错:{"errmsg":"goods url invalid rid: 667f5beb-54a599b4-27108188","errcode":300007} 请问,我这个参数要编码码? 我真的无语了。真的浪费好多时间。
06-29