下载下来的压缩包解压出来,在后台模板标签导入标签randsearch1673096325.bq,把以下代码加入到e/clas/userfun.phpfunction user_RandSearchKey($line,$num,$clasid=0){ global $empire,$public_r,$dbtbpre; if($clasid)
[ecmsinfo]select * from phome_ecms_news order by rand() desc limit 6 ,6,18,1,24,11,1[/ecmsinfo]呵呵,注意红色部分,其实就把原来的by ID改为by rand() 就可以了,现在还有一个就是不知道怎么调用多个栏目或是调用