mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
Merge branch 'master' of https://github.com/liu21st/think
This commit is contained in:
@@ -26,7 +26,7 @@ class Transform
|
|||||||
private static function init($type)
|
private static function init($type)
|
||||||
{
|
{
|
||||||
if (!isset(self::$handler[$type])) {
|
if (!isset(self::$handler[$type])) {
|
||||||
$class = '\\think\\transform\\driver\\' . strtolower($type);
|
$class = '\\org\\transform\\driver\\' . strtolower($type);
|
||||||
self::$handler[$type] = new $class();
|
self::$handler[$type] = new $class();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class Xml
|
|||||||
* @param string $id 数字索引key转换为的属性名
|
* @param string $id 数字索引key转换为的属性名
|
||||||
* @return string
|
* @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) {
|
foreach ($data as $key => $value) {
|
||||||
//指定默认的数字key
|
//指定默认的数字key
|
||||||
|
|||||||
Reference in New Issue
Block a user