1352870
背景:我在做CNode.js的基于ionic的客户端,在做为评论点赞的功能 POST请求:https://cnodejs.org/api/v1/topic/59d62dc5eab6a6536873fec8 返回
{
"id": "59d62de2eab6a6536873fec9",
"author": {
"loginname": "lazyopen",
"avatar_url": "https://avatars1.githubusercontent.com/u/4491617?v=4&s=120"
},
"content": "<div class=\"markdown-text\"><p>哈哈哈哈\nFrom <a href=\"https://github.com/soliury/noder-react-native\">Noder</a></p>\n</div>",
"ups": [
"590c2ed552c3650e042a7fd9"
],
"create_at": "2017-10-05T13:04:34.685Z",
"reply_id": null,
"is_uped": false
}...
这里面的的ups数组应该是点赞的人的信息,然后我想问问这里面的590c2ed552c3650e042a7fd9怎么才能和我的token绑定,换句话说,在不提交新请求的情况下如何判断是否点赞?谢谢。 另:这是我项目地址GitHub传送门,欢迎小伙伴们给我的项目提建议,欢迎PR,欢迎Star