曹え 5811 发布于:2022-06-08 08:20:27
首先在扩展管理里面安装系统Api接口插件
调取接口地址例子:
https://jzapp.h5.org.cn/GetData/index
参数说明
{ model:'article', // 模型,新闻article,栏目classtype,留言message,轮播图collect等 key:'123456', // 密钥 tid:1, // 栏目 isshow:1, // 审核通过的 orders:'addtime desc', // 排序 limit:1, // 获取数量 fields:'id,title,litpic,body' // 调取字段 }
内容字段
{ "code": 0, "data": [{ "id": "51", "title": null, "tid": "34", "molds": null, "htmlurl": null, "keywords": null, "description": null, "seo_title": null, "userid": "0", "litpic": null, "body": null, "addtime": "1652868367", "orders": "0", "hits": "0", "isshow": "1", "comment_num": "0", "istop": "0", "ishot": "0", "istuijian": "0", "tags": null, "member_id": "8", "target": null, "ownurl": null, "jzattr": null, "tids": null, "zan": "0", "linkid": null, "bixiu": null, "xuanxiu": null, "photo": null, "addr": "泉舜广场洛龙区第一实验小学(翠云校区)" }], "rs": null }
栏目字段
{ "code": 0, "data": [{ "id": "34", "classname": "学友圈", "seo_classname": "学友圈", "molds": "article", "litpic": null, "description": null, "keywords": null, "body": null, "orders": "0", "orderstype": "1", "isshow": "1", "iscover": "0", "pid": "0", "gid": "0", "htmlurl": "xyq", "lists_html": "article-list.html", "details_html": "article-details.html", "lists_num": "10", "comment_num": "0", "gourl": null, "ishome": "1", "isclose": "0", "gids": null, "lang": "cn" }], "rs": null }
登录后可以留言提问!
微信扫码登录