在内容模板中判断是否购买 迅睿框架 更新 2019-07-04 15:26:23 华仔 POSCMS4 我想问下订单模块支付成功之后,需要在内容模板中判断是否购买,购买之后才让他看内容要怎么实现,还有就是购买次数调用下载模块的订单
内容页show.html {if $member && \Phpcmf\Service::M()->table_site('order_item')->where('mid', MOD_DIR)->where('cid', $id)->where('status', 1)->where('uid', $member.uid)->counts()} 已经购买了 显示内容字段:{$content} {else} 没有购买 {/if}只查当然可行{php echo \Phpcmf\Service::M()->table_site('order_item')->where('mid', MOD_DIR)->where('cid', $id)->where('status', 1)->counts();}本商品的销量{php echo \Phpcmf\Service::M()->table_site('order_item')->where('mid', MOD_DIR)->where('cid', $t.id)->where('status', 1)->counts();}列表写法要带缓存亲关注下个月发布新版function标签,下个月才有!