细节优化

feat/task1-c-wallet
devil_gong 2019-06-10 18:17:50 +08:00
parent 3aad10e5cb
commit 5a09e1ae36
1 changed files with 8 additions and 1 deletions

View File

@ -94,7 +94,14 @@ function StrToAscii($str)
$str = mb_convert_encoding($str, 'GB2312');
for($i=0;$i<strlen($str);$i++){
$temp_str = dechex(ord($str[$i]));
$change_after .= $temp_str[1].$temp_str[0];
if(isset($temp_str[1]))
{
$change_after .= $temp_str[1];
}
if(isset($temp_str[0]))
{
$change_after .= $temp_str[0];
}
}
}
return strtoupper($change_after);