This commit is contained in:
thinkphp
2015-12-10 09:38:20 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ class Transform
private static function init($type)
{
if (!isset(self::$handler[$type])) {
$class = '\\think\\transform\\driver\\' . strtolower($type);
$class = '\\org\\transform\\driver\\' . strtolower($type);
self::$handler[$type] = new $class();
}
}

View File

@@ -72,7 +72,7 @@ class Xml
* @param string $id 数字索引key转换为的属性名
* @return string
*/
public static function data2xml(SimpleXMLElement $xml, $data, $item = 'item', $id = 'id')
public static function data2xml(\SimpleXMLElement $xml, $data, $item = 'item', $id = 'id')
{
foreach ($data as $key => $value) {
//指定默认的数字key