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值新加一个参数hashupdate把ID和hash
原文地址: https://www.cveoy.top/t/topic/buKe 著作权归作者所有。请勿转载和采集!