检测是否可以收藏

javascript 复制代码
WXAPI.cmsArticleFavCheck(token, newsId)
  • token 当前用户登陆凭证
  • newsId 文章ID

根据返回的 code 判断:

  • 0 已收藏
  • -1 未收藏