add clear

This commit is contained in:
as2252258@163.com
2020-01-03 11:48:51 +08:00
parent 089f52c585
commit f52d8ff4a8
+3
View File
@@ -32,6 +32,9 @@ class Help extends Miniprogarampage
*/
public static function toArray($xml)
{
if (is_array($xml)) {
return $xml;
}
if (!is_null($json = json_decode($xml, TRUE))) {
return $json;
}