首先通过  https://api.weixin.qq.com/wxa/get\_category?access\_token=TOKEN 获取的数据为

{

  • errcode: 0,

  • errmsg: “ok”,

  • category_list: [

{

first_class: “工具”,

second_class: “记账”,

third_class: “”

}

]

}

通过   https://api.weixin.qq.com/wxa/submit\_audit?access\_token=TOKEN   将第三方代码包提交审核时 数据为

{

“item_list”: [

{

“address”:“pages/index/index”,

“tag”:“工具”,

“first_class”: “工具”,

“second_class”: “记账”,

                        “third_class” : “”,

“title”: “首页”

}

]

}

显示结果为{“errcode”:85008, “errmsg” : “category is in invalid format hint: [AbG2Ja0284e626]”}

网友回复:

刘***:

换了一个授权小程序测试

通过  https://api.weixin.qq.com/wxa/get\_category?access\_token=TOKEN 获取的数据为

{

  • errcode: 0,

  • errmsg: “ok”,

  • category_list: [

            {        

first_class: “工具”,

second_class: “信息查询”

 },

{

first_class: “教育”,

second_class: “教育信息服务”

}

]

}

通过   https://api.weixin.qq.com/wxa/submit\_audit?access\_token=TOKEN   将第三方代码包提交审核时 数据为

{

“item_list”: [

{

“address”:“pages/index/index”,

“tag”:“工具”,

“first_class”: “工具”,

“second_class”: “信息查询”,

“title”: “首页”

}

]

}

显示结果 同为{“errcode”:85008, “errmsg” : “category is in invalid format hint”}

范***:

same issue

范***:

楼主也是 python 吧,是编码问题,按照微信对中文的一贯处理习惯,是没法很好处理 /u 这样的编码的。

需要:

json.dumps(payload, ensure_ascii=False).encode(“utf-8”)

刘***:

多谢

我用的是php,我也试试特殊字符的问题

刘***:

问题的确出现在中文字符上,不处理它就可以了。多谢!

刘***:系统记录

刘***:系统记录

夏***:

请问php怎么解决? @刘俊宇 

刘***:

json_encode($data,JSON_UNESCAPED_UNICODE)

夏***:

可以了,感谢!

爱盈利(aiyingli.com)移动互联网具影响力的盈利指导网站。定位于服务移动互联网创业者,移动盈利指导。我们的目标是让盈利目标清晰可见!降低门槛,让缺乏经验、资金有限的个人和团队获得经验和机会,提高热情,激发产品。