正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -1433,10 +1433,12 @@ class Car extends Base | @@ -1433,10 +1433,12 @@ class Car extends Base | ||
1433 | $itemArr = []; | 1433 | $itemArr = []; |
1434 | $list = Db::name("route") | 1434 | $list = Db::name("route") |
1435 | ->select(); | 1435 | ->select(); |
1436 | + $newlist=[]; | ||
1436 | foreach ($list as $k => $v) { | 1437 | foreach ($list as $k => $v) { |
1437 | $list[$k]['specificaddress'] = Db::name("specificaddress") | 1438 | $list[$k]['specificaddress'] = Db::name("specificaddress") |
1438 | ->where("route_id", $list[$k]['id']) | 1439 | ->where("route_id", $list[$k]['id']) |
1439 | ->select(); | 1440 | ->select(); |
1441 | + $newlist[$k][0]=$list[$k]; | ||
1440 | } | 1442 | } |
1441 | $charArray = []; | 1443 | $charArray = []; |
1442 | if (!empty($list)) { | 1444 | if (!empty($list)) { |
-
请 注册 或 登录 后发表评论