迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
怎么使用:用户中心列表数据 https://www.xunruicms.com/doc/415.html
http://wang.com/index.php?api_auth_code=5e18f4c764abd848ec01b999559b2dfd&api_auth_uid=1&appid=1&appsecret=PHPCMF975993A341D09&s=member&app=news&c=home&m=index&page=1
使用的是帮助中心的参数,获取的结果却不一样!!
{ "code": 1, "msg": "view", "data": { "menu": { "1": { "id": "1", "pid": "0", "name": "账号管理", "uri": "", "url": "", "mark": "user", "hidden": "0", "icon": "fa fa-user", "group": [], "site": [], "displayorder": "0", "link": { "2": { "id": "2", "pid": "1", "name": "资料修改", "uri": "account/index", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-cog", "group": [], "site": [], "displayorder": "0" }, "3": { "id": "3", "pid": "1", "name": "头像设置", "uri": "account/avatar", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-smile-o", "group": [], "site": [], "displayorder": "0" }, "4": { "id": "4", "pid": "1", "name": "手机认证", "uri": "account/mobile", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-mobile", "group": [], "site": [], "displayorder": "0" }, "5": { "id": "5", "pid": "1", "name": "修改密码", "uri": "account/password", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-expeditedssl", "group": [], "site": [], "displayorder": "0" }, "6": { "id": "6", "pid": "1", "name": "账号绑定", "uri": "account/oauth", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-qq", "group": [], "site": [], "displayorder": "0" }, "7": { "id": "7", "pid": "1", "name": "登录记录", "uri": "account/login", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-calendar", "group": [], "site": [], "displayorder": "0" } } }, "8": { "id": "8", "pid": "0", "name": "财务管理", "uri": "", "url": "", "mark": "pay", "hidden": "0", "icon": "fa fa-rmb", "group": [], "site": [], "displayorder": "0", "link": { "9": { "id": "9", "pid": "8", "name": "在线充值", "uri": "recharge/index", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-rmb", "group": [], "site": [], "displayorder": "0" }, "10": { "id": "10", "pid": "8", "name": "我的交易", "uri": "paylog/index", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-calendar", "group": [], "site": [], "displayorder": "0" }, "11": { "id": "11", "pid": "8", "name": "虚拟金币", "uri": "scorelog/index", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-diamond", "group": [], "site": [], "displayorder": "0" }, "12": { "id": "12", "pid": "8", "name": "提醒消息", "uri": "notice/index", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-envelope", "group": [], "site": [], "displayorder": "0" } } }, "13": { "id": "13", "pid": "0", "name": "内容管理", "uri": "", "url": "", "mark": "content-module", "hidden": "0", "icon": "fa fa-th-large", "group": [], "site": [], "displayorder": "0", "link": { "14": { "id": "14", "pid": "13", "name": "我的评论", "uri": "content/comment", "url": "", "mark": "", "hidden": "0", "icon": "fa fa-comments", "group": [], "site": [], "displayorder": "0" }, "15": { "id": "15", "pid": "13", "name": "文章管理", "uri": "news/home/index", "url": "", "mark": "module-news", "hidden": "0", "icon": "fa fa-sticky-note", "group": [], "site": [], "displayorder": "-1" } } } }, "page_bar": "<div class=\"page-bar\">\n <ul class=\"page-breadcrumb\">\n <li>\n <i class=\"fa fa-home\"></i>\n <span>用户中心</span>\n <i class=\"fa fa-angle-right\"></i>\n </li>\n \n <li>\n <i class=\"fa fa-th-large\"></i>\n <span>内容管理</span>\n <i class=\"fa fa-angle-right\"></i>\n </li>\n <li>\n <i class=\"fa fa-sticky-note\"></i>\n <span>文章管理</span>\n </li>\n \n </ul>\n </div>", "mymenu": [ "15", "13" ], "meta_name": "文章管理", "meta_title": "文章管理_内容管理_用户中心", "meta_keywords": null, "meta_description": null, "member": { "id": "1", "email": "admin@admin.com", "phone": "", "username": "admin", "password": "443daf04e19edbb045bfd67d79744b55", "salt": "846c260d71", "name": "创始人", "money": "1000000.00", "freeze": "0.00", "spend": "0.00", "score": "1000000", "experience": "1000000", "regip": "", "regtime": "1574071728", "randcode": "0", "is_admin": "1", "is_lock": "0", "is_auth": "1", "is_verify": "1", "is_mobile": "1", "is_avatar": "1", "is_complete": "1", "uid": "1", "authid": [ 1 ], "avatar": "http://wang.com/api/member/1.jpg", "adminid": 1, "tableid": 1, "group": { "1": { "id": "1", "uid": "1", "gid": 1, "lid": "0", "stime": "0", "etime": "0", "group_name": "注册用户", "group_level": null } }, "groupid": { "1": 1 }, "levelid": { "1": "0" } }, "module": { "id": "1", "name": "文章", "icon": "fa fa-sticky-note", "site": { "1": { "html": 0, "theme": "default", "domain": "", "template": "default" } }, "config": { "type": "module", "name": "文章", "icon": "fa fa-sticky-note", "system": "1", "mtype": "1" }, "share": "1", "comment": { "use": "1", "num": "0", "my": "0", "reply": "0", "ct_reply": "0", "pagesize": "", "pagesize_mobile": "", "pagesize_api": "", "review": [], "field": [] }, "setting": { "order": "displayorder DESC,updatetime DESC", "verify_msg": "", "delete_msg": "", "list_field": { "title": { "use": "1", "order": "1", "name": "主题", "width": "", "func": "title" }, "catid": { "use": "1", "order": "2", "name": "栏目", "width": "120", "func": "catid" }, "author": { "use": "1", "order": "3", "name": "作者", "width": "100", "func": "author" }, "updatetime": { "use": "1", "order": "4", "name": "更新时间", "width": "160", "func": "datetime" } }, "comment_list_field": { "content": { "use": "1", "order": "1", "name": "评论", "width": "", "func": "comment" }, "author": { "use": "1", "order": "3", "name": "作者", "width": "100", "func": "author" }, "inputtime": { "use": "1", "order": "4", "name": "评论时间", "width": "160", "func": "datetime" } }, "flag": null, "param": null, "search": { "use": "1", "field": "title,keywords", "total": "500", "length": "4", "param_join": "-", "param_rule": "0", "param_field": "", "param_join_field": [ "", "", "", "", "", "", "" ], "param_join_default_value": "0" } }, "dirname": "news", "cname": "文章", "html": 0, "title": "文章", "urlrule": null, "domain": "", "mobile_domain": "", "url": "/index.php?s=news", "murl": "/index.php?s=news", "field": { "title": { "id": "1", "name": "主题", "fieldname": "title", "fieldtype": "Text", "relatedid": "1", "relatedname": "module", "isedit": "1", "ismain": "1", "issystem": "1", "ismember": "1", "issearch": "1", "disabled": "0", "setting": { "option": { "width": 400, "fieldtype": "VARCHAR", "fieldlength": "255" }, "validate": { "xss": 1, "required": 1, "formattr": "onblur=\"check_title();get_keywords('keywords');\"" } }, "displayorder": "0" }, "thumb": { "id": "2", "name": "缩略图", "fieldname": "thumb", "fieldtype": "File", "relatedid": "1", "relatedname": "module", "isedit": "1", "ismain": "1", "issystem": "1", "ismember": "1", "issearch": "1", "disabled": "0", "setting": { "option": { "ext": "jpg,gif,png", "size": 10, "width": 400, "fieldtype": "VARCHAR", "fieldlength": "255" } }, "displayorder": "0" }, "keywords": { "id": "3", "name": "关键字", "fieldname": "keywords", "fieldtype": "Text", "relatedid": "1", "relatedname": "module", "isedit": "1", "ismain": "1", "issystem": "1", "ismember": "1", "issearch": "1", "disabled": "0", "setting": { "option": { "width": 400, "fieldtype": "VARCHAR", "fieldlength": "255" }, "validate": { "xss": 1, "formattr": " data-role=\"tagsinput\"" } }, "displayorder": "0" }, "description": { "id": "4", "name": "描述", "fieldname": "description", "fieldtype": "Textarea", "relatedid": "1", "relatedname": "module", "isedit": "1", "ismain": "1", "issystem": "1", "ismember": "1", "issearch": "1", "disabled": "0", "setting": { "option": { "width": 500, "height": 60, "fieldtype": "VARCHAR", "fieldlength": "255" }, "validate": { "xss": 1, "filter": "dr_clearhtml" } }, "displayorder": "0" }, "content": { "id": "5", "name": "内容", "fieldname": "content", "fieldtype": "Ueditor", "relatedid": "1", "relatedname": "module", "isedit": "1", "ismain": "0", "issystem": "1", "ismember": "1", "issearch": "1", "disabled": "0", "setting": { "option": { "mode": 1, "width": "100%", "height": 400 }, "validate": { "xss": 1, "required": 1 } }, "displayorder": "0" } }, "system": "1", "category": { "1": { "id": "1", "tid": "1", "pid": "0", "mid": "news", "pids": "0,1", "name": "新闻动态", "dirname": "xwdt", "pdirname": "", "child": 1, "childids": "1,7,8", "domain": "", "mobile_domain": "", "thumb": "", "show": "1", "content": "", "setting": { "linkurl": "", "urlrule": 0, "seo": { "list_title": "[第{page}页{join}]{catpname}{join}{modname}{join}{SITE_NAME}", "list_keywords": "", "list_description": "" }, "template": { "pagesize": "10", "mpagesize": "10", "page": "page.html", "list": "list.html", "category": "category.html", "search": "search.html", "show": "show.html" }, "html": 0 }, "displayorder": "0", "topid": "1", "catids": [ "1", "7", "8" ], "permission": "", "url": "/index.php?c=category&id=1", "total": 17 }, "2": { "id": "2", "tid": "1", "pid": "0", "mid": "news", "pids": "0", "name": "图片展示", "dirname": "tpzs", "pdirname": "", "child": 0, "childids": 2, "domain": "", "mobile_domain": "", "thumb": "", "show": "1", "content": "", "setting": { "linkurl": "", "urlrule": 0, "seo": { "list_title": "[第{page}页{join}]{catpname}{join}{modname}{join}{SITE_NAME}", "list_keywords": "", "list_description": "" }, "template": { "pagesize": "10", "mpagesize": "10", "page": "page.html", "list": "list.html", "category": "category.html", "search": "search.html", "show": "show.html" }, "html": 0 }, "displayorder": "0", "topid": "2", "catids": [ "2" ], "permission": [], "url": "/index.php?c=category&id=2", "total": 7 }, "7": { "id": "7", "tid": "1", "pid": "1", "mid": "news", "pids": "0,1", "name": "互联网", "dirname": "hulianwang", "pdirname": "xwdt/", "child": 0, "childids": 7, "domain": "", "mobile_domain": "", "thumb": "", "show": "1", "content": "", "setting": { "edit": 1, "template": { "list": "list.html", "show": "show.html", "category": "category.html", "search": "search.html", "pagesize": 20 }, "seo": { "list_title": "[第{page}页{join}]{name}{join}{modname}{join}{SITE_NAME}", "show_title": "[第{page}页{join}]{title}{join}{catname}{join}{modname}{join}{SITE_NAME}" }, "html": 0, "urlrule": 0 }, "displayorder": "0", "topid": "1", "catids": [ "7" ], "permission": [], "url": "/index.php?c=category&id=7", "total": 14 }, "8": { "id": "8", "tid": "1", "pid": "1", "mid": "news", "pids": "0,1", "name": "PHP技术", "dirname": "phpjishu", "pdirname": "xwdt/", "child": 0, "childids": 8, "domain": "", "mobile_domain": "", "thumb": "", "show": "1", "content": "", "setting": { "edit": 1, "template": { "list": "list.html", "show": "show.html", "category": "category.html", "search": "search.html", "pagesize": 20 }, "seo": { "list_title": "[第{page}页{join}]{name}{join}{modname}{join}{SITE_NAME}", "show_title": "[第{page}页{join}]{title}{join}{catname}{join}{modname}{join}{SITE_NAME}" }, "html": 0, "urlrule": 0 }, "displayorder": "0", "topid": "1", "catids": [ "8" ], "permission": [], "url": "/index.php?c=category&id=8", "total": 3 } }, "category_dir": { "xwdt": "1", "tpzs": "2", "guanyuwomen": "3", "jishuzhichi": "4", "gongsijieshao": "5", "xunruicmskuangjia": "6", "hulianwang": "7", "phpjishu": "8" }, "category_field": { "thumb": { "name": "缩略图", "ismain": 1, "ismember": 1, "fieldtype": "File", "fieldname": "thumb", "setting": { "option": { "ext": "jpg,gif,png,jpeg", "size": 10, "input": 1, "attachment": "" } } }, "content": { "name": "栏目内容", "ismain": 1, "fieldtype": "Ueditor", "fieldname": "content", "setting": { "option": { "mode": 1, "height": 300, "width": "100%", "attachment": "" } } } }, "category_level": 1, "category_data_field": 0, "form": [] }, "module_memu": { "list": { "name": "内容管理", "icon": "fa fa-sticky-note", "url": "http://wang.com/index.php?s=member&app=news&c=home&m=index" }, "verify": { "name": "审核管理", "icon": "fa fa-edit", "url": "http://wang.com/index.php?s=member&app=news&c=verify&m=index" }, "draft": { "name": "草稿箱", "icon": "fa fa-pencil", "url": "http://wang.com/index.php?s=member&app=news&c=draft&m=index" }, "add": { "name": "发布内容", "icon": "fa fa-plus", "url": "http://wang.com/index.php?s=member&app=news&c=home&m=add" } }, "list": [ { "id": "24", "catid": "2", "title": "附件分离云存储", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/70d141ccc7fc8aa.jpg", "keywords": "云存储,分离,附件", "description": "迅睿CMS文件存储可以分为本地和远程方式,可以在附件设置中去配置各种存储策略。图片缩略图可单独设置缓存目录,把缩略图图片放到高效的ssd硬盘中。设置附件存储策略,将附件存储到任意磁盘位置同时远程附件存...", "hits": "9", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=24", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777558", "updatetime": "1551777583", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "23", "catid": "2", "title": "全站生成静态", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/3779e03411b013.jpg", "keywords": "全站生成静态,全站", "description": "迅睿CMS 支持全站生成静态文件,生成电脑页面的同时生成移动端页面,一键操作。自定义网站目录迅睿CMS支持将站点目录放到任意位置,如果做成纯静态站点的话相当方便了。生成全站静态一键生成全站静态文件,可...", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=23", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777534", "updatetime": "1551777556", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "22", "catid": "2", "title": "在线充值/付款", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/ade3578802566d2.jpg", "keywords": "在线充值,付款", "description": "迅睿CMS支持微信公众号内支付、微信扫码支付、微信H5唤醒支付、微信小程序支付、支付宝扫码和Wap支付。电脑端在线充值微信公众号内支付微信小程序支付", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=22", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777508", "updatetime": "1551777531", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "21", "catid": "2", "title": "模板管理/编辑模板", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/6a2b4be4f7b0d.jpg", "keywords": "模板管理,编辑模板,模板", "description": "迅睿CMS支持在线编辑模板内容,变更模板代码等操作中文注释模板名称,方便开发者维护模板;修改模板时系统会自动存储老模板的历史记录,以免数据丢失。", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=21", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777472", "updatetime": "1551777506", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "20", "catid": "2", "title": "数据字典/字段介绍", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/cfa8ae0b589a3f7.jpg", "keywords": "数据字典,字段,介绍", "description": "迅睿CMS后台可以直接查看数据结构和字段介绍,非常方便开发者。开发者可以在后台进行数据优化、数据修复、异常检测,以及执行sql等操作", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=20", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777439", "updatetime": "1551777470", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "19", "catid": "2", "title": "APP/小程序接口开发", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/a99c47b41e6e744.jpg", "keywords": "小程序,接口,开发", "description": "迅睿CMS为移动端APP、小程序提供完备的服务端数据解决方案,提供客户端对全站内容读写接口,文件上传和下载统一接口,完美复合移动端 APP 开发者的需求。迅睿CMS后台可设置多套密钥机制,提供客户端A...", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=19", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777377", "updatetime": "1551777437", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "18", "catid": "2", "title": "多个网站终端", "thumb": "http://cdn-file.xunruicms.com/uploadfile/201903/eea07766cc93d16.jpg", "keywords": "终端,网站终端,网站", "description": "什么是网站终端?传统网站可以分为电脑pc、移动端mobile两个展示界面。迅睿CMS不仅支持这两个界面,还可以通过自定义终端来设置不同终端的展示界面,例如百度MIP界面等等名词解释:终端目录:英文目录...", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=18", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777295", "updatetime": "1551777372", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "17", "catid": "8", "title": "PHP的语言层面的优化以及代码优化技巧", "thumb": "", "keywords": "代码优化技巧,语言层面,层面", "description": "大规模的系统开发中,Cache无疑是至关重要的,php世界里,虽然不如java当中,有那么丰富的cache解决方案可以选择,但是,仍然有一些成熟的方案。1、语言层面的优化:php具有不少引擎(engi...", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=17", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777174", "updatetime": "1551777231", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "16", "catid": "8", "title": "PHP 7安装使用体验:性能大提升、扩展支持不够、升级需谨慎", "thumb": "", "keywords": "性能,安装使用体验,扩展", "description": "伴随着PHP 7的发布,这几天关于PHP 7性能和兼容性成了大家讨论的热点话题,PHP 7表现出来的高性能让不少人蠢蠢欲动,有些“尝鲜”的朋友已经将PHP 7应用到了生产环境当中了。同时,LNMP等热...", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=16", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551777023", "updatetime": "1551777172", "comments": "0", "avgsort": "0.00", "displayorder": "0" }, { "id": "15", "catid": "8", "title": "PHP中htmlentities()和htmlspecialchars()函数的区别", "thumb": "", "keywords": "htmlentities,htmlspecialchars,函数", "description": "htmlentities()和htmlspecialchars()函数的区别htmlentities()函数可以将所有适用的字符转换为HTML实体;如果不指定编码的话遇到中文会乱码。htmlspeci...", "hits": "0", "uid": "1", "author": "admin", "status": "9", "url": "/index.php?c=show&id=15", "link_id": "0", "tableid": "0", "inputip": "127.0.0.1", "inputtime": "1551776925", "updatetime": "1551777021", "comments": "0", "avgsort": "0.00", "displayorder": "0" } ], "total": 24, "param": { "app": "news", "appid": "1", "appsecret": "PHPCMF975993A341D09", "api_auth_uid": "1", "api_auth_code": "5e18f4c764abd848ec01b999559b2dfd", "_": "1574211229168", "total": 24, "order": "updatetime desc" }, "mypages": "<ul class=\"pagination\"><li><a>共24条</a></li><li class=\"active\"><a>1</a></li><li><a href=\"http://wang.com/index.php?s=member&app=news&c=home&m=index&appid=1&appsecret=PHPCMF975993A341D09&api_auth_uid=1&api_auth_code=5e18f4c764abd848ec01b999559b2dfd&_=157421122916
一般我们做app数据调用时,都会用到回调函数,按需调用数据而不是全部调用数据