企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 【明星循环标签】: ~~~ {star 参数1="值1" 参数2="值2"} 循环类容 {/star} 支持参数: star:明星名字 , 使用该参数可以查询出该明星共同参演过视频的所有明星 ids:ID数字 多个使用逗号分割, not:不包含的ID的数据 多个使用逗号分割, cid:分类数字 多个使用逗号分割, letter:字母 多个使用逗号分割, name:名字查询,多个使用逗号分割, likename:名字模糊查询 **影响系统性能**, wd:关键词吗模糊查询(star_name,star_area,star_zy,star_csd,star_work,star_gx,star_content,star_info)字段 **影响系统性能**, xb:性别, area:地区,多个使用逗号分割, zy:职业,多个使用逗号分割, guanxi:关系 模糊查询 **影响系统性能**, work:代表作 模糊查询 **影响系统性能**, tag:明星TAG模糊查询 **影响系统性能**, prty:文档推荐,数字在后台系统设置高设置中查看,查询多个推荐前面数字相加得到的数字, stars:星级数字 多个使用逗号分割, hits:人气 查询大于这个人气的数据区间使用逗号分开如100,1000 gold:评分 查询大于这个评分的数据区间使用逗号分开如5,10 golder:评分人数 查询大于这个评分人数的数据区间使用逗号分开如100,1000 up:顶数 查询大于这个顶数的数据区间使用逗号分开如100,1000 down:踩数 查询大于这个踩数的数据区间使用使用逗号分开如100,1000 addtime:添加日期 查询大于这个添加日期的数据,区间使用逗号分开如2019-01-20,2019-03-20 limit: 获取数据条数 使用*获取所有内容 page: 是否分页 填写true 不开启分页留空或者删除该参数 order: 排序方式 star_addtime asc 正序 star_addtime desc倒序(支持字段:star_id/star_addtime/star_hits/star_hits_day/star_hits_week/star_hits_month/star_hits_lasttime/star_stars/star_up/star_down/star_gold/star_golder) start:查询从第几个开始 (可选) limit:查询个数 (可选) id:当前循环变量 (无参数默认为zanpian) offset:输出开始个数 (可选) length:输出结束 (可选) cachename: 自定义缓存名称字符串 cachetime: 自定义缓存时间(单位/秒) 和cachename配合使用填写后高于后台循环缓存权限 ~~~ ### 列子1: ~~~ {star limit="10" order="star_addtime desc" } {$key}序号 {:zanpian_read_url('home/star/read',$zanpian)}明星连接 {$zanpian.star_id}ID {$zanpian.star_cid}分类ID {$zanpian.star_name}名字 {$zanpian.star_pic|zanpian_img_url}图片 {$zanpian.star_bigpic|zanpian_img_url}大图 {$zanpian.star_addtime|date='m-d H:i:s',###}明星添加时间 {$zanpian.其他明星字段} {/star} ~~~ ### 列子2 查询明星并循环最近3个视频: 注意嵌套循环请指定循环不同的id变量否则容易出现数据错乱 ~~~ {star limit="5" order="star_addtime desc" id="star"} {$key}序号 {:zanpian_read_url('home/star/read',$star)}明星连接 {$star.star_id}ID {$star.star_cid}分类ID {$star.star_name}名字 {$star.star_pic|zanpian_img_url}图片 {$star.star_bigpic|zanpian_img_url}大图 {$star.star_addtime|date='m-d H:i:s',###}明星添加时间 {$star.其他明星字段} {vod cid="1,2" actor="'.$star['star_name'].'" limit="3" id="vod"} {:zanpian_read_url('home/vod/read',$vod)} 视频连接 {$vod.vod_name}视频名称 {$vod.vod_pic|zanpian_img_url}视频图片 {$vod.其他视频字段} {/vod} {/star} ~~~ 下面为效果图 ![](https://box.kancloud.cn/469f54f5c38c3f53d8996853515c7cc5_1221x292.jpg) ![](https://box.kancloud.cn/5a0ede65234d63e150d9a8075098b8ac_367x282.jpg)