收藏
回答

小程序直播-添加商品添加并提审goodsInfo must not be empty rid?

接口:https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=

Appid:wx999d755bfcb6f06e

POST传入json

请求内容:

{"goodsInfo":{"coverImgUrl":"3iaXBG2JxU1uqbH4hgOL3RteBWx5DGCZ2DaXmlg-OproAyrMrRijA0aNdfLiza_v","name":"\u56fd\u4e95 53\u5ea6\u81f4\u656c70 \u7ef5\u67d4\u9171\u9999\u767d\u9152 480ml \u5355\u74f6\u88c5","priceType":1,"price":1999,"url":"pages\/index\/index?id=4"}}

请求日志:
2020-12-09 16:57:03
1607504223

Array
(
    [code] => 200
    [status] => OK
    [responseline] => HTTP/1.0 200 OK
    [headers] => Array
        (
            [Connection] => close
            [X-Frame-Options] => SAMEORIGIN
            [X-XSS-Protection] => 1; mode=block
            [X-DNS-Prefetch-Control] => off
            [Strict-Transport-Security] => max-age=15552000; includeSubDomains
            [Keep-Alive] => timeout=5
            [X-Download-Options] => noopen
            [Set-Cookie] => wxuin=07504224171011; path=/; expires=Mon, 18 Jan 2038 19:14:07 GMT
            [Date] => Wed, 09 Dec 2020 08:57:04 GMT
            [Content-Type] => application/json; charset=utf-8
            [Content-Length] => 89
        )


    [content] => {"errmsg":"goodsInfo must not be empty rid: 5fd09160-4ca04291-3dfbd845","errcode":200002}
    [meta] => HTTP/1.0 200 OK
Connection: close
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-DNS-Prefetch-Control: off
Strict-Transport-Security: max-age=15552000; includeSubDomains
Keep-Alive: timeout=5
X-Download-Options: noopen
Set-Cookie: wxuin=07504224171011; path=/; expires=Mon, 18 Jan 2038 19:14:07 GMT
Date: Wed, 09 Dec 2020 08:57:04 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 89


{"errmsg":"goodsInfo must not be empty rid: 5fd09160-4ca04291-3dfbd845","errcode":200002}
)




最后一次编辑于  2020-12-09
回答关注问题邀请回答
收藏

4 个回答

  • 小程序开发-杰罗米
    小程序开发-杰罗米
    2020-12-09

    麻烦把日志内容贴一下文本,以及请求的时间,还有appid也提供下,然后贴一下你请求方式,完整的请求

    2020-12-09
    有用
    回复 2
    • 刘建志
      刘建志
      2020-12-09
      你好,已经补充完毕
      2020-12-09
      回复
    • 小程序开发-杰罗米
      小程序开发-杰罗米
      2020-12-10回复刘建志
      如果您是用postman请求的,麻烦给一下请求的截图,我们看看是怎么请求的,就请求参数填写的方式,截图
      2020-12-10
      回复
  • 丁鹏
    丁鹏
    2023-04-18

    我也是这个问题,请求参数完全没问题,按文档写的

    2023-04-18
    有用
    回复
  • 梓義
    梓義
    2021-05-22

    解决了吗?我也是这个问题

    2021-05-22
    有用
    回复
  • 刘建志
    刘建志
    2020-12-09

    求解答啊。。。。。

    2020-12-09
    有用
    回复
登录 后发表内容
问题标签