💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## Common.php 此控制器负责CMS小程序端初始化API接口请求。 ## init - 初始化 此方法主要负责CMS小程序文章数据列表的数据提供。 ### 请求方法 POST ### 请求参数 无 ### 返回值 ~~~json { "code": 1, "msg": "", "time": "1573995998", "data": { //焦点图列表 "bannerList": [ { "image": "https://cdn.fastadmin.net/uploads/focus/24.jpg", "url": "/", "title": "首页焦点图标题3" }, { "image": "https://cdn.fastadmin.net/uploads/focus/6.jpg", "url": "/", "title": "首页焦点图标题2" }, { "image": "https://cdn.fastadmin.net/uploads/focus/25.jpg", "url": "/", "title": "首页焦点图标题1" } ], //首页Tab列表 "indexTabList": [ { "id": 0, "title": "全部" }, { "id": 14, "title": "网络工具" }, { "id": 13, "title": "媒体工具" }, { "id": 12, "title": "应用软件" } ], //资讯页Tab列表 "newsTabList": [ { "id": 0, "title": "全部" }, { "id": 6, "title": "硬件" } ], //产品Tab列表 "productTabList": [ { "id": 0, "title": "全部" }, { "id": 10, "title": "智能家居" } ], "config": { //上传配置 "upload": { "uploadurl": "http://test/api/ajax/upload", "cdnurl": "http://www.yoursite.com", "savekey": "/uploads/{year}{mon}{day}/{filemd5}{.suffix}", "maxsize": "10mb", "mimetype": "jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx", "multiple": false, "bucket": "local", "multipart": [] } } } } ~~~