@@@待完善@@@

简要描述:

  • 获取指定文章详情(供被分享者阅读)

请求域名:

  • http://test.yunzshop.com

请求URL:

GET/addons/yun_shop/api.php?i=2&mid=null&type=5&route=plugin.article.api.article.get-article&article_id=11&share_uid=0

参数:

参数名 是否必须 类型 说明
i int 店铺ID
article_id int 文章ID
mid (见说明) int 分享者用户ID(用户从会员中心进去文章列表查看文章详情时不需要带share_uid, 当分享该文章时需要带share_uid

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "成功", 
    "data": {
        "id": 11, 
        "uniacid": 6, 
        "category_id": 5, 
        "title": "小程序从媳妇熬成婆,靠的是什么?", 
        "desc": "自1月9号微信小程序正式发布以来", 
        "thumb": "http://test.yunzshop.com/attachment/images/2/2017/04/HQW88VWWTA45JqNaANAn8D8QC4dvxn.png", 
        "content": "<p style="margin: 10px 1em; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(62, 62, 62); font-family: 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; white-space: normal; text-align: justify; letter-spacing: 2px; line-height: 1.5em; box-sizing: border-box !important; word-wrap: break-word !important; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(89, 87, 87);">自1月9号微信小程序正式发布以来,听了很多小程序“吃枣药丸”的声音,因为对流量大户,营销达人来说,小程序真的是“一点用处”都没有,限制太多,没有一个典型案例,像个处女一样这不让摸那不让碰。</span></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(62, 62, 62); font-family: 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; line-height: 25.6px; white-space: normal; box-sizing: border-box !important; word-wrap: break-word !important; background-color: rgb(255, 255, 255);"><br style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"/></p><p style="margin: 10px 1em; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(62, 62, 62); font-family: 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; white-space: normal; text-align: justify; letter-spacing: 2px; line-height: 1.5em; box-sizing: border-box !important; word-wrap: break-word !important; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(89, 87, 87);">诚然,微信的“克制”,又或者说张小龙的“克制”无疑是微信的一贯作风,用户体验是微信标榜的至高准则,这点我们不难从公众号上略窥一二。而在上个月27、28号两天,小程序一连上线11项新能力,于是又有人惊呼,微信这是要自己打脸么?不是说好没有线上流量的嘛?</span></p><div><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(89, 87, 87);"><br/></span></div><p><br/></p>", 
        "virtual_created_at": 1491926400, 
        "author": "编辑小芸 ", 
        "virtual_read_num": 4, 
        "read_num": 0, 
        "virtual_like_num": 3, 
        "like_num": 0, 
        "link": "", 
        "per_person_per_day": null, 
        "total_per_person": null, 
        "point": null, 
        "credit": null, 
        "bonus_total": null, 
        "bonus_total_now": null, 
        "no_copy_url": null, 
        "no_share": null, 
        "no_share_to_friend": null, 
        "keyword": "小程序", 
        "report_enabled": 0, 
        "advs_type": null, 
        "advs_title": null, 
        "advs_title_footer": null, 
        "advs_link": null, 
        "advs": "", 
        "state": 1, 
        "state_wechat": 1, 
        "created_at": "2017-04-12 10:56:18", 
        "updated_at": "2017-04-12 10:56:18", 
        "belongs_to_category": {
            "id": 5, 
            "uniacid": 2, 
            "name": "广告", 
            "member_level_limit": 0, 
            "commission_level_limit": null, 
            "created_at": null
        }
    }
}

错误时返回:

{
    "result": 0,
    "msg": "文章已经关闭!",
    "data": [ ]
}
{
    "result": 0,
    "msg": "文章数据不存在!",
    "data": [ ]
}
{
    "result": 0,
    "msg": "请传入正确参数!",
    "data": [ ]
}
{
    "result": 0,
    "msg": "对不起, 您所在的地理区域暂无阅读文章的权限!",
    "data": [ ]
}
{
    "result": 0,
    "msg": "您当前还没获得阅读权限, 本篇文章仅限"皇冠"等级的会员阅读!",
    "data": [ ]
}

返回参数说明:

参数名 类型 说明
id int 文章ID
uniacid int 公众号ID
category_id int 文章分类ID
title string 文章标题
desc string 封面描述
thumb string 封面图片
content string 文章内容
virtual_created_at int 虚拟发布时间
author string 作者
virtual_read_num int 虚拟阅读数
read_num int 真实阅读数
virtual_like_num int 虚拟点赞数
like_num int 真实点赞数
link string 原文链接
per_person_per_day int 每人每天限制参与次数
total_per_person string 每人总共参与次数
point int 奖励积分
credit int 奖励余额
bonus_total int 最大可获得金额
bonus_total_now int 目前已获得金额
no_copy_url int 禁止页面复制链接
no_share int 禁止分享到朋友圈
no_share_to_friend int 禁止分享给好友
keyword string 关键字
advs_type int 营销产品显示设置
advs_title string 营销产品标题
advs_title_footer string 营销产品底部标题
advs_link string 营销产品链接
advs string 幻灯片图片及链接组成的数组转化的json数据
state int 是否在手机上开启
state_wechat int 是否在微信上开启

备注: