php$usedIds = array; 已使用的ID数组do $id = rand1 5000; 生成1-5000的随机ID while in_array$id $usedIds; 如果已使用过则重新生成$usedIds = $id; 将使用过的ID加入数组$hash = substrmd5yg_book_$id 5 16; 获取hash值把ID和hash结果拼接为一个网址
:
原文地址: https://www.cveoy.top/t/topic/buKT 著作权归作者所有。请勿转载和采集!