Commit f56a10e4 authored by huanle's avatar huanle

0527——

parent 9d6c8ba9
......@@ -62,3 +62,11 @@ function randomkeys($length)
}
return $key;
}
function create_unique()
{
$uniqid = uniqid();
$uniqid = str_replace('.', '', $uniqid);
$unString = base_convert($uniqid, 16, 36);
// 补足17位
return str_pad($unString, 17, rand(1,9999999));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment