原来小程序有一个规则是 http://www.abc 绑定到pages/home/index
现在想要修改这个规则为 http://www.abc 绑定到pages/mall/index
代码实现过程如下:
1、首先使用查询接口,查询http://www.abc 这个规则绑定的页面规则信息
2、copy查询到的规则信息到新的对象,修改is_edit=1,调用绑定接口
结果:
报参数错误 {"errcode":40097,"errmsg":"invalid args rid: 62d127c9-4acdc63d-6dff250e"}
请问那个参数有误,应该如何修改呢
这是请求包信息:{"debug_url":["https://qrse.keruyun.com/mini/20220507006886880/test"],"is_edit":1,"open_version":3,"path":"pages/orderfood/index","permit_sub_rule":2,"prefix":"https://qrse.keruyun.com/mini/20220507006886880/","state":2}
请参考接口文档https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/jumpqrcode-config/addJumpQRCode.html正确填写参数。
开发者也可以自查rid信息https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/getRidInfo.html
{"errcode":40097,"errmsg":"invalid args rid: 62d136c7-2887bf35-5206a942"}
原来的path是这个“pages/home/index”。
获取发布状态可调用接口https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/jumpqrcode-config/getJumpQRCode.html