合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### 获取小程序配置信息 > 每个微信小程序对应的栏目信息可能不一样,这个是例子 ~~~[api] get:/v1/wxapp/config.html <<< success { "status": 1, "error_code": 0, "data": { //对照关系 "contrast": { //普通栏目 "cat": { "product": 12, "news": 2, "case": 13 }, //单页栏目 "page": { "about": 10, "contact": 4 } }, //站点信息 "site": { //站点ID "site_id": 1, //站点状态 "status": 1, //站点名称 "name": "测试站点33", //站点logo "logo": "", //站点ico图标 "ico": "", //站点介绍 "info": "5测试站点12", //站点备案号 "beian": "", //联系电话 "contact_people": "", //联系手机 "contact_address": "", //联系手机号 "contact_phone": "", //联系微信号 "contact_wx": "shuipf", //顶部banners图地址 "top_banners" => 'http://ffsm.d1xz.net/statics/ffsm/index/1/images/topbanner.gif' }, //扩展字段 "extend": { "banners1": "http://file.1lwl.cn/d/2017/08/59a508e53a7f4.png", "banners2": "", "banners3": "" } }, "msg": "", "returns_time": 1502864734 } <<< error ~~~ ~~~[api] get:/v2/wxapp/config.html <<< success { "status": 1, "error_code": 0, "data": { "contrast": { "cat": { "product": { "catid": "1", "catname": "国内新闻" }, "news": { "catid": "7", "catname": "美国" }, "case": { "catid": "9", "catname": "英国" } }, "page": { "about": { "catid": "4", "catname": "联系方式" }, "contact": { "catid": "10", "catname": "我是单页" } } }, "site": { "site_id": 1, "status": 1, "name": "", "logo": "", "info": "", "beian": "", "contact_people": "", "contact_address": "", "contact_phone": "1332258082715", "contact_wx": "", "top_banners": "" }, "extend": { "banners1": "http://file.1lwl.cn/d/2017/08/59a508e53a7f4.png", "banners2": "", "banners3": "" } }, "msg": "", "returns_time": 1505027176 } <<< error ~~~ ### banners图获取 ~~~[api] get:/v1/wxapp/banners.html <<< success { "status": 1, "error_code": 0, "data": [ { "title": "banners1", "picurl": "https://ffsm.d1xz.net/statics/ffsm/index/1/images/topbanner.gif", "url": "http://www.baidu.com", "description": "这是一个banners1" }, { "title": "banners2", "picurl": "https://ffsm.d1xz.net/statics/ffsm/bazijingpi/3/images/bzzy_banner.jpg", "url": "", "description": "这是一个banners2" }, { "title": "banners3", "picurl": "https://ffsm.d1xz.net/statics/ffsm/bazihehun/1/images/img_banner.jpg", "url": "", "description": "这是一个banners3" } ], "msg": "", "returns_time": 1502780279 } <<< error ~~~ ### 获取站点信息 ~~~[api] get:/v1/wxapp/site.html <<< success { "status": 1, "error_code": 0, "data": { "id": 1, "uid": 1, "status": 1, "off_access": 0, "name": "测试站点33", "logo": "", "ico": "", "domain": "dev.shuipf.com|aaadd.com", "seo_title": "", "keywords": "测试", "info": "5测试站点12", "beian": "", "contact_people": "", "contact_address": "", "contact_phone": "", "theme_id": 1, "index_template_id": 1, "index_wap_template_id": 0, "is_wap": 1, "is_search": 1, "is_guestbook": 0, "is_links": 0, "expire_time": 1530858641, "admin_uid": 1, "company_id": 1, "total_fee": 4000, "create_time": 0, "update_time": 1496730641 }, "msg": "", "returns_time": 1502780336 } <<< error ~~~ ### 获取栏目信息(普通栏目) ~~~[api] get:/v1/wxapp/cat.html *int:catid=0#栏目ID <<< success { "status": 1, "error_code": 0, "data": { "catid": 1, "bcatid": 1, "siteid": 1, "type": 0, "modelid": 2, "catname": "国内新闻", "letter": "guoneixinwen", "domain": "", "parentid": 2, "arrparentid": "0,2", "child": 1, "arrchildid": "1,8", "image": "", "description": "", "parentdir": "", "catdir": "china", "url": "/cat/1.html", "hits": 0, "setting": { "listoffmoving": "0", "showoffmoving": "0", "seturl": "", "meta_title": "", "meta_keywords": "", "meta_description": "", "template_channel": "3", "template_list": "2", "template_show": "4", "template_wap_channel": "40", "template_wap_list": "39", "template_wap_show": "41" }, "isshow": 1, "listorder": 0, "extend": [] }, "msg": "", "returns_time": 1502780399 } <<< error ~~~ ### 获取栏目信息(单页栏目) ~~~[api] get:/v1/wxapp/cat.html *int:catid=0#栏目ID <<< success { "status": 1, "error_code": 0, "data": { //单页内容 "page": { "catid": 4, "title": "啊啊啊333", "style": "", "keywords": "的", "content": "<p>水电费的所发生的士大夫大师傅似的2222</p><p>sdfsdfsdfdsfs儿童热帖333</p>", "template": "", "create_time": 1461314871, "update_time": 1486539428 }, //栏目信息 "cat": { "catid": 4, "bcatid": 4, "siteid": 1, "type": 1, "modelid": 0, "catname": "联系方式", "letter": "lianxifangshi", "domain": "", "parentid": 3, "arrparentid": "0,3", "child": 0, "arrchildid": "4", "image": "", "description": "", "parentdir": "", "catdir": "contact", "url": "/cat/4.html", "hits": 0, "setting": { "listoffmoving": "0", "showoffmoving": "0", "seturl": "", "meta_title": "", "meta_keywords": "", "meta_description": "", "template_list": "5", "template_wap_list": "38", "template_channel": 0, "template_show": 0, "template_wap_channel": 0, "template_wap_show": 0 }, "isshow": 1, "listorder": 0, "extend": [] } }, "msg": "", "returns_time": 1502865332 } <<< error ~~~ ### 获取栏目列表 ~~~[api] get:/v1/wxapp/category.html int:catid=0#父级栏目bcatid int:limit=0#数量 int:page=1#分页ID <<< success { "status": 1, "error_code": 0, "data": { "total": 7, "page": 1, "size": "2", "list": [ { "catid": 4240, "bcatid": 11, "siteid": 41, "type": 0, "modelid": 2, "catname": "阿特兹", "letter": "atezi", "domain": "", "parentid": 4236, "arrparentid": "0,4236", "child": 0, "arrchildid": "4240", "image": "", "description": "", "parentdir": "", "catdir": "b", "url": "http://www.jxxsycd.com/cat/11.html", "hits": 0, "setting": { "listoffmoving": "0", "showoffmoving": "0", "seturl": "", "meta_title": "", "meta_keywords": "", "meta_description": "", "template_channel": "792", "template_list": "791", "template_show": "793", "template_wap_channel": "800", "template_wap_list": "799", "template_wap_show": "801" }, "isshow": 1, "listorder": 15 }, { "catid": 4241, "bcatid": 12, "siteid": 41, "type": 0, "modelid": 2, "catname": "野马", "letter": "yema", "domain": "", "parentid": 4236, "arrparentid": "0,4236", "child": 0, "arrchildid": "4241", "image": "", "description": "", "parentdir": "", "catdir": "bz", "url": "http://www.jxxsycd.com/cat/12.html", "hits": 0, "setting": { "listoffmoving": "0", "showoffmoving": "0", "seturl": "", "meta_title": "", "meta_keywords": "", "meta_description": "", "template_channel": "792", "template_list": "791", "template_show": "793", "template_wap_channel": "800", "template_wap_list": "799", "template_wap_show": "801" }, "isshow": 1, "listorder": 14 } ] }, "msg": "", "returns_time": 1503630853 } <<< error ~~~ ### 获取信息内容 ~~~[api] get:/v1/wxapp/show.html *int:id=0#信息ID *int:catid=0#栏目ID int:page=1#分页ID <<< success { "status": 1, "error_code": 0, "data": { "seo": { "title": "sdfdsf 333333_福建_Shuipf内容管理系统 V3", "keywords": "", "description": "fdsfds" }, "info": { "catid": 8, "title": "sdfdsf 333333", "style": "", "thumb": "", "keywords": "", "tags": "", "description": "fdsfds", "content": "<p>fdsfdsfds</p>", "relation": "", "uid": 1, "islink": 0, "username": "水平凡", "inputtime": "2016-07-08 17:02:51", "updatetime": "2016-07-08 17:02:47", "views": 7, "listorder": 0, "posid": 0, "status": "审核通过", "id": 1133, "isthumb": 0, "url": "/show/8-1133.html", "sysadd": 1, "yesterdayviews": 1, "dayviews": 1, "weekviews": 1, "monthviews": 1, "viewsupdatetime": 1477897263, "_original": { "catid": 8, "title": "sdfdsf 333333", "style": "", "thumb": "", "keywords": "", "tags": "", "description": "fdsfds", "content": "<p>fdsfdsfds</p>", "relation": "", "uid": 1, "islink": 0, "username": "水平凡", "inputtime": 1467968571, "updatetime": 1467968567, "views": 7, "listorder": 0, "posid": 0, "status": 99, "id": 1133, "isthumb": 0, "url": "/show/8-1133.html", "sysadd": 1, "yesterdayviews": 1, "dayviews": 1, "weekviews": 1, "monthviews": 1, "viewsupdatetime": 1477897263 } } }, "msg": "", "returns_time": 1502780571 } <<< error ~~~ ### 根据栏目ID获取信息列表 ~~~[api] get:/v1/wxapp/catlist.html *int:catid=0#栏目ID int:limit=20#显示数量 int:page=1#分页ID string:orderfield=updatetime#排序字段 <<< { "status": 1, "error_code": 0, "data": { "list": [ { "id": 1205, "catid": 8, "bcatid": 8, "title": "dsfdsf", "isthumb": 0, "thumb": "", "keywords": "", "tags": "", "description": "fdsf", "url": "/show/8-1205.html", "relation": "", "inputtime": 1501207820, "updatetime": 1501207817, "wx_release_date":"2017-08-12 08:12", "views": 0, "yesterdayviews": 0, "dayviews": 0, "weekviews": 0, "monthviews": 0, "viewsupdatetime": 0 }, { "id": 1204, "catid": 8, "bcatid": 8, "title": "adasdsadsd", "isthumb": 0, "thumb": "", "keywords": "", "tags": "", "description": "sdfdf", "url": "https://www.baidu.com/?", "relation": "", "inputtime": 1496969816, "updatetime": 1496969805, "wx_release_date":"2017-08-12 08:12", "views": 0, "yesterdayviews": 0, "dayviews": 0, "weekviews": 0, "monthviews": 0, "viewsupdatetime": 0 } ], "total": 36, "page": 1, "size": "2" }, "msg": "", "returns_time": 1502931671 } <<< error ~~~ ### 根据推荐位ID获取信息列表 ~~~[api] get:/v1/wxapp/position.html *int:posid=0#推荐位ID limit#返回数量 <<< success { "status": 1, "error_code": 0, "data": [ { "id": 81, "posid": 1, "aid": 1202, "catid": 7, "thumb": 1, "data": { "id": "1202", "catid": 7, "title": "事实上", "url": "/show/7-1202.html", "inputtime": 1494981884, "description": "", "thumb": "http://file.1lwl.cn/d/2017/05/591b9cfd39c44.png", "views": 0, "bcatid": 7 }, "synedit": 1, "listorder": 0, "bcatid": 7 } ], "msg": "", "returns_time": 1505898031 } <<< error ~~~