收藏
回答

第三方平台上传代码提示格式不正确?

为授权的小程序帐号上传小程序代码时,上传参数格式如下:

{"user_version":"1.0.0","user_desc":"进行小程序代码提交测试","ext_json":{"extEnable":true,"extAppid":"wx2fae91d5871b2286","directCommit":false,"extPages":{"pages/logs/logs":{"navigationBarTitleText":"logs"}},"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"Demo","navigationBarTextStyle":"black"},"tabBar":{"list":[{"pagePath":"pages/index/index","text":"首页"},{"pagePath":"pages/logs/logs","text":"日志"}]},"networkTimeout":{"request":10000,"downloadFile":10000},"navigateToMiniProgramAppIdList":["wx2fae91d5871b2286"]},"template_id":"0"}


总是收到提示为:{"errcode":47001,"errmsg":"data format error hint: [kU.EwA0844c393]"}

不太明白哪里格式出现了错误,通过格式化工具解析也并未发现问题,需要将ext_json字段换成字符串吗?还是我上传参数里面配置有问题

最后一次编辑于  08-22
回答关注问题邀请回答
收藏

1 个回答

  • Endless
    Endless
    08-22

    在请求头里面也指定了Content-type application/json

    08-22
    赞同
    回复
问题标签