Commit f38001b3 authored by esf's avatar esf

芜湖站分表

parent 245f1a7a
...@@ -209,7 +209,18 @@ if ( ! function_exists('get_ip')) ...@@ -209,7 +209,18 @@ if ( ! function_exists('get_ip'))
if ( ! function_exists('get_upload_tblname')) if ( ! function_exists('get_upload_tblname'))
{ {
function get_upload_tblname($tbl,$id){ function get_upload_tblname($tbl,$id){
if(GB_CITY == 'wh'){
if($tbl == 'sell' && $id < 10310000) return 'upload';
if($tbl == 'rent' && $id < 1577000) return 'upload';
if($tbl == 'sell' && ($id >= 10310000 && $id < 15591000)) return 'upload1';
if($tbl == 'rent' && ($id >= 1577000 && $id < 1809000)) return 'upload1';
return 'upload2';
}
if(GB_CITY !='nj') return 'upload'; if(GB_CITY !='nj') return 'upload';
if($tbl == 'sell' && $id < 23972101) return 'upload0'; if($tbl == 'sell' && $id < 23972101) return 'upload0';
...@@ -348,8 +359,27 @@ if ( ! function_exists('get_upload_tblname')) ...@@ -348,8 +359,27 @@ if ( ! function_exists('get_upload_tblname'))
if($tbl == 'sell' && ($id >= 166754880 && $id < 264744742)) return 'upload29'; if($tbl == 'sell' && ($id >= 166754880 && $id < 264744742)) return 'upload29';
if($tbl == 'rent' && ($id >= 63483875 && $id < 84955643)) return 'upload29'; if($tbl == 'rent' && ($id >= 63483875 && $id < 84955643)) return 'upload29';
return 'upload30'; if($tbl == 'sell' && ($id >= 264744742 && $id < 271465540)) return 'upload30';
if($tbl == 'rent' && ($id >= 84955643 && $id < 86646071)) return 'upload30';
if($tbl == 'sell' && ($id >= 271465540 && $id < 282952050)) return 'upload31';
if($tbl == 'rent' && ($id >= 86646071 && $id < 89874731)) return 'upload31';
if($tbl == 'sell' && ($id >= 282952050 && $id < 288033939)) return 'upload32';
if($tbl == 'rent' && ($id >= 89874731 && $id < 91709557)) return 'upload32';
if($tbl == 'sell' && ($id >= 288033939 && $id < 289572177)) return 'upload33';
if($tbl == 'rent' && ($id >= 91709557 && $id < 92295581)) return 'upload33';
if($tbl == 'sell' && ($id >= 289572177 && $id < 332826911)) return 'upload34';
if($tbl == 'rent' && ($id >= 92295581 && $id < 105588509)) return 'upload34';
return 'upload35';
} }
} }
......
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