作者 郭文星

132

@@ -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)) {