图书模块设置指定会员免费阅读!
设计思路:新建一个模块添加免费阅读账号,章节表单添加关联免费会员账号字段,章节显示添加判断如果,关联会员账号$t.title==$member.username 则免费阅读。
问题:如何进行多重判断?


章节显示判断代码是:
{if $vip && $index.price > 0}
{if $uid == $member.id}
{$neirong}
{elseif dr_is_son_buy(MOD_DIR, $index.id)}
{$neirong}
{else}
<div class="subscribe" style="text-align: center">
<div class="title"><i class="ico left_ico"></i>本章节是VIP章节,需要购买才能继续阅读<i class="ico right_ico"></i></div>
<p>
<a href="{dr_url('book/buy/index', ['id'=>$index.id])}" target="_blank" class="btn btn-circle2 red"> 购买VIP(¥{$index.price}) </a>
</p>
</div>
{/if}
{else}
{$neirong}
{/if}如何修改?