+++
post:/like/comment?access-token=:access-token
*int:content_id=1#文章id
*int:catid=536#文章分类id
*int:comment_id=1#评论d
:access-token=92ece3ec585b1b0d433a98d7d8e93410#安全验证字符串
<<<
success
{
"success": true,
"data": {
"message": "点赞成功!"
}
}
<<<
error
{
"success": false,
"data": {
"name": "Unauthorized",
"message": "access-token是一个无效的凭证.",
"code": 0,
"status": 401,
"type": "yii\\web\\UnauthorizedHttpException"
}
}
+++
### header头信息:
| 参数名 | 参数值 |
| --- | --- |
| Accept | application/json |
| DeviceId | 310995000000000|
| Sign | e67ce2f83ca715552c7040c6801e020f |
注意:
**access-token可以为空 但是为空的情况下无法判断是否已点过赞 最好能在客户端做判断**