Skip to main content

批量更新链接排序

  • 接口:/index.php?c=api&method=update_link_order&category_id={category_id}
  • 后端接收一个json对象,格式为:
[
    {
        "id": "186",
        "weight": 9
    },
    {
        "id": "185",
        "weight": 8
    },
    {
        "id": "181",
        "weight": 7
    },
    {
        "id": "188",
        "weight": 6
    },
    {
        "id": "187",
        "weight": 5
    },
    {
        "id": "184",
        "weight": 4
    },
    {
        "id": "180",
        "weight": 3
    },
    {
        "id": "183",
        "weight": 2
    },
    {
        "id": "182",
        "weight": 1
    }
]
  • category_id:为分类ID
  • id:链接ID
  • weight:链接权重