迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
會(huì)員中心怎么樣判斷,當(dāng)用戶是企業(yè)用戶組,就是groupid 2, 時(shí)候只顯示 3-4-5組,當(dāng)是個(gè)人用戶時(shí)候只顯示6-7-8組
這個(gè)不需要二次開發(fā),可以直接使用框架本身的判斷標(biāo)簽
有參考demo嗎 大師
回復(fù)@官方研發(fā)實(shí)習(xí)技術(shù)
{if in_array(2,$member.groupid)}
表示企業(yè)用戶組會(huì)員,剩下寫你的代碼判斷里面嵌套一下
{/if}
這個(gè)是自動(dòng)獲取用戶組的,只是當(dāng)用戶組是2的時(shí)候就只顯示可升級(jí)到4-5-6.當(dāng)用戶組是1時(shí)候,只顯示可升級(jí)到7-8-9
回復(fù)@小小爬蟲丁
可惜沒懸賞(設(shè)置懸賞),一塊錢也行啊,哈哈
<?php unset($ci->member_cache['group'][7]);?><?php unset($ci->member_cache['group'][8]);?><?php unset($ci->member_cache['group'][9]);?>
{if in_array(1,$member.groupid)}
<?php unset($ci->member_cache['group'][4]);?><?php unset($ci->member_cache['group'][5]);?><?php unset($ci->member_cache['group'][6]);?>
你這個(gè)應(yīng)該是可以,但是后面那個(gè)用戶組,級(jí)別,有效期,續(xù)費(fèi)開通 好像不太行了
回復(fù)@靠懸賞(設(shè)置懸賞)賺錢買授權(quán)
我是要
當(dāng)用戶組 1訪問的時(shí)候 可以看到1- 3-4-5-6-7-8-9-10當(dāng)用戶組2訪問的時(shí)候 可以看到2-7-8
你這個(gè)代碼 好像是屏蔽,然后還有就是 共同有顯示的7-8不會(huì)顯示
{if in_array(2, $member.groupid) && !in_array($gid, [1, 3,4,5,6,7,8,9,10])} {php continue;} {/if} {if in_array(1, $member.groupid) && !in_array($gid, [2,7,8])} {php continue;} {/if}
這個(gè)不需要二次開發(fā),可以直接使用框架本身的判斷標(biāo)簽
有參考demo嗎 大師
回復(fù)@官方研發(fā)實(shí)習(xí)技術(shù)
{if in_array(2,$member.groupid)}
表示企業(yè)用戶組會(huì)員,剩下寫你的代碼判斷里面嵌套一下
{/if}
這個(gè)是自動(dòng)獲取用戶組的,只是當(dāng)用戶組是2的時(shí)候就只顯示可升級(jí)到4-5-6.當(dāng)用戶組是1時(shí)候,只顯示可升級(jí)到7-8-9
回復(fù)@小小爬蟲丁
可惜沒懸賞(設(shè)置懸賞),一塊錢也行啊,哈哈
{if in_array(2,$member.groupid)}
<?php unset($ci->member_cache['group'][7]);?><?php unset($ci->member_cache['group'][8]);?><?php unset($ci->member_cache['group'][9]);?>
{/if}
{if in_array(1,$member.groupid)}
<?php unset($ci->member_cache['group'][4]);?><?php unset($ci->member_cache['group'][5]);?><?php unset($ci->member_cache['group'][6]);?>
{/if}
你這個(gè)應(yīng)該是可以,但是后面那個(gè)用戶組,級(jí)別,有效期,續(xù)費(fèi)開通 好像不太行了
回復(fù)@靠懸賞(設(shè)置懸賞)賺錢買授權(quán)
我是要
當(dāng)用戶組 1訪問的時(shí)候 可以看到1- 3-4-5-6-7-8-9-10
當(dāng)用戶組2訪問的時(shí)候 可以看到2-7-8
你這個(gè)代碼 好像是屏蔽,然后還有就是 共同有顯示的7-8不會(huì)顯示
回復(fù)@靠懸賞(設(shè)置懸賞)賺錢買授權(quán)
{if in_array(2, $member.groupid) && !in_array($gid, [1, 3,4,5,6,7,8,9,10])}
{php continue;}
{/if}
{if in_array(1, $member.groupid) && !in_array($gid, [2,7,8])}
{php continue;}
{/if}