收藏
回答

小程序直播商品添加并提审报错200002,什么原因?

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

Appid:wx2d400c2e471f40ce

下面两种方式都是报[content] => {"errmsg":"goodsInfo must not be empty rid: 5fd09160-4ca04291-3dfbd845","errcode":200002}错误呀,这是什么原因呀

(

    [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=09592278676935; path=/; expires=Mon, 18 Jan 2038 19:14:07 GMT

            [Date] => Sat, 02 Jan 2021 12:57:58 GMT

            [Content-Type] => application/json; charset=utf-8

            [Content-Length] => 89

        )


    [content] => {"errmsg":"goodsInfo must not be empty rid: 5ff06dd6-05f6986e-4063ce73","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=09592278676935; path=/; expires=Mon, 18 Jan 2038 19:14:07 GMT

Date: Sat, 02 Jan 2021 12:57:58 GMT

Content-Type: application/json; charset=utf-8

Content-Length: 89


{"errmsg":"goodsInfo must not be empty rid: 5ff06dd6-05f6986e-4063ce73","errcode":200002}

)


POST传入json

{"goodsInfo":{"coverImgUrl":"wzOwRF6Zwtmme1xK9TfOGYTkTC3Do5gBPt08vvCJCqhQuGtoE9ADec1oRlLlEEcQ","name":"\u3010\u65d7\u8230\u6b3e\u3011\u6ce1\u811a\u9e2d\u53ef\u6298","priceType":1,"price":"298.00","url":"pages\/goods\/detail\/index?id=4307"}}

{"goodsInfo":{"coverImgUrl":"x8vXYjjEBAw8yi8iPd5bpb1hlosx9as3VMdAdvChVLO4iTy3LpGtQ8pbAo3aONtW","name":"【旗舰款】泡脚鸭可折","priceType":1,"price":"298.00","url":"pages\/goods\/detail\/index?id=4307"}}


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

1 个回答

  • 小程序开发-杰罗米
    小程序开发-杰罗米
    2021-01-05

    你好,你这边现在还会吗?

    2021-01-05
    有用
    回复 1
    • 2023
      2023
      2021-01-05
      解决了  Content-Type application/json 格式就行
      2021-01-05
      回复
登录 后发表内容
问题标签