fajiao
3 years ago
4 changed files with 588 additions and 0 deletions
Binary file not shown.
@ -0,0 +1,401 @@ |
|||
/* |
|||
Navicat Premium Data Transfer |
|||
Source Server : 1.29 |
|||
Source Server Type : MySQL |
|||
Source Server Version : 50717 |
|||
Source Host : 192.168.1.29:3306 |
|||
Source Schema : gbs |
|||
Target Server Type : MySQL |
|||
Target Server Version : 50717 |
|||
File Encoding : 65001 |
|||
Date: 01/08/2019 10:23:40 |
|||
*/ |
|||
|
|||
SET NAMES utf8mb4; |
|||
SET FOREIGN_KEY_CHECKS = 0; |
|||
|
|||
-- ---------------------------- |
|||
-- Table structure for gb_city_code |
|||
-- ---------------------------- |
|||
DROP TABLE IF EXISTS `gb_city_code`; |
|||
CREATE TABLE `gb_city_code` ( |
|||
`id` varchar(6) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, |
|||
`position` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
|||
`parent_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
|||
`level` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|||
|
|||
-- ---------------------------- |
|||
-- Records of gb_city_code |
|||
-- ---------------------------- |
|||
INSERT INTO `gb_city_code` VALUES ('110000', '北京市', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('120000', '天津市', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('130000', '河北省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('130100', '石家庄市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130200', '唐山市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130300', '秦皇岛市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130400', '邯郸市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130500', '邢台市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130600', '保定市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130700', '张家口市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130800', '承德市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('130900', '沧州市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('131000', '廊坊市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('131100', '衡水市', '130000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140000', '山西省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('140100', '太原市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140200', '大同市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140300', '阳泉市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140400', '长治市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140500', '晋城市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140600', '朔州市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140700', '晋中市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140800', '运城市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('140900', '忻州市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('141000', '临汾市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('141100', '吕梁市', '140000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150000', '内蒙古自治区', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('150100', '呼和浩特市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150200', '包头市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150300', '乌海市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150400', '赤峰市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150500', '通辽市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150600', '鄂尔多斯市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150700', '呼伦贝尔市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150800', '巴彦淖尔市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('150900', '乌兰察布市', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('152200', '兴安盟', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('152500', '锡林郭勒盟', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('152900', '阿拉善盟', '150000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210000', '辽宁省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('210100', '沈阳市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210200', '大连市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210300', '鞍山市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210400', '抚顺市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210500', '本溪市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210600', '丹东市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210700', '锦州市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210800', '营口市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('210900', '阜新市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('211000', '辽阳市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('211100', '盘锦市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('211200', '铁岭市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('211300', '朝阳市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('211400', '葫芦岛市', '210000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220000', '吉林省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('220100', '长春市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220200', '吉林市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220300', '四平市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220400', '辽源市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220500', '通化市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220600', '白山市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220700', '松原市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('220800', '白城市', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('222400', '延边朝鲜族自治州', '220000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230000', '黑龙江省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('230100', '哈尔滨市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230200', '齐齐哈尔市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230300', '鸡西市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230400', '鹤岗市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230500', '双鸭山市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230600', '大庆市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230700', '伊春市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230800', '佳木斯市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('230900', '七台河市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('231000', '牡丹江市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('231100', '黑河市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('231200', '绥化市', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('232700', '大兴安岭地区', '230000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('310000', '上海市', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('320000', '江苏省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('320100', '南京市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320200', '无锡市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320300', '徐州市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320400', '常州市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320500', '苏州市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320600', '南通市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320700', '连云港市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320800', '淮安市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('320900', '盐城市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('321000', '扬州市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('321100', '镇江市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('321200', '泰州市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('321300', '宿迁市', '320000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330000', '浙江省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('330100', '杭州市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330200', '宁波市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330300', '温州市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330400', '嘉兴市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330500', '湖州市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330600', '绍兴市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330700', '金华市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330800', '衢州市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('330900', '舟山市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('331000', '台州市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('331100', '丽水市', '330000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340000', '安徽省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('340100', '合肥市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340200', '芜湖市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340300', '蚌埠市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340400', '淮南市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340500', '马鞍山市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340600', '淮北市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340700', '铜陵市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('340800', '安庆市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341000', '黄山市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341100', '滁州市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341200', '阜阳市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341300', '宿州市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341500', '六安市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341600', '亳州市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341700', '池州市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('341800', '宣城市', '340000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350000', '福建省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('350100', '福州市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350200', '厦门市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350300', '莆田市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350400', '三明市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350500', '泉州市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350600', '漳州市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350700', '南平市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350800', '龙岩市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('350900', '宁德市', '350000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360000', '江西省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('360100', '南昌市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360200', '景德镇市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360300', '萍乡市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360400', '九江市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360500', '新余市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360600', '鹰潭市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360700', '赣州市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360800', '吉安市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('360900', '宜春市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('361000', '抚州市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('361100', '上饶市', '360000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370000', '山东省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('370100', '济南市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370200', '青岛市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370300', '淄博市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370400', '枣庄市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370500', '东营市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370600', '烟台市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370700', '潍坊市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370800', '济宁市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('370900', '泰安市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371000', '威海市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371100', '日照市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371200', '莱芜市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371300', '临沂市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371400', '德州市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371500', '聊城市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371600', '滨州市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('371700', '菏泽市', '370000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410000', '河南省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('410100', '郑州市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410200', '开封市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410300', '洛阳市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410400', '平顶山市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410500', '安阳市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410600', '鹤壁市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410700', '新乡市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410800', '焦作市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('410900', '濮阳市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411000', '许昌市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411100', '漯河市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411200', '三门峡市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411300', '南阳市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411400', '商丘市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411500', '信阳市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411600', '周口市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('411700', '驻马店市', '410000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420000', '湖北省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('420100', '武汉市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420200', '黄石市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420300', '十堰市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420500', '宜昌市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420600', '襄阳市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420700', '鄂州市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420800', '荆门市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('420900', '孝感市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('421000', '荆州市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('421100', '黄冈市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('421200', '咸宁市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('421300', '随州市', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('422800', '恩施土家族苗族自治州', '420000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430000', '湖南省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('430100', '长沙市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430200', '株洲市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430300', '湘潭市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430400', '衡阳市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430500', '邵阳市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430600', '岳阳市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430700', '常德市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430800', '张家界市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('430900', '益阳市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('431000', '郴州市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('431100', '永州市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('431200', '怀化市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('431300', '娄底市', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('433100', '湘西土家族苗族自治州', '430000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440000', '广东省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('440100', '广州市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440200', '韶关市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440300', '深圳市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440400', '珠海市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440500', '汕头市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440600', '佛山市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440700', '江门市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440800', '湛江市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('440900', '茂名市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441200', '肇庆市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441300', '惠州市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441400', '梅州市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441500', '汕尾市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441600', '河源市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441700', '阳江市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441800', '清远市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('441900', '东莞市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('442000', '中山市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('445100', '潮州市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('445200', '揭阳市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('445300', '云浮市', '440000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450000', '广西壮族自治区', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('450100', '南宁市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450200', '柳州市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450300', '桂林市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450400', '梧州市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450500', '北海市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450600', '防城港市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450700', '钦州市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450800', '贵港市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('450900', '玉林市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('451000', '百色市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('451100', '贺州市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('451200', '河池市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('451300', '来宾市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('451400', '崇左市', '450000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('460000', '海南省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('460100', '海口市', '460000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('460200', '三亚市', '460000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('460300', '三沙市', '460000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('460400', '儋州市', '460000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('500000', '重庆市', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('510000', '四川省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('510100', '成都市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510300', '自贡市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510400', '攀枝花市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510500', '泸州市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510600', '德阳市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510700', '绵阳市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510800', '广元市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('510900', '遂宁市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511000', '内江市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511100', '乐山市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511300', '南充市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511400', '眉山市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511500', '宜宾市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511600', '广安市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511700', '达州市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511800', '雅安市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('511900', '巴中市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('512000', '资阳市', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('513200', '阿坝藏族羌族自治州', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('513300', '甘孜藏族自治州', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('513400', '凉山彝族自治州', '510000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('520000', '贵州省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('520100', '贵阳市', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('520200', '六盘水市', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('520300', '遵义市', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('520400', '安顺市', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('520500', '毕节市', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('520600', '铜仁市', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('522300', '黔西南布依族苗族自治州', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('522600', '黔东南苗族侗族自治州', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('522700', '黔南布依族苗族自治州', '520000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530000', '云南省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('530100', '昆明市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530300', '曲靖市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530400', '玉溪市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530500', '保山市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530600', '昭通市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530700', '丽江市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530800', '普洱市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('530900', '临沧市', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('532300', '楚雄彝族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('532500', '红河哈尼族彝族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('532600', '文山壮族苗族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('532800', '西双版纳傣族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('532900', '大理白族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('533100', '德宏傣族景颇族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('533300', '怒江傈僳族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('533400', '迪庆藏族自治州', '530000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('540000', '西藏自治区', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('540100', '拉萨市', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('540200', '日喀则市', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('540300', '昌都市', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('540400', '林芝市', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('540500', '山南市', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('540600', '那曲市', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('542500', '阿里地区', '540000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610000', '陕西省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('610100', '西安市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610200', '铜川市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610300', '宝鸡市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610400', '咸阳市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610500', '渭南市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610600', '延安市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610700', '汉中市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610800', '榆林市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('610900', '安康市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('611000', '商洛市', '610000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620000', '甘肃省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('620100', '兰州市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620200', '嘉峪关市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620300', '金昌市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620400', '白银市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620500', '天水市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620600', '武威市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620700', '张掖市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620800', '平凉市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('620900', '酒泉市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('621000', '庆阳市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('621100', '定西市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('621200', '陇南市', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('622900', '临夏回族自治州', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('623000', '甘南藏族自治州', '620000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('630000', '青海省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('630100', '西宁市', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('630200', '海东市', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('632200', '海北藏族自治州', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('632300', '黄南藏族自治州', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('632500', '海南藏族自治州', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('632600', '果洛藏族自治州', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('632700', '玉树藏族自治州', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('632800', '海西蒙古族藏族自治州', '630000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('640000', '宁夏回族自治区', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('640100', '银川市', '640000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('640200', '石嘴山市', '640000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('640300', '吴忠市', '640000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('640400', '固原市', '640000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('640500', '中卫市', '640000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('650000', '新疆维吾尔自治区', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('650100', '乌鲁木齐市', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('650200', '克拉玛依市', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('650400', '吐鲁番市', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('650500', '哈密市', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('652300', '昌吉回族自治州', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('652700', '博尔塔拉蒙古自治州', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('652800', '巴音郭楞蒙古自治州', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('652900', '阿克苏地区', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('653000', '克孜勒苏柯尔克孜自治州', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('653100', '喀什地区', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('653200', '和田地区', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('654000', '伊犁哈萨克自治州', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('654200', '塔城地区', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('654300', '阿勒泰地区', '650000', 'city'); |
|||
INSERT INTO `gb_city_code` VALUES ('710000', '台湾省', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('810000', '香港特别行政区', '0', 'province'); |
|||
INSERT INTO `gb_city_code` VALUES ('820000', '澳门特别行政区', '0', 'province'); |
|||
|
|||
SET FOREIGN_KEY_CHECKS = 1; |
After Width: | Height: | Size: 707 KiB |
@ -0,0 +1,187 @@ |
|||
|
|||
|
|||
|
|||
|
|||
# SRS |
|||
|
|||
https://github.com/ossrs/srs |
|||
|
|||
|
|||
|
|||
# SRS - 4.0release |
|||
|
|||
参考 |
|||
|
|||
https://github.com/ossrs/srs/wiki/v4_CN_Home |
|||
|
|||
``` |
|||
# 下载源码 |
|||
git clone -b 4.0release https://gitee.com/ossrs/srs.git |
|||
|
|||
# 编译 |
|||
cd srs/trunk |
|||
./configure |
|||
make |
|||
|
|||
# 启动服务器 |
|||
./objs/srs -c conf/srs.conf |
|||
|
|||
# 查看SRS的状态 |
|||
./etc/init.d/srs start |
|||
./etc/init.d/srs status |
|||
./etc/init.d/srs stop |
|||
|
|||
# 或者看SRS的日志 |
|||
tail -n 30 -f ./objs/srs.log |
|||
|
|||
# SRS HOME |
|||
http://localhost:8080/ |
|||
# SRS console |
|||
http://localhost:8080/console/ng_index.html#/summaries?port=1985 |
|||
# SRS player |
|||
http://localhost:8080/players/srs_player.html?autostart=true |
|||
``` |
|||
|
|||
|
|||
|
|||
# SRS - feature/gb28181 |
|||
|
|||
## 编译 SRS --with-gb28181 |
|||
|
|||
参考 |
|||
|
|||
https://github.com/ossrs/srs/issues/1500#issue-528623588 |
|||
|
|||
https://github.com/xialixin/srs_code_note/blob/master/doc/srs_gb28181.md |
|||
|
|||
https://github.com/ossrs/srs/issues/2763 |
|||
|
|||
https://github.com/ossrs/srs/wiki/v4_CN_WebRTC |
|||
|
|||
|
|||
|
|||
### 编译 SRS |
|||
|
|||
``` |
|||
git checkout feature/gb28181 && |
|||
./configure --with-gb28181 && |
|||
make clean && make |
|||
``` |
|||
|
|||
|
|||
|
|||
### 修改 SRS 启动参数 |
|||
|
|||
./conf/push.gb28181.conf 用于 GB28181 UDP 传输,适用于局域网 |
|||
|
|||
./conf/push.gb28181.tcp.conf 用于 GB28181 TCP 传输,适用于互联网 |
|||
|
|||
``` |
|||
vim conf/push.gb28181.conf |
|||
# 修改此参数为你的服务器IP,用于 SIP 服务器 |
|||
stream_caster { |
|||
host 192.168.1.70; |
|||
} |
|||
# 修改此参数为你的服务器IP,用于 webrtc 播放 |
|||
rtc_server { |
|||
candidate 192.168.1.70; |
|||
} |
|||
# 添加此参数,用于 webrtc 播放 |
|||
vhost __defaultVhost__ { |
|||
rtc { |
|||
rtmp_to_rtc on; |
|||
} |
|||
} |
|||
|
|||
sip { |
|||
# sip监听udp端口 |
|||
listen 5060; |
|||
# SIP server ID(SIP服务器ID). |
|||
# 设备端配置编号需要与该值一致,否则无法注册 |
|||
serial 34020000002000000001; |
|||
# SIP server domain(SIP服务器域) |
|||
realm 3402000000; |
|||
} |
|||
``` |
|||
|
|||
|
|||
|
|||
### 启动 SRS |
|||
|
|||
``` |
|||
# 启动 |
|||
./objs/srs -c conf/push.gb28181.conf |
|||
|
|||
# 查看SRS的状态 |
|||
./etc/init.d/srs start |
|||
./etc/init.d/srs status |
|||
./etc/init.d/srs stop |
|||
|
|||
# SRS HOME |
|||
http://192.168.1.70:8080/ |
|||
# SRS console |
|||
http://192.168.1.70:8080/console/ng_index.html#/summaries?port=1985 |
|||
# SRS player |
|||
http://192.168.1.70:8080/players/srs_player.html?autostart=true |
|||
``` |
|||
|
|||
|
|||
|
|||
## 设备通过 GB28181 注册 SRS 的 SIP |
|||
|
|||
参考 |
|||
|
|||
https://github.com/xialixin/srs_code_note/blob/master/doc/srs_gb28181.md |
|||
|
|||
https://mp.weixin.qq.com/s/VIPSPaBB5suUk7_I2oOkMw |
|||
|
|||
https://blog.csdn.net/jiuaiwo1314/article/details/104986626 |
|||
|
|||
chrome://webrtc-internals |
|||
|
|||
### IPC 配置 SIP 界面 |
|||
|
|||
海康 IPC 配置界面 |
|||
|
|||
![](https://github.com/xialixin/srs_code_note/raw/master/doc/srs_gb28181_hik_nvr.jpg) |
|||
|
|||
|
|||
|
|||
大华IPC配置界面 |
|||
|
|||
![](https://github.com/xialixin/srs_code_note/raw/master/doc/srs_gb28181_dh_ipc.jpg) |
|||
|
|||
|
|||
|
|||
### IPC 配置 SIP 信息 |
|||
|
|||
设备端进行配置相应的SRS SIP信息,四元组(SIP ID、域、IP和端口) |
|||
|
|||
![](https://mmbiz.qpic.cn/mmbiz_png/LMDDiaViaw3KJmWbmELwsnWeR0AOfuibk1OZonLg1zr498N7sicjK83T9ib3VXAf9Nang53XAcibawhg40XFNGaA7Jsw/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1) |
|||
|
|||
|
|||
|
|||
设备端配置正确后,则设备会注册上来,SRS会默认调用INVITE进行拉流 |
|||
|
|||
![](https://mmbiz.qpic.cn/mmbiz_png/LMDDiaViaw3KJmWbmELwsnWeR0AOfuibk1OD1cvC3ypkQkqWG7WRIiaxQ2Egu08iaEicQDHZHfEzOE0vnBtTfbbOoibiaQ/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1) |
|||
|
|||
|
|||
|
|||
### 查看 IPC 注册效果 |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Loading…
Reference in new issue