$area_list==> Array ( [0] => Array ( [ap] => 19 [ac] => 512962 [ax] => 513621 ) [1] => Array ( [ap] => 1 [ac] => 32 [ax] => 256 ) [2] => Array ( [ap] => 16 [ac] => 409220 [ax] => 412722 ) ) foreach($area_list as $k2=>$v2){ foreach ($v2 as $k3=>$v3) { $map[‘id‘]=$v3; $area_full_names[$k2][$k3]=M(‘area‘)->where($map)->getField(‘title‘); } } $area_full_names==> Array ( [0] => Array ( [ap] => 广东 [ac] => 深圳市 [ax] => 龙岗区 ) [1] => Array ( [ap] => 北京 [ac] => 北京 [ax] => 西城区 ) [2] => Array ( [ap] => 宁夏 [ac] => 银川市 [ax] => 贺兰县 ) )
时间: 2024-10-13 05:56:05