From 0853a7f0c0bdad657df8bc875da6f614ed03bbfa Mon Sep 17 00:00:00 2001 From: Chaim Date: Fri, 17 Apr 2020 16:53:55 +0800 Subject: [PATCH] - repair facade --- src/Random.php | 4 ++-- src/Str.php | 4 ++-- src/Xmls.php | 2 +- src/facade/Date.php | 2 +- src/facade/Files.php | 2 +- src/facade/Ints.php | 2 +- src/facade/Random.php | 2 +- src/facade/Str.php | 2 +- src/facade/Time.php | 2 +- src/facade/UnIqId.php | 2 +- src/facade/Urls.php | 2 +- src/facade/Xmls.php | 5 +++-- 12 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Random.php b/src/Random.php index 7da0fa9..4a70254 100644 --- a/src/Random.php +++ b/src/Random.php @@ -18,8 +18,8 @@ namespace DtApp\ThinkLibrary; /** * 随机管理类 - * Class Ints - * @mixin Ints + * Class Random + * @mixin Random * @package DtApp\ThinkLibrary */ class Random diff --git a/src/Str.php b/src/Str.php index 6b6408a..0d1df6d 100644 --- a/src/Str.php +++ b/src/Str.php @@ -18,8 +18,8 @@ namespace DtApp\ThinkLibrary; /** * 字符串管理类 - * Class Ints - * @mixin Ints + * Class Str + * @mixin Str * @package DtApp\ThinkLibrary */ class Str diff --git a/src/Xmls.php b/src/Xmls.php index 43d7c7e..51e99b5 100644 --- a/src/Xmls.php +++ b/src/Xmls.php @@ -38,7 +38,7 @@ class Xmls $xml = ""; foreach ($values as $key => $val) { if (is_array($val)) { - $xml .= "<" . $key . ">" . toXml($val) . ""; + $xml .= "<" . $key . ">" . $this->toXml($val) . ""; } else if (is_numeric($val)) { $xml .= "<" . $key . ">" . $val . ""; } else { diff --git a/src/facade/Date.php b/src/facade/Date.php index 481ef5e..92a05c6 100644 --- a/src/facade/Date.php +++ b/src/facade/Date.php @@ -20,7 +20,7 @@ use think\Facade; /** * 日期门面 - * Class Preg + * Class Date * @see \DtApp\ThinkLibrary\Date * @package think\facade * @mixin \DtApp\ThinkLibrary\Date diff --git a/src/facade/Files.php b/src/facade/Files.php index c282e69..944b104 100644 --- a/src/facade/Files.php +++ b/src/facade/Files.php @@ -20,7 +20,7 @@ use think\Facade; /** * 文件门面 - * Class Preg + * Class Files * @see \DtApp\ThinkLibrary\Files * @package think\facade * @mixin \DtApp\ThinkLibrary\Files diff --git a/src/facade/Ints.php b/src/facade/Ints.php index 83f7854..31059b2 100644 --- a/src/facade/Ints.php +++ b/src/facade/Ints.php @@ -20,7 +20,7 @@ use think\Facade; /** * 数字门面 - * Class Preg + * Class Ints * @see \DtApp\ThinkLibrary\Ints * @package think\facade * @mixin \DtApp\ThinkLibrary\Ints diff --git a/src/facade/Random.php b/src/facade/Random.php index 70b8cb7..99939e5 100644 --- a/src/facade/Random.php +++ b/src/facade/Random.php @@ -20,7 +20,7 @@ use think\facade; /** * 随机门面 - * Class Preg + * Class Random * @see \DtApp\ThinkLibrary\Random * @package think\facade * @mixin \DtApp\ThinkLibrary\Random diff --git a/src/facade/Str.php b/src/facade/Str.php index 229fc13..bb20ca9 100644 --- a/src/facade/Str.php +++ b/src/facade/Str.php @@ -20,7 +20,7 @@ use think\facade; /** * 字符串门面 - * Class Preg + * Class Str * @see \DtApp\ThinkLibrary\Str * @package think\facade * @mixin \DtApp\ThinkLibrary\Str diff --git a/src/facade/Time.php b/src/facade/Time.php index 6efea31..884e265 100644 --- a/src/facade/Time.php +++ b/src/facade/Time.php @@ -20,7 +20,7 @@ use think\Facade; /** * 时间门面 - * Class Preg + * Class Time * @see \DtApp\ThinkLibrary\Time * @package think\facade * @mixin \DtApp\ThinkLibrary\Time diff --git a/src/facade/UnIqId.php b/src/facade/UnIqId.php index a708f36..161a273 100644 --- a/src/facade/UnIqId.php +++ b/src/facade/UnIqId.php @@ -20,7 +20,7 @@ use think\Facade; /** * 唯一ID门面 - * Class Preg + * Class UnIqId * @see \DtApp\ThinkLibrary\UnIqId * @package think\facade * @mixin \DtApp\ThinkLibrary\UnIqId diff --git a/src/facade/Urls.php b/src/facade/Urls.php index aef15ba..8fe4a36 100644 --- a/src/facade/Urls.php +++ b/src/facade/Urls.php @@ -20,7 +20,7 @@ use think\Facade; /** * 网址门面 - * Class Preg + * Class Urls * @see \DtApp\ThinkLibrary\Urls * @package think\facade * @mixin \DtApp\ThinkLibrary\Urls diff --git a/src/facade/Xmls.php b/src/facade/Xmls.php index 471fabd..1cb2434 100644 --- a/src/facade/Xmls.php +++ b/src/facade/Xmls.php @@ -20,10 +20,11 @@ use think\Facade; /** * XML门面 - * Class Preg + * Class Xmls * @see \DtApp\ThinkLibrary\Xmls + * @package think\facade * @mixin \DtApp\ThinkLibrary\Xmls - * @package DtApp\ThinkLibrary\facade + * * @method \DtApp\ThinkLibrary\Xmls toXml(array $values) string 数组转换为xml * @method \DtApp\ThinkLibrary\Xmls toArray(string $xml) string 将XML转为array */