Commit 7a33d0dd authored by 王源's avatar 王源 🎧

优化导出append方法

parent 99a3448c
...@@ -237,7 +237,7 @@ class Exporter ...@@ -237,7 +237,7 @@ class Exporter
if (isset($data[$v])) { if (isset($data[$v])) {
$result[] = $data[$v]; $result[] = $data[$v];
} else { } else {
new \Exception("key为{$v}的数据不存在"); $result[] = '';
} }
} else { } else {
$separate = explode("|", $v); $separate = explode("|", $v);
...@@ -246,7 +246,7 @@ class Exporter ...@@ -246,7 +246,7 @@ class Exporter
$t = count($list) - 1; $t = count($list) - 1;
$b = $data; $b = $data;
foreach ($list as $lk => $lv) { foreach ($list as $lk => $lv) {
if (isset($b[$lv])) { if (isset($b[$lv]) && $b[$lv]) {
$b = $b[$lv]; $b = $b[$lv];
} else { } else {
$b = ""; $b = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment