联系官方销售客服
1835022288
028-61286886
调用会员空间show页面接口,如何正确获取某个会员发布的所有文章
会员show页面代码
{if $myuid} {module module=works uid=$myuid order=updatetime page=1 pagesize=20 urlrule=test} <div> ....... </div> {/module} {/if}
自定义模板代码,获取出来的是所有会员发布的文章
{php $api['myuid'] = [];} {module module=works uid=$myuid order=updatetime page=1 pagesize=10 urlrule=test} {php $api['myuid'][] = [ 'id'=>$t.id, 'title'=>dr_strcut($t['title'], 8, ''), 'uid'=>$t.uid, 'support'=>$t.support, 'author'=>dr_member_info($t['uid'])['name'], 'thumb'=>dr_thumb($t['thumb'], 180, 180, 0, 'crop'), 'user_avatar'=>dr_avatar($t['uid']), ];} {/module} {php $api['total'] = $total;} {php $api['nums'] = $nums;} {php $api['page'] = $page;} {php $api['pagesize'] = $pagesize;}