This commit is contained in:
wangjinlei
2022-12-30 11:41:29 +08:00
parent a8f2c71bc0
commit dbfc3c6452
5 changed files with 177 additions and 5 deletions

View File

@@ -129,6 +129,20 @@ function get_str(){
}
function getRandPassword(){
$length = 8;
$str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$len = strlen($str)-1;
$randstr = '';
for ($i=0;$i<$length;$i++) {
$num=mt_rand(0,$len);
$randstr .= $str[$num];
}
return $randstr;
}
function proofState($article_id){
$p_article_obj = Db::name('production_article');