- 好友
- 分享
- 精华
- 阅读权限
- 255
- 注册时间
- 2017-8-17
|
楼主 |
发表于 2024-9-15 22:44:59
|
显示全部楼层
接口详情 | 请求地址: | http://demo35.xinxiuvip.com/plugin.php?id=xinxiuvip_network_plugin:forum | 请求方式: | GET | 返回格式: | JSON\XML /*默认返回JSON格式,如需返回XML格式,请在接口网址后面增加&output=xml参数*/ |
请求参数(所有参数值均URL加密后传输【注意GBK与UTF8编码区别】) | 参数 | 类型 | 是否必含 | 说明 | 示例 | key | [string] | 是 | 传输密钥 | 123456 | token | [string] | 否 | token令牌(填写此参数,帖子内已购附件会显示) | 1487rJ3_xinxiu_jVyxdJsrWhblH4bmJ_xinxiu_gVq
FiP5RE0rPDjjh6vbTTi_xin_xiu_A3MtXSE4bfzIw0XVnDE | action | [string] | 是 | 接口方法 | forum_by_tid | tid | [string] | 是 | 主题帖子tid | 6 |
请求示例(GET) | [PHP] 纯文本查看 复制代码 http://demo35.xinxiuvip.com/plugin.php?id=xinxiuvip_network_plugin:forum&key={传输密钥}&token={token令牌}&action=forum_by_tid&tid=6
|
返回参数(所有接口返回数据含中文时“\u672c\u6846”,请用USC2进行解码) | 参数 | 类型 | 是否必含 | 说明 | 示例 | code | [number] | 是 | http状态码 | 200 | result | [string] | 是 | 错误信息状态码 | OK | count | [number] | 是 | 数组成员数 | 5 | data | [array] | 是 | 数组 | | data>>pid | [string] | 是 | 帖子id | 7 | data>>fid | [string] | 是 | 版块id | 2 | data>>tid | [string] | 是 | 主题tid | 6 | data>>typeid | [string] | 是 | 主题分类id | 0 | data>>authorid | [string] | 是 | 作者uid | 1 | data>>subject | [string] | 是 | 标题 | | data>>message | [string] | 是 | 回复内容 | 回复1 | data>>dateline | [string] | 是 | 回复时间 | 1550927409 | data>>position | [string] | 是 | 楼层(主题是1,第一个回帖是2,第二个回帖是3,以此类推) | 2 | sqltime | [string] | 是 | 页面执行时间(秒) | 0.00688s |
返回示例(JSON) | [PHP] 纯文本查看 复制代码 {
"code": 200,
"result": "OK",
"count": 62,
"data": {
"pid": "4",
"fid": "2",
"tid": "2",
"repid": "0",
"first": "0",
"author": "admin",
"authorid": "1",
"subject": "阿斯达发生地方",
"dateline": "1715341683",
"lastupdate": "0",
"updateuid": "0",
"premsg": "",
"message": "撒旦发射点发",
"useip": "117.65.141.249",
"port": "4155",
"invisible": "0",
"anonymous": "0",
"usesig": "1",
"htmlon": "0",
"bbcodeoff": "-1",
"smileyoff": "-1",
"parseurloff": "0",
"attachment": "0",
"rate": "0",
"ratetimes": "0",
"status": "32",
"tags": "0",
"comment": "0",
"replycredit": "0",
"position": "2",
"posttableid": "0",
"typeid": "0",
"sortid": "0",
"readperm": "0",
"price": "0",
"lastpost": "1726331685",
"lastposter": "admin",
"views": "12",
"replies": "2",
"displayorder": "0",
"highlight": "0",
"digest": "0",
"special": "0",
"moderated": "0",
"closed": "0",
"stickreply": "0",
"recommends": "0",
"recommend_add": "0",
"recommend_sub": "0",
"heats": "2",
"isgroup": "0",
"favtimes": "0",
"sharetimes": "0",
"stamp": "-1",
"icon": "-1",
"pushedaid": "0",
"cover": "0",
"relatebytag": "0",
"maxposition": "4",
"bgcolor": "",
"comments": "0",
"hidden": "0"
},
"sqltime": "0.00561s"
} |
额外说明 | pre_forum_post 帖子表 | | | | | | pid | int(10) unsigned |
| NO |
| 帖子id | fid | mediumint(8) unsigned | 0 | NO |
| 论坛id | tid | mediumint(8) unsigned | 0 | NO |
| 主题id | first | tinyint(1) | 0 | NO |
| 是否是首贴 | author | varchar(15) |
| NO |
| 作者姓名 | authorid | mediumint(8) unsigned | 0 | NO |
| 作者id | subject | varchar(80) |
| NO |
| 标题 | dateline | int(10) unsigned | 0 | NO |
| 发表时间 | message | mediumtext |
| NO |
| 消息 | useip | varchar(15) |
| NO |
| 发帖者IP | invisible | tinyint(1) | 0 | NO |
| 是否通过审核 | anonymous | tinyint(1) | 0 | NO |
| 是否匿名 | usesig | tinyint(1) | 0 | NO |
| 是否启用签名 | htmlon | tinyint(1) | 0 | NO |
| 是否允许HTML | bbcodeoff | tinyint(1) | 0 | NO |
| 是否关闭BBCODE | smileyoff | tinyint(1) | 0 | NO |
| 是否关闭表情 | parseurloff | tinyint(1) | 0 | NO |
| 是否允许粘贴URL | attachment | tinyint(1) | 0 | NO |
| 附件 | rate | smallint(6) | 0 | NO |
| 评分分数 | ratetimes | tinyint(3) unsigned | 0 | NO |
| 评分次数 | status | int(10) | 0 | NO |
| 帖子状态 | tags | varchar(255) | 0 | NO |
| 新增字段,用于存放tag | comment | tinyint(1) | 0 | NO |
| 是否存在点评 | replycredit | int(10) | 0 | NO |
| 回帖获得积分记录 | position | int(8) unsigned |
| NO | 是 | 帖子位置信息 | pre_forum_thread 主题表 | | | | | | tid | mediumint(8) unsigned |
| NO | 是 | 主题id | fid | mediumint(8) unsigned | 0 | NO |
| 上级论坛 | posttableid | smallint(6) unsigned | 0 | NO |
| 帖子表ID | typeid | smallint(6) unsigned | 0 | NO |
| 主题分类id | sortid | smallint(6) unsigned | 0 | NO |
| 分类信息id | readperm | tinyint(3) unsigned | 0 | NO |
| 阅读权限 | price | smallint(6) | 0 | NO |
| 价格 | author | char(15) |
| NO |
| 会员名 | authorid | mediumint(8) unsigned | 0 | NO |
| 会员id | subject | char(80) |
| NO |
| 标题 | dateline | int(10) unsigned | 0 | NO |
| 发表时间 | lastpost | int(10) unsigned | 0 | NO |
| 最后发表 | lastposter | char(15) |
| NO |
| 最后发表人id | views | int(10) unsigned | 0 | NO |
| 浏览次数 | replies | mediumint(8) unsigned | 0 | NO |
| 回复次数 | displayorder | tinyint(1) | 0 | NO |
| 显示顺序 | highlight | tinyint(1) | 0 | NO |
| 是否高亮 | digest | tinyint(1) | 0 | NO |
| 是否精华 | rate | tinyint(1) | 0 | NO |
| 是否评分 | special | tinyint(1) | 0 | NO |
| 特殊主题,1:投票;2:商品;3:悬赏;4:活动;5:辩论贴;127:插件相关 | attachment | tinyint(1) | 0 | NO |
| 附件,0无附件 1普通附件 2有图片附件 | moderated | tinyint(1) | 0 | NO |
| 是否被管理员改动 | closed | mediumint(8) unsigned | 0 | NO |
| 是否关闭 | stickreply | tinyint(1) unsigned | 0 | NO |
| 是否有回帖置顶 | recommends | smallint(6) | 0 | NO |
| 推荐指数 | recommend_add | smallint(6) | 0 | NO |
| 支持人数 | recommend_sub | smallint(6) | 0 | NO |
| 反对人数 | heats | int(10) unsigned | 0 | NO |
| 主题热度值 | status | smallint(6) unsigned | 0 | NO |
| | isgroup | tinyint(1) | 0 | NO |
| 是否为群组帖子 | favtimes | mediumint(8) | 0 | NO |
| 主题收藏次数 | sharetimes | mediumint(8) | 0 | NO |
| 主题分享次数 | stamp | tinyint(3) | -1 | NO |
| 主题图章 | icon | tinyint(3) | -1 | NO |
| 主题图标 | pushedaid | mediumint(8) | 0 | NO |
| 被推送到的文章aid | cover | smallint(6) | 0 | NO |
| 主题封面 负数:远程 正数:本地 0:无封面 | replycredit | smallint(6) | 0 | NO |
| 回帖奖励积分主题记录积分值 | relatebytag | char(255) | 0 | NO |
| 根据帖子标签取的相关主题id (time /t tid,...) | maxposition | int(8) unsigned | 0 | NO |
| 最大回帖位置信息 | bgcolor | char(8) |
| NO |
| 保存高亮背景色 | comments | int(10) unsigned | 0 | NO |
| 点评数 |
|
错误提示码 | 错误码查询地址:点击访问 | BUG提交:点击提交 | QQ交流群:281079920 |
|
|