add clear

This commit is contained in:
2021-04-06 15:20:39 +08:00
parent 80abb3a20a
commit bdafc011a6
23 changed files with 220 additions and 220 deletions
+6 -6
View File
@@ -36,17 +36,17 @@ class Help extends Miniprogarampage
*/
private static function xmlChild(array $array)
{
$string = '';
$= '';
foreach ($array as $key => $value) {
if (is_array($value)) {
$string .= static::xmlChild($value);
$.= static::xmlChild($value);
continue;
}
if (is_numeric($value)) {
$string .= "<" . $key . ">" . $value . "</" . $key . ">";
$.= "<" . $key . ">" . $value . "</" . $key . ">";
} else {
$string .= "<" . $key . "><![CDATA[" . $value . "]]></" . $key . ">";
$.= "<" . $key . "><![CDATA[" . $value . "]]></" . $key . ">";
}
}
return $string;
@@ -163,7 +163,7 @@ class Help extends Miniprogarampage
public static function sign(array $array, $key, $type)
{
ksort($array, SORT_ASC);
$string = [];
$= [];
foreach ($array as $hashKey => $val) {
if (empty($val)) {
continue;
@@ -171,7 +171,7 @@ class Help extends Miniprogarampage
$string[] = $hashKey . '=' . $val;
}
$string[] = 'key=' . $key;
$string = implode('&', $string);
$= implode('&', $string);
if ($type == 'MD5') {
return strtoupper(md5($string));
} else {