- 小程序生成二维码,有一些能生成,有一些报错?
app_base:MP page:pages/pallet/CommonPallet?id=37 相同类型的参数,只是id值不一样,有一些能正常生成,有一些无法生成,出现报错《 errcode=41030 , errmsg=invalid page rid: 6188f568-1b4deee0-396085d4 》
2021-11-08 - 小程序订阅消息使用postman测试正常,使用代码测试获取不到openid?
使用postman测试正常,使用代码测试的时候报获取不到openid,或openid为空,使用自己的client获取传过来的参数是正常的, errcode:40003 errmsg:invalid openid rid: 60754300-6c199ef6-616a2735 client发起请求 thing31.Value = "力顶天地" thing3.Value = "回复消息" time4.Value = "2020-01-01 12:20" data1.Thing2 = thing31 data1.Time4 = time4 data1.Thing3 = thing3 message.Data = data1 message.Template_id = "QMd_2_UXn0mYnB5hHWTGVXgqE1BMeXPv08FO3YFHiOo" message.ToUser = "ocI0k0UScnY4vqLnLTwUwzOWejzY" message.Page = "/pages/product_info/product_info?id=027820373b8f88b9ffd31517ed65d1a8" message.Miniprogram_state = "developer" wxMessage, err = json.Marshal(message) if err != nil { e.Error(http.StatusServiceUnavailable, "json转化错误", *c) return } str, err = WxToken() client := http.Client{} resp, err = client.Post(fmt.Sprintf("https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=%s", str), "application/json", bytes.NewBuffer(wxMessage)) 上面的请求地址已更换成自己的 server端接收参数 router := gin.Default() router.POST("/test", func(c *gin.Context) { var message Message err := c.Bind(&message) if err != nil { fmt.Println(err) } me,_ := json.Marshal(message) fmt.Println(string(me)) c.JSON(http.StatusOK,me) }) router.Run(":8888") 获取的参数 {"touser":"ocI0k0UScnY4vqLnLTwUwzOWejzY","template_id":"QMd_2_UXn0mYnB5hHWTGVXgqE1BMeXPv08FO3YFHiOo","data":{"thing2":{"value":"力顶天地"},"thing3":{"value":"回复消息"},"time4":{"value":"2020-01-01 12:20"}},"page":"/pages/product_info/product_info?id=027820373b8f88b9ffd31517ed65d1a8","miniprogram_state":"developer"}
2021-04-13 - 使用当前小程序下的openid给用户推送消息,报错
https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html 确定当前openid为当前小程序的openid,并且发送数据格式跟文档上一致,但是报错[图片]
2021-03-29 - 使用小程序获取的openid进行发送
https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html 使用参数跟api文档上的参数是一致的,但是报openid错误或未空 [图片]
2021-03-29