简要描述:

  • 供应链-知识库-通过文章id获取文章详情

请求URL:

GET/route=plugin.project-template.frontend.knowledge.articleDetatil&id=1

参数:

参数名 是否必须 类型 说明
id int 知识库id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "last_id": null,
        "next_id": 2,
        "goods": [
            {
                "id": 3670,
                "uniacid": 5,
                "brand_id": 0,
                "type": 1,
                "status": 0,
                "display_order": 0,
                "title": "测试商品",
                "thumb": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022818/1660808467yz_supply.png",
                "thumb_url": "a:1:{i:0;s:89:\"https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022818/1660808469yz_supply.png\";}",
                "sku": "个",
                "description": "",
                "content": "",
                "goods_sn": "",
                "product_sn": "",
                "market_price": "111.00",
                "price": "20.00",
                "cost_price": "50.00",
                "stock": 10000,
                "reduce_stock_method": 0,
                "show_sales": 0,
                "real_sales": 0,
                "weight": "0.00",
                "has_option": 1,
                "is_new": 0,
                "is_hot": 0,
                "is_discount": 0,
                "is_recommand": 0,
                "is_comment": 0,
                "is_deleted": 0,
                "created_at": "2022-08-24 15:37:52",
                "deleted_at": null,
                "updated_at": "2022-08-24 15:37:56",
                "comment_num": 0,
                "is_plugin": 0,
                "plugin_id": 120,
                "virtual_sales": 0,
                "no_refund": 0,
                "need_address": 0,
                "type2": 1,
                "old_id": null,
                "volume": null,
                "alias": "",
                "is_hide": 1,
                "status_name": "下架"
            }
        ],
        "article": {
            "id": 1,
            "title": "111",
            "created_at": null,
            "content": "111111",
            "release_time": null,
            "release_name": "1",
            "knowledge_base_id": 2
        }
    }
}

knowledgeBase 知识库:

参数名 类型 说明
previous_id int 上一个文章id
next_id int 下一个文章id
goods array 商品
article array 文章信息

article 文章:

参数名 类型 说明
id int 文章id
title string 文章名称
content text 文章内容
release_time_at string 发布时间
release_name string 发布者名称