收藏
回答

小程序订阅消息报错

完全按照文档给的参数格式发送的,为什么一直提示参数空呢?

下面是我发送的参数

{"touser":"oy8054-FHKt-wFw0WTfzae21HxiM","template_id":"woWisu9UFr5wTrLyULXXWiM0ki-BWq8Rogghb2j6Oyw","page":"null","data":{"name01": {"value":"某某"},"amount01": {"value":"¥100"},"thing01": {"value":"广州至北京"},"date01": {"value":"2018-01-01"}}}

下面是返回值

{"errcode":47003,"errmsg":"argument invalid! data.thing1.value is emtpy rid: 5fe044f1-09f35acc-2ee4dbf1"}

求大神支招

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

2 个回答

  • Samuel.Schrödinger
    Samuel.Schrödinger
    2020-12-21

    报错47003模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错,,都采取模板了,字段对应检查吧

    2020-12-21
    有用
    回复
  • Mr.Zhao
    Mr.Zhao
    2020-12-21

    name01 改成 name1 0不用加

    2020-12-21
    有用
    回复 8
    • ℡月饼
      ℡月饼
      2020-12-21
      key必须是一样的吗,改了后提示又变了
      {"errcode":47003,"errmsg":"argument invalid! data.name2.value is emtpy rid: 5fe04719-2ccf17d6-0ed56bc6"}
      2020-12-21
      回复
    • Mr.Zhao
      Mr.Zhao
      2020-12-21回复℡月饼
      一样啊 name1 name2 是几就是几
      2020-12-21
      回复
    • ℡月饼
      ℡月饼
      2020-12-21
      {"touser":"oy8054-FHKt-wFw0WTfzae21HxiM","template_id":"woWisu9UFr5wTrLyULXXWiM0ki-BWq8Rogghb2j6Oyw","page":"null","data":{"name1": {"value":"某某"},"amount1": {"value":"¥100"},"thing1": {"value":"广州至北京"},"date1": {"value":"2018-01-01"}}}
      {"errcode":47003,"errmsg":"argument invalid! data.name2.value is emtpy rid: 5fe0487a-4e29ad8e-321d2224"}
      还是不行
      2020-12-21
      回复
    • Mr.Zhao
      Mr.Zhao
      2020-12-21回复℡月饼
      没看到你改啊  你怎么全是1?
      2020-12-21
      回复
    • ℡月饼
      ℡月饼
      2020-12-21回复Mr.Zhao
      这样也是不行
      {"touser":"oy8054-FHKt-wFw0WTfzae21HxiM","template_id":"woWisu9UFr5wTrLyULXXWiM0ki-BWq8Rogghb2j6Oyw","page":"null","data":{"name1": {"value":"339208499"},"name2": {"value":"2015年01月05日"},"name3": {"value":"TIT创意园"},"name4": {"value":"广州市新港中路397号"}}}
      {"errcode":47003,"errmsg":"argument invalid! data.thing1.value is emtpy rid: 5fe04a79-353c1acb-664e2960"}
      2020-12-21
      回复
    查看更多(3)
登录 后发表内容
问题标签