discuz x2.5/3手机客户端接口 增加主题图片

最近做项目要调用discuz论坛程序数据,需要主题图片。http://www.xxx.cn/api/mobile/index.php?module=forumdisplay&fid=89 只显示附件数,而没有图片数据,经分析图片模式的图片是coverpath这字段。

打开 source\plugin\mobile\api\1\forumdisplay.php 找到 function output()函数 ,在forum_threadlist 集合里加上coverpath 就可以调用了

代码如下:

'forum_threadlist' => mobile_core::getvalues($_G['forum_threadlist'], array('/^\d+$/'), array('tid', 'author', 'authorid', 'subject', 'subject', 'dbdateline', 'dateline', 'dblastpost', 'lastpost', 'lastposter', 'attachment', 'replies', 'readperm', 'views', 'digest', 'coverpath')),

  

posted @ 2013-07-28 15:25  jason-lee  阅读(325)  评论(1)    收藏  举报