私有云市场show.html页怎么判断当前登录会员是否购买过?
模板中自带的好像无效的。
{if dr_is_down_shop($catid)}
<a href="/index.php?s=cloud&c=down&id={$id}" class="btn btn-lg btn-block btn-success btn-download">
<i class="fa fa-download"></i> 下载源码
</a>
<a href="/index.php?s=cloud&c=buy&id={$id}" class="btn btn-lg btn-block btn-danger btn-donate">
<i class="fa fa-money"></i> 购买源码
</a>
{else}
<a href="/index.php?s=cloud&c=buy&id={$id}" class="btn btn-lg btn-block btn-danger btn-donate">
<i class="fa fa-money"></i> 购买
</a>
{/if}
{if $member.uid && \Phpcmf\Service::M()->table_site('cloud_buy')->where('uid', $member.uid)->where('cid', $id)->counts()} 购买过了 {/if}show.html