{ "total_count": TOTAL_COUNT, "item_count": ITEM_COUNT, "item": [{ "media_id": MEDIA_ID, "content": { "news_item": [{ "title": TITLE, "thumb_media_id": THUMB_MEDIA_ID, "show_cover_pic": SHOW_COVER_PIC(0 / 1), "author": AUTHOR, "digest": DIGEST, "content": CONTENT, "url": URL, "content_source_url": CONTETN_SOURCE_URL }, //多图文消息会在此处有多篇文章 ] }, "update_time": UPDATE_TIME }, //可能有多个图文消息item结构 ]
}
这个里面的update_time 是什么类型的数据?
但是实际调用的时候发现数据是一个数值类型的,看起来像是时间戳,但是后台转换时间格式(yyyyMMdd)的时候显示的是 1970年01月的
看文档说是最后更新时间没有明确说明格式,且没什么参考价值。又没有地方可以问。所以过来问一下
发一个瞅瞅
华林师兄绑卡绑卡棠梨煎雪网络
<\/p>","content_source_url":"","thumb_media_id":"iaLF3PNTK8kpfZTfMQXUkWbR9e1GDtB3BYvzLc6pmeo","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzI3NjQzMTU3Mw==&mid=100000005&idx=1&sn=652c9b6a7e9324ec83c1b1d7f39c453b&chksm=6b74d6bf5c035fa9819dbddfa8fc9f6745323ff9c9678c9e2a57e2262ff151539ad596d1c819#rd","thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/xBxF9IgaSax5Z21TjWxZ3TeCtJWK0AbgXfj2bcQQYZ400Av4mVa3ibvNibks3diaPNGEEicC26nEmzlN9lC8mmicSXg\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0}],"create_time":1576486488,"update_time":1576486541},"update_time":1576486541},{"media_id":"iaLF3PNTK8kpfZTfMQXUkeT__rSv5gfRXTv6_o_vXO8","content":{"news_item":[{"title":"素材测试","author":"","digest":"测试中","content":"
测试中
<\/p>
< img class=\"rich_pages js_insertlocalimg\" data-ratio=\"1.7777777777777777\" data-s=\"300,640\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/xBxF9IgaSayMIvHh3iacibE9ic1GM61SZewU2KkHiccgcYLHlffAlJm9Du47j5mTEsCeGBDIGyKUQhtfF6ADVg9J6Q\/640?wx_fmt=jpeg\" data-type=\"jpeg\" data-w=\"1242\" style=\"\"><\/p>
<\/p>","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzI3NjQzMTU3Mw==&mid=100000002&idx=1&sn=67fd48ce40536f3609daab9f72141afa&chksm=6b74d6b85c035faef55f6300ae907e2be8f081a7cec2c98cc0f58ebf79f4af718b69cb065529#rd","thumb_url":"","need_open_comment":1,"only_fans_can_comment":0}],"create_time":1576116439,"update_time":1576116439},"update_time":1576116439}],"total_count":2,"item_count":2}]
long l = (long)1576486541 *1000;
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(l) );