后台用户管理界面

This commit is contained in:
“wanyongkang”
2021-01-16 14:29:08 +08:00
parent 0d754c58a2
commit ca3422b88b
4 changed files with 148 additions and 1 deletions

View File

@@ -183,4 +183,16 @@ function linkcurl($url,$method,$params=false,$header=false){
curl_close( $ch );
return $response;
}
//将utf-8字符串转换成字节
function cToMd5($str){
$md5hex=md5($str);
$len=strlen($md5hex)/2;
$md5raw="";
for($i=0;$i<$len;$i++) {
$md5raw=$md5raw . chr(hexdec(substr($md5hex,$i*2,2)));
}
$keyMd5=base64_encode($md5raw);
return $keyMd5;
}