| 
					
				 | 
			
			
				@@ -88,7 +88,16 @@ class Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $create = 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($create == 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $province = Dever::db('area/province')->getAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $array = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    'value' => "-1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    'name' => '请选择', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $province = array_merge($array, Dever::db('area/province')->getAll()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $province_data = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $city_data = array(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -98,14 +107,21 @@ class Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $province_data[$k]['name'] = $v['name']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $province_data[$k]['id'] = $v['value']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                $city = Dever::db('area/city')->getAll(array('province_id' => $v['value'])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if ($v['value'] <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $city = array_merge($array, Dever::db('area/city')->getAll(array('province_id' => $v['value']))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($city as $k1 => $v1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $city_data[$v['value']][$k1]['province'] = $v['name']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $city_data[$v['value']][$k1]['name'] = $v1['name']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $city_data[$v['value']][$k1]['id'] = $v1['value']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    $county = Dever::db('area/county')->getAll(array('city_id' => $v1['value'])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if ($v1['value'] <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $county = array_merge($array, Dever::db('area/county')->getAll(array('city_id' => $v1['value']))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     foreach ($county as $k2 => $v2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         $county_data[$v1['value']][$k2]['city'] = $v1['name']; 
			 |