From 6c3143ac16e1c248e2d2a034db764146d060894a Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Mon, 13 Aug 2018 20:24:41 +0800 Subject: [PATCH] first commit --- .env.example | 38 + .gitattributes | 5 + .gitignore | 18 + app/Admin/Controllers/BrandController.php | 144 + app/Admin/Controllers/CarouselController.php | 134 + app/Admin/Controllers/ClassController.php | 137 + app/Admin/Controllers/ExampleController.php | 96 + .../Controllers/FrontEndUserController.php | 113 + app/Admin/Controllers/GoodController.php | 166 + app/Admin/Controllers/HomeController.php | 39 + app/Admin/Controllers/NewsController.php | 109 + .../Controllers/ProjectFuncDotController.php | 147 + .../Controllers/ProjectFuncTypeController.php | 126 + .../Controllers/ProjectModelController.php | 124 + .../Controllers/ProjectTypeController.php | 127 + .../Controllers/Shop/FeedbackController.php | 100 + .../Shop/ShopAttributeCategoryController.php | 104 + .../Shop/ShopAttributeController.php | 105 + .../Shop/ShopCategoryController.php | 151 + .../Controllers/Shop/ShopGoodsController.php | 256 + .../Controllers/Shop/ShopOrderController.php | 162 + .../Shop/ShopSpecificationController.php | 103 + .../Controllers/Shop/ShopTopicController.php | 152 + app/Admin/Controllers/SpecialController.php | 140 + app/Admin/Controllers/UploadController.php | 104 + app/Admin/Controllers/UsersController.php | 132 + app/Admin/Extensions/Column/ExpandRow.php | 47 + app/Admin/Extensions/Column/OpenMap.php | 73 + .../Extensions/Form/AddSpecification.php | 37 + app/Admin/Extensions/Form/CKEditor.php | 22 + app/Admin/Extensions/Form/MarkdownEditor.php | 36 + app/Admin/Extensions/Form/MyMap.php | 159 + app/Admin/Extensions/Form/PHPEditor.php | 44 + app/Admin/Extensions/Form/WangEditor.php | 75 + app/Admin/Extensions/WangEditor.php | 30 + app/Admin/bootstrap.php | 29 + app/Admin/routes.php | 73 + app/Common/functions.php | 197 + app/Console/Commands/AutoCompleteOrder.php | 64 + app/Console/Commands/MiniInstall.php | 45 + app/Console/Kernel.php | 42 + app/Exceptions/Handler.php | 53 + app/Helpers/Api/ApiResponse.php | 135 + .../Controllers/Api/AddressesController.php | 218 + .../Controllers/Api/AddrjsonbController.php | 35 + app/Http/Controllers/Api/ApiController.php | 28 + .../Api/AuthenticateController.php | 105 + app/Http/Controllers/Api/GoodsController.php | 51 + app/Http/Controllers/Api/IndexController.php | 41 + .../Controllers/Api/MyOrderController.php | 90 + .../Controllers/Api/NewsApiController.php | 30 + .../Controllers/Api/PaymentController.php | 118 + .../Api/ProjectElementController.php | 59 + .../Controllers/Api/ProjectJsonController.php | 44 + .../Controllers/Api/ShopAddressController.php | 137 + .../Controllers/Api/ShopBrandController.php | 36 + .../Controllers/Api/ShopCartController.php | 167 + .../Api/ShopCategoryController.php | 46 + .../Controllers/Api/ShopCollectController.php | 93 + .../Controllers/Api/ShopCommentController.php | 153 + .../Api/ShopFeedbackController.php | 46 + .../Api/ShopFootprintController.php | 23 + .../Controllers/Api/ShopGoodsController.php | 152 + .../Controllers/Api/ShopOrderController.php | 115 + .../Controllers/Api/ShopRegionController.php | 32 + .../Controllers/Api/ShopTopicController.php | 37 + .../Api/bak/CreateCityDataController.php | 51 + .../Controllers/Api/bak/IphoneController.php | 52 + .../Api/bak/OrderInfoController.php | 139 + .../Controllers/Api/bak/OrdersController.php | 215 + .../Auth/ForgotPasswordController.php | 32 + app/Http/Controllers/Auth/LoginController.php | 39 + .../Controllers/Auth/RegisterController.php | 71 + .../Auth/ResetPasswordController.php | 39 + app/Http/Controllers/Controller.php | 13 + app/Http/Kernel.php | 61 + app/Http/Middleware/EncryptCookies.php | 17 + .../Middleware/RedirectIfAuthenticated.php | 26 + app/Http/Middleware/TrimStrings.php | 18 + app/Http/Middleware/TrustProxies.php | 29 + app/Http/Middleware/VerifyCsrfToken.php | 17 + app/Http/Resources/Carousel.php | 26 + app/Http/Resources/DefaultAddr.php | 36 + app/Http/Resources/Good.php | 41 + app/Http/Resources/GoodCollection.php | 30 + app/Http/Resources/GoodDetail.php | 63 + app/Http/Resources/ProjectType.php | 38 + app/Http/Resources/ShopAddress.php | 35 + app/Http/Resources/ShopBrand.php | 37 + app/Http/Resources/ShopCart.php | 34 + app/Http/Resources/ShopCategory.php | 35 + app/Http/Resources/ShopCollect.php | 27 + app/Http/Resources/ShopComment.php | 47 + app/Http/Resources/ShopFootprint.php | 28 + app/Http/Resources/ShopGoods.php | 52 + app/Http/Resources/ShopGoodsAttribute.php | 25 + app/Http/Resources/ShopOrder.php | 53 + app/Http/Resources/ShopOrderGoods.php | 26 + app/Http/Resources/ShopTopic.php | 39 + app/Http/Resources/Special.php | 25 + app/Logics/AddressLogic.php | 51 + app/Logics/Buy.php | 237 + app/Logics/CartLogic.php | 115 + app/Logics/GoodsLogic.php | 32 + app/Logics/OrderLogic.php | 32 + app/Logics/ProjectControl.php | 198 + app/Logics/ShopCommentLogic.php | 32 + app/Logics/ShopGoodsLogic.php | 122 + app/Logics/ShopIssueLogic.php | 23 + app/Logics/readme.txt | 3 + app/Models/Address.php | 87 + app/Models/Addrjson.php | 18 + app/Models/Carousel.php | 64 + app/Models/Classes.php | 76 + app/Models/Good.php | 82 + app/Models/News.php | 17 + app/Models/ProjectFuncdot.php | 24 + app/Models/ProjectFunctype.php | 11 + app/Models/ProjectModel.php | 19 + app/Models/ProjectType.php | 32 + app/Models/ShopAddress.php | 33 + app/Models/ShopAttribute.php | 13 + app/Models/ShopAttributeCategory.php | 25 + app/Models/ShopBrand.php | 82 + app/Models/ShopCart.php | 53 + app/Models/ShopCategory.php | 99 + app/Models/ShopCollect.php | 38 + app/Models/ShopComment.php | 66 + app/Models/ShopCommentPicture.php | 12 + app/Models/ShopCoupon.php | 11 + app/Models/ShopFeedback.php | 37 + app/Models/ShopFootprint.php | 27 + app/Models/ShopGoods.php | 153 + app/Models/ShopGoodsAttribute.php | 25 + app/Models/ShopGoodsIssue.php | 16 + app/Models/ShopGoodsSpecification.php | 12 + app/Models/ShopGoodsTechnology.php | 26 + app/Models/ShopOrder.php | 103 + app/Models/ShopOrderExpress.php | 11 + app/Models/ShopOrderGoods.php | 11 + app/Models/ShopProduct.php | 17 + app/Models/ShopRegion.php | 21 + app/Models/ShopShipper.php | 11 + app/Models/ShopSpecification.php | 13 + app/Models/ShopTopic.php | 56 + app/Models/ShopUserCoupon.php | 38 + app/Models/Special.php | 50 + app/Providers/AppServiceProvider.php | 30 + app/Providers/AuthServiceProvider.php | 31 + app/Providers/BroadcastServiceProvider.php | 21 + app/Providers/EventServiceProvider.php | 32 + app/Providers/RouteServiceProvider.php | 73 + app/User.php | 63 + artisan | 53 + bootstrap/app.php | 55 + bootstrap/cache/.gitignore | 2 + composer.json | 67 + config/admin.php | 156 + config/app.php | 239 + config/auth.php | 102 + config/broadcasting.php | 59 + config/cache.php | 94 + config/database.php | 120 + config/filesystems.php | 86 + config/mail.php | 123 + config/queue.php | 85 + config/services.php | 38 + config/session.php | 197 + config/view.php | 33 + config/wechat.php | 136 + database/.gitignore | 1 + database/factories/UserFactory.php | 23 + .../2014_10_12_000000_create_users_table.php | 35 + ...12_100000_create_password_resets_table.php | 32 + .../2016_01_04_173148_create_admin_tables.php | 113 + .../2018_02_08_093611_add_column_to_users.php | 42 + ...2018_03_02_115751_create_classes_table.php | 40 + ...018_03_04_025119_create_carousel_table.php | 39 + ...018_03_04_025120_create_special _table.php | 40 + ..._103843_add_goods_id_to_carousel_table.php | 40 + .../2018_03_06_134349_create_news_table.php | 38 + ...8_03_16_095404_create_errors_log_table.php | 38 + ...05_05_103843_add_icon_to_special_table.php | 38 + ...05_17_031959_create_shop_address_table.php | 52 + ...9_create_shop_attribute_category_table.php | 34 + ..._17_031959_create_shop_attribute_table.php | 37 + ...8_05_17_031959_create_shop_brand_table.php | 44 + ...18_05_17_031959_create_shop_cart_table.php | 45 + ...5_17_031959_create_shop_category_table.php | 48 + ...05_17_031959_create_shop_collect_table.php | 37 + ...1959_create_shop_comment_picture_table.php | 36 + ...05_17_031959_create_shop_comment_table.php | 41 + ..._05_17_031959_create_shop_coupon_table.php | 43 + ...1959_create_shop_goods_attribute_table.php | 36 + ...031959_create_shop_goods_gallery_table.php | 36 + ...7_031959_create_shop_goods_issue_table.php | 37 + ..._create_shop_goods_specification_table.php | 36 + ...8_05_17_031959_create_shop_goods_table.php | 63 + ...031959_create_shop_order_express_table.php | 43 + ...7_031959_create_shop_order_goods_table.php | 42 + ...8_05_17_031959_create_shop_order_table.php | 63 + ...05_17_031959_create_shop_product_table.php | 37 + ..._05_17_031959_create_shop_region_table.php | 38 + ...05_17_031959_create_shop_shipper_table.php | 35 + ...031959_create_shop_specification_table.php | 34 + ...31959_create_shop_topic_category_table.php | 35 + ...8_05_17_031959_create_shop_topic_table.php | 44 + ...7_031959_create_shop_user_coupon_table.php | 40 + ...1_28_091105_create_project_model_table.php | 37 + ...12_12_132024_create_project_type_table.php | 38 + ...2_132116_create_project_functype_table.php | 36 + ...143843_add_field_to_project_type_table.php | 41 + ...18_12_21_071138_create_project_funcdot.php | 43 + ...959_create_shop_goods_technology_table.php | 37 + ...103843_add_brand_to_project_type_table.php | 34 + ...2_24_031959_create_shop_feedback_table.php | 41 + ..._25_031959_create_shop_footprint_table.php | 36 + database/seeds/AdminMenuTableSeeder.php | 332 + database/seeds/CarouselTableSeeder.php | 108 + database/seeds/ClassesTableSeeder.php | 22 + database/seeds/DatabaseSeeder.php | 49 + database/seeds/NewsTableSeeder.php | 22 + database/seeds/ProjectFuncdotTableSeeder.php | 449 + database/seeds/ProjectFunctypeTableSeeder.php | 79 + database/seeds/ProjectModelTableSeeder.php | 156 + database/seeds/ProjectTypeTableSeeder.php | 58 + database/seeds/ShopAddressTableSeeder.php | 64 + .../ShopAttributeCategoryTableSeeder.php | 30 + database/seeds/ShopAttributeTableSeeder.php | 78 + database/seeds/ShopBrandTableSeeder.php | 88 + database/seeds/ShopCategoryTableSeeder.php | 204 + database/seeds/ShopCollectTableSeeder.php | 33 + .../seeds/ShopCommentPictureTableSeeder.php | 33 + database/seeds/ShopCommentTableSeeder.php | 66 + database/seeds/ShopCouponTableSeeder.php | 22 + .../seeds/ShopGoodsAttributeTableSeeder.php | 80 + .../seeds/ShopGoodsGalleryTableSeeder.php | 22 + database/seeds/ShopGoodsIssueTableSeeder.php | 33 + .../ShopGoodsSpecificationTableSeeder.php | 22 + database/seeds/ShopGoodsTableSeeder.php | 339 + .../seeds/ShopOrderExpressTableSeeder.php | 22 + database/seeds/ShopOrderGoodsTableSeeder.php | 384 + database/seeds/ShopOrderTableSeeder.php | 312 + database/seeds/ShopProductTableSeeder.php | 22 + database/seeds/ShopRegionTableSeeder.php | 40470 ++++++++++++++++ database/seeds/ShopShipperTableSeeder.php | 22 + .../seeds/ShopSpecificationTableSeeder.php | 42 + .../seeds/ShopTopicCategoryTableSeeder.php | 22 + database/seeds/ShopTopicTableSeeder.php | 58 + database/seeds/ShopUserCouponTableSeeder.php | 22 + database/seeds/SpecialTableSeeder.php | 80 + database/seeds/carousel_boothsTableSeeder.php | 23 + database/seeds/missionTableSeeder.php | 30 + mini/.gitignore | 1 + mini/LICENSE | 21 + mini/app.js | 25 + mini/app.json | 90 + mini/app.wxss | 19 + mini/config/api.js | 78 + mini/lib/wxParse/html2json.js | 242 + mini/lib/wxParse/htmlparser.js | 182 + mini/lib/wxParse/showdown.js | 2529 + mini/lib/wxParse/wxDiscode.js | 206 + mini/lib/wxParse/wxParse.js | 146 + mini/lib/wxParse/wxParse.wxml | 928 + mini/lib/wxParse/wxParse.wxss | 202 + mini/pages/auth/login/login.js | 106 + mini/pages/auth/login/login.json | 1 + mini/pages/auth/login/login.wxml | 30 + mini/pages/auth/login/login.wxss | 89 + mini/pages/auth/register/register.js | 130 + mini/pages/auth/register/register.json | 1 + mini/pages/auth/register/register.wxml | 30 + mini/pages/auth/register/register.wxss | 89 + mini/pages/auth/reset/reset.js | 56 + mini/pages/auth/reset/reset.json | 1 + mini/pages/auth/reset/reset.wxml | 20 + mini/pages/auth/reset/reset.wxss | 68 + mini/pages/brand/brand.js | 56 + mini/pages/brand/brand.json | 1 + mini/pages/brand/brand.wxml | 16 + mini/pages/brand/brand.wxss | 52 + mini/pages/brandDetail/brandDetail.js | 63 + mini/pages/brandDetail/brandDetail.json | 3 + mini/pages/brandDetail/brandDetail.wxml | 28 + mini/pages/brandDetail/brandDetail.wxss | 110 + mini/pages/cart/cart.js | 276 + mini/pages/cart/cart.json | 3 + mini/pages/cart/cart.wxml | 79 + mini/pages/cart/cart.wxss | 352 + mini/pages/catalog/catalog.js | 81 + mini/pages/catalog/catalog.json | 1 + mini/pages/catalog/catalog.wxml | 30 + mini/pages/catalog/catalog.wxss | 164 + mini/pages/category/category.js | 115 + mini/pages/category/category.json | 1 + mini/pages/category/category.wxml | 25 + mini/pages/category/category.wxss | 117 + mini/pages/comment/comment.js | 128 + mini/pages/comment/comment.json | 3 + mini/pages/comment/comment.wxml | 33 + mini/pages/comment/comment.wxss | 156 + mini/pages/commentPost/commentPost.js | 80 + mini/pages/commentPost/commentPost.json | 3 + mini/pages/commentPost/commentPost.wxml | 12 + mini/pages/commentPost/commentPost.wxss | 63 + mini/pages/goods/goods.js | 222 + mini/pages/goods/goods.json | 1 + mini/pages/goods/goods.wxml | 149 + mini/pages/goods/goods.wxss | 726 + mini/pages/hotGoods/hotGoods.js | 105 + mini/pages/hotGoods/hotGoods.json | 3 + mini/pages/hotGoods/hotGoods.wxml | 40 + mini/pages/hotGoods/hotGoods.wxss | 177 + mini/pages/index/index.js | 62 + mini/pages/index/index.json | 1 + mini/pages/index/index.wxml | 132 + mini/pages/index/index.wxss | 380 + mini/pages/logs/logs.js | 14 + mini/pages/logs/logs.json | 3 + mini/pages/logs/logs.wxml | 6 + mini/pages/logs/logs.wxss | 8 + mini/pages/newGoods/newGoods.js | 104 + mini/pages/newGoods/newGoods.json | 3 + mini/pages/newGoods/newGoods.wxml | 40 + mini/pages/newGoods/newGoods.wxss | 177 + mini/pages/pay/pay.js | 61 + mini/pages/pay/pay.json | 3 + mini/pages/pay/pay.wxml | 29 + mini/pages/pay/pay.wxss | 123 + mini/pages/payResult/payResult.js | 42 + mini/pages/payResult/payResult.json | 4 + mini/pages/payResult/payResult.wxml | 23 + mini/pages/payResult/payResult.wxss | 59 + mini/pages/projectType/projectType.js | 51 + mini/pages/projectType/projectType.json | 1 + mini/pages/projectType/projectType.wxml | 17 + mini/pages/projectType/projectType.wxss | 119 + mini/pages/search/search.js | 179 + mini/pages/search/search.json | 3 + mini/pages/search/search.wxml | 65 + mini/pages/search/search.wxss | 336 + mini/pages/shopping/address/address.js | 56 + mini/pages/shopping/address/address.json | 1 + mini/pages/shopping/address/address.wxml | 22 + mini/pages/shopping/address/address.wxss | 132 + mini/pages/shopping/addressAdd/addressAdd.js | 326 + .../pages/shopping/addressAdd/addressAdd.json | 3 + .../pages/shopping/addressAdd/addressAdd.wxml | 39 + .../pages/shopping/addressAdd/addressAdd.wxss | 179 + mini/pages/shopping/checkout/checkout.js | 169 + mini/pages/shopping/checkout/checkout.json | 3 + mini/pages/shopping/checkout/checkout.wxml | 85 + mini/pages/shopping/checkout/checkout.wxss | 295 + mini/pages/start/start.js | 39 + mini/pages/start/start.json | 5 + mini/pages/start/start.wxml | 22 + mini/pages/start/start.wxss | 179 + mini/pages/technologyGoods/technologyGoods.js | 357 + .../technologyGoods/technologyGoods.json | 1 + .../technologyGoods/technologyGoods.wxml | 116 + .../technologyGoods/technologyGoods.wxss | 790 + mini/pages/topic/topic.js | 85 + mini/pages/topic/topic.json | 1 + mini/pages/topic/topic.wxml | 16 + mini/pages/topic/topic.wxss | 94 + mini/pages/topicComment/topicComment.js | 116 + mini/pages/topicComment/topicComment.json | 3 + mini/pages/topicComment/topicComment.wxml | 22 + mini/pages/topicComment/topicComment.wxss | 108 + mini/pages/topicDetail/topicDetail.js | 72 + mini/pages/topicDetail/topicDetail.json | 1 + mini/pages/topicDetail/topicDetail.wxml | 50 + mini/pages/topicDetail/topicDetail.wxss | 190 + mini/pages/ucenter/address/address.js | 63 + mini/pages/ucenter/address/address.json | 1 + mini/pages/ucenter/address/address.wxml | 22 + mini/pages/ucenter/address/address.wxss | 127 + mini/pages/ucenter/addressAdd/addressAdd.js | 327 + mini/pages/ucenter/addressAdd/addressAdd.json | 3 + mini/pages/ucenter/addressAdd/addressAdd.wxml | 39 + mini/pages/ucenter/addressAdd/addressAdd.wxss | 179 + mini/pages/ucenter/collect/collect.js | 91 + mini/pages/ucenter/collect/collect.json | 3 + mini/pages/ucenter/collect/collect.wxml | 12 + mini/pages/ucenter/collect/collect.wxss | 67 + mini/pages/ucenter/coupon/coupon.js | 27 + mini/pages/ucenter/coupon/coupon.json | 3 + mini/pages/ucenter/coupon/coupon.wxml | 47 + mini/pages/ucenter/coupon/coupon.wxss | 178 + mini/pages/ucenter/express/express.js | 44 + mini/pages/ucenter/express/express.json | 3 + mini/pages/ucenter/express/express.wxml | 22 + mini/pages/ucenter/express/express.wxss | 127 + mini/pages/ucenter/feedback/feedback.js | 97 + mini/pages/ucenter/feedback/feedback.json | 3 + mini/pages/ucenter/feedback/feedback.wxml | 25 + mini/pages/ucenter/feedback/feedback.wxss | 117 + mini/pages/ucenter/footprint/footprint.js | 88 + mini/pages/ucenter/footprint/footprint.json | 3 + mini/pages/ucenter/footprint/footprint.wxml | 35 + mini/pages/ucenter/footprint/footprint.wxss | 91 + mini/pages/ucenter/index/index.js | 68 + mini/pages/ucenter/index/index.json | 3 + mini/pages/ucenter/index/index.wxml | 82 + mini/pages/ucenter/index/index.wxss | 154 + mini/pages/ucenter/order/order.js | 44 + mini/pages/ucenter/order/order.json | 1 + mini/pages/ucenter/order/order.wxml | 30 + mini/pages/ucenter/order/order.wxss | 135 + mini/pages/ucenter/orderDetail/orderDetail.js | 82 + .../ucenter/orderDetail/orderDetail.json | 3 + .../ucenter/orderDetail/orderDetail.wxml | 59 + .../ucenter/orderDetail/orderDetail.wxss | 255 + mini/services/pay.js | 56 + mini/services/user.js | 74 + mini/static/images/address-bg-bd.png | Bin 0 -> 183 bytes mini/static/images/address_right.png | Bin 0 -> 283 bytes mini/static/images/checkbox.png | Bin 0 -> 1421 bytes mini/static/images/checked.png | Bin 0 -> 311 bytes mini/static/images/checked1.png | Bin 0 -> 543 bytes mini/static/images/clear_input.png | Bin 0 -> 259 bytes mini/static/images/coding.png | Bin 0 -> 6253 bytes mini/static/images/default.header.png | Bin 0 -> 1788 bytes mini/static/images/del-address.png | Bin 0 -> 221 bytes mini/static/images/detail_back.png | Bin 0 -> 195 bytes mini/static/images/detail_kefu.png | Bin 0 -> 528 bytes mini/static/images/go.png | Bin 0 -> 254 bytes mini/static/images/ic_menu_choice_nor.png | Bin 0 -> 1030 bytes mini/static/images/ic_menu_choice_pressed.png | Bin 0 -> 1030 bytes mini/static/images/ic_menu_me_nor.png | Bin 0 -> 1439 bytes mini/static/images/ic_menu_me_pressed.png | Bin 0 -> 1425 bytes mini/static/images/ic_menu_shoping_nor.png | Bin 0 -> 1394 bytes .../static/images/ic_menu_shoping_pressed.png | Bin 0 -> 1397 bytes mini/static/images/ic_menu_sort_nor.png | Bin 0 -> 1565 bytes mini/static/images/ic_menu_sort_pressed.png | Bin 0 -> 1574 bytes mini/static/images/ic_menu_topic_nor.png | Bin 0 -> 388 bytes mini/static/images/ic_menu_topic_pressed.png | Bin 0 -> 388 bytes mini/static/images/icon_close.png | Bin 0 -> 219 bytes mini/static/images/icon_collect.png | Bin 0 -> 1236 bytes mini/static/images/icon_collect_checked.png | Bin 0 -> 1579 bytes mini/static/images/icon_error.png | Bin 0 -> 1259 bytes mini/static/images/icon_go_more.png | Bin 0 -> 736 bytes mini/static/images/more/.DS_Store | Bin 0 -> 6148 bytes mini/static/images/more/close.png | Bin 0 -> 331 bytes mini/static/images/more/confirm-word1.png | Bin 0 -> 31938 bytes mini/static/images/more/confirm-word1.png1 | Bin 0 -> 16047 bytes mini/static/images/more/loading.gif | Bin 0 -> 84207 bytes mini/static/images/more/minecenterok.png | Bin 0 -> 262 bytes mini/static/images/more/title8.png | Bin 0 -> 3999 bytes mini/static/images/more/wave.png | Bin 0 -> 7682 bytes mini/static/images/no-order.png | Bin 0 -> 1825 bytes mini/static/images/selnum.png | Bin 0 -> 1637 bytes mini/static/images/wxpay.png | Bin 0 -> 1791 bytes mini/utils/util.js | 181 + package.json | 21 + phpunit.xml | 31 + public/.htaccess | 21 + public/css/app.css | 9 + public/favicon.ico | 0 public/images/add-addr.png | Bin 0 -> 2334 bytes public/images/addr-active.png | Bin 0 -> 1399 bytes public/images/addr-edit.png | Bin 0 -> 1342 bytes public/images/addr-line.png | Bin 0 -> 1257 bytes public/images/arrow-right.png | Bin 0 -> 643 bytes public/images/cart.png | Bin 0 -> 2491 bytes public/images/default_head.png | Bin 0 -> 510 bytes public/images/gou-red.png | Bin 0 -> 2908 bytes public/images/gou.png | Bin 0 -> 3070 bytes public/images/ico-add-addr.png | Bin 0 -> 1517 bytes public/images/ico-addr.png | Bin 0 -> 3222 bytes public/images/icon-cart.png | Bin 0 -> 2781 bytes .../icon-normal/address-right-990628faa7.png | Bin 0 -> 283 bytes .../icon-normal/detailTagArrow-18bee52dab.png | Bin 0 -> 286 bytes .../servicePolicyRed-518d32d74b.png | Bin 0 -> 217 bytes public/images/kefu.png | Bin 0 -> 19118 bytes public/images/no-order.png | Bin 0 -> 1825 bytes public/images/popup-close.png | Bin 0 -> 2579 bytes public/images/qd.png | Bin 0 -> 19530 bytes public/images/search-pic.png | Bin 0 -> 2086 bytes public/index.php | 60 + public/js/app.js | 1 + public/log/readme.txt | 1 + public/robots.txt | 2 + .../0cc7ad0ef1d0fe7162f3f78b7e80b0be.jpg | Bin 0 -> 31964 bytes .../337bfd9633201b0e2bea6f31a15e80ca.jpg | Bin 0 -> 23580 bytes .../367bceacffcb308a6f39dbb681d07d06.png | Bin 0 -> 63973 bytes .../4ee024ed668216c1dcc5d9971dbee381.png | Bin 0 -> 63973 bytes .../580f57b7451495416ea8af9fd490cdac.jpg | Bin 0 -> 98683 bytes .../5a8c52740212b8445bd7f8260849ece3.jpg | Bin 0 -> 31964 bytes .../9b56eac9d605940752b3aa7add348b3a.png | Bin 0 -> 63973 bytes .../a1d561930fa5d7df0fb5dcc3309fd23b.png | Bin 0 -> 43605 bytes .../ac7ca6949bea6a0031065a6337ae31fd.png | Bin 0 -> 63973 bytes .../d4980fef4918a6fc9bb4c8d126602418.jpg | Bin 0 -> 52560 bytes .../edd988bf5e02e728307f910e09cda125.png | Bin 0 -> 43605 bytes .../AdminLTE/bootstrap/css/bootstrap.min.css | 5 + .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20127 bytes .../fonts/glyphicons-halflings-regular.svg | 288 + .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 45404 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23424 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 0 -> 18028 bytes .../AdminLTE/bootstrap/js/bootstrap.min.js | 7 + .../AdminLTE/dist/css/AdminLTE.min.css | 7 + .../dist/css/skins/_all-skins.min.css | 1 + .../dist/css/skins/skin-black-light.min.css | 1 + .../dist/css/skins/skin-black.min.css | 1 + .../dist/css/skins/skin-blue-light.min.css | 1 + .../AdminLTE/dist/css/skins/skin-blue.min.css | 1 + .../dist/css/skins/skin-green-light.min.css | 1 + .../dist/css/skins/skin-green.min.css | 1 + .../dist/css/skins/skin-purple-light.min.css | 1 + .../dist/css/skins/skin-purple.min.css | 1 + .../dist/css/skins/skin-red-light.min.css | 1 + .../AdminLTE/dist/css/skins/skin-red.min.css | 1 + .../dist/css/skins/skin-yellow-light.min.css | 1 + .../dist/css/skins/skin-yellow.min.css | 1 + .../AdminLTE/dist/img/boxed-bg.jpg | Bin 0 -> 123770 bytes .../AdminLTE/dist/img/boxed-bg.png | Bin 0 -> 43694 bytes .../dist/img/credit/american-express.png | Bin 0 -> 2205 bytes .../AdminLTE/dist/img/credit/cirrus.png | Bin 0 -> 1593 bytes .../AdminLTE/dist/img/credit/mastercard.png | Bin 0 -> 1593 bytes .../AdminLTE/dist/img/credit/mestro.png | Bin 0 -> 1588 bytes .../AdminLTE/dist/img/credit/paypal.png | Bin 0 -> 2046 bytes .../AdminLTE/dist/img/credit/paypal2.png | Bin 0 -> 1372 bytes .../AdminLTE/dist/img/credit/visa.png | Bin 0 -> 1137 bytes .../AdminLTE/dist/img/default-50x50.gif | Bin 0 -> 184 bytes .../laravel-admin/AdminLTE/dist/img/icons.png | Bin 0 -> 1154 bytes .../AdminLTE/dist/img/user2-160x160.jpg | Bin 0 -> 7070 bytes .../laravel-admin/AdminLTE/dist/js/app.min.js | 13 + .../bootstrap-slider/bootstrap-slider.js | 1167 + .../plugins/bootstrap-slider/slider.css | 169 + .../colorpicker/bootstrap-colorpicker.min.css | 9 + .../colorpicker/bootstrap-colorpicker.min.js | 1 + .../colorpicker/img/alpha-horizontal.png | Bin 0 -> 3635 bytes .../plugins/colorpicker/img/alpha.png | Bin 0 -> 3271 bytes .../colorpicker/img/hue-horizontal.png | Bin 0 -> 2837 bytes .../AdminLTE/plugins/colorpicker/img/hue.png | Bin 0 -> 2972 bytes .../plugins/colorpicker/img/saturation.png | Bin 0 -> 8817 bytes .../AdminLTE/plugins/iCheck/all.css | 61 + .../AdminLTE/plugins/iCheck/flat/_all.css | 560 + .../AdminLTE/plugins/iCheck/flat/aero.css | 56 + .../AdminLTE/plugins/iCheck/flat/aero.png | Bin 0 -> 1520 bytes .../AdminLTE/plugins/iCheck/flat/aero@2x.png | Bin 0 -> 3218 bytes .../AdminLTE/plugins/iCheck/flat/blue.css | 56 + .../AdminLTE/plugins/iCheck/flat/blue.png | Bin 0 -> 1518 bytes .../AdminLTE/plugins/iCheck/flat/blue@2x.png | Bin 0 -> 3217 bytes .../AdminLTE/plugins/iCheck/flat/flat.css | 56 + .../AdminLTE/plugins/iCheck/flat/flat.png | Bin 0 -> 1515 bytes .../AdminLTE/plugins/iCheck/flat/flat@2x.png | Bin 0 -> 3217 bytes .../AdminLTE/plugins/iCheck/flat/green.css | 56 + .../AdminLTE/plugins/iCheck/flat/green.png | Bin 0 -> 1444 bytes .../AdminLTE/plugins/iCheck/flat/green@2x.png | Bin 0 -> 3117 bytes .../AdminLTE/plugins/iCheck/flat/grey.css | 56 + .../AdminLTE/plugins/iCheck/flat/grey.png | Bin 0 -> 1516 bytes .../AdminLTE/plugins/iCheck/flat/grey@2x.png | Bin 0 -> 3217 bytes .../AdminLTE/plugins/iCheck/flat/orange.css | 56 + .../AdminLTE/plugins/iCheck/flat/orange.png | Bin 0 -> 1518 bytes .../plugins/iCheck/flat/orange@2x.png | Bin 0 -> 3275 bytes .../AdminLTE/plugins/iCheck/flat/pink.css | 56 + .../AdminLTE/plugins/iCheck/flat/pink.png | Bin 0 -> 1522 bytes .../AdminLTE/plugins/iCheck/flat/pink@2x.png | Bin 0 -> 3218 bytes .../AdminLTE/plugins/iCheck/flat/purple.css | 56 + .../AdminLTE/plugins/iCheck/flat/purple.png | Bin 0 -> 1519 bytes .../plugins/iCheck/flat/purple@2x.png | Bin 0 -> 3218 bytes .../AdminLTE/plugins/iCheck/flat/red.css | 56 + .../AdminLTE/plugins/iCheck/flat/red.png | Bin 0 -> 1516 bytes .../AdminLTE/plugins/iCheck/flat/red@2x.png | Bin 0 -> 3276 bytes .../AdminLTE/plugins/iCheck/flat/yellow.css | 56 + .../AdminLTE/plugins/iCheck/flat/yellow.png | Bin 0 -> 1516 bytes .../plugins/iCheck/flat/yellow@2x.png | Bin 0 -> 3216 bytes .../plugins/iCheck/futurico/futurico.css | 56 + .../plugins/iCheck/futurico/futurico.png | Bin 0 -> 1734 bytes .../plugins/iCheck/futurico/futurico@2x.png | Bin 0 -> 3446 bytes .../AdminLTE/plugins/iCheck/icheck.min.js | 10 + .../AdminLTE/plugins/iCheck/line/_all.css | 740 + .../AdminLTE/plugins/iCheck/line/aero.css | 74 + .../AdminLTE/plugins/iCheck/line/blue.css | 74 + .../AdminLTE/plugins/iCheck/line/green.css | 74 + .../AdminLTE/plugins/iCheck/line/grey.css | 74 + .../AdminLTE/plugins/iCheck/line/line.css | 74 + .../AdminLTE/plugins/iCheck/line/line.png | Bin 0 -> 588 bytes .../AdminLTE/plugins/iCheck/line/line@2x.png | Bin 0 -> 1073 bytes .../AdminLTE/plugins/iCheck/line/orange.css | 74 + .../AdminLTE/plugins/iCheck/line/pink.css | 74 + .../AdminLTE/plugins/iCheck/line/purple.css | 74 + .../AdminLTE/plugins/iCheck/line/red.css | 74 + .../AdminLTE/plugins/iCheck/line/yellow.css | 74 + .../AdminLTE/plugins/iCheck/minimal/_all.css | 557 + .../AdminLTE/plugins/iCheck/minimal/aero.css | 62 + .../AdminLTE/plugins/iCheck/minimal/aero.png | Bin 0 -> 1151 bytes .../plugins/iCheck/minimal/aero@2x.png | Bin 0 -> 1409 bytes .../AdminLTE/plugins/iCheck/minimal/blue.css | 62 + .../AdminLTE/plugins/iCheck/minimal/blue.png | Bin 0 -> 1132 bytes .../plugins/iCheck/minimal/blue@2x.png | Bin 0 -> 1410 bytes .../AdminLTE/plugins/iCheck/minimal/green.css | 62 + .../AdminLTE/plugins/iCheck/minimal/green.png | Bin 0 -> 1143 bytes .../plugins/iCheck/minimal/green@2x.png | Bin 0 -> 1408 bytes .../AdminLTE/plugins/iCheck/minimal/grey.css | 62 + .../AdminLTE/plugins/iCheck/minimal/grey.png | Bin 0 -> 1142 bytes .../plugins/iCheck/minimal/grey@2x.png | Bin 0 -> 1407 bytes .../plugins/iCheck/minimal/minimal.css | 62 + .../plugins/iCheck/minimal/minimal.png | Bin 0 -> 1114 bytes .../plugins/iCheck/minimal/minimal@2x.png | Bin 0 -> 1410 bytes .../plugins/iCheck/minimal/orange.css | 62 + .../plugins/iCheck/minimal/orange.png | Bin 0 -> 1139 bytes .../plugins/iCheck/minimal/orange@2x.png | Bin 0 -> 1407 bytes .../AdminLTE/plugins/iCheck/minimal/pink.css | 62 + .../AdminLTE/plugins/iCheck/minimal/pink.png | Bin 0 -> 1150 bytes .../plugins/iCheck/minimal/pink@2x.png | Bin 0 -> 1409 bytes .../plugins/iCheck/minimal/purple.css | 62 + .../plugins/iCheck/minimal/purple.png | Bin 0 -> 1132 bytes .../plugins/iCheck/minimal/purple@2x.png | Bin 0 -> 1409 bytes .../AdminLTE/plugins/iCheck/minimal/red.css | 62 + .../AdminLTE/plugins/iCheck/minimal/red.png | Bin 0 -> 1130 bytes .../plugins/iCheck/minimal/red@2x.png | Bin 0 -> 1410 bytes .../plugins/iCheck/minimal/yellow.css | 62 + .../plugins/iCheck/minimal/yellow.png | Bin 0 -> 1135 bytes .../plugins/iCheck/minimal/yellow@2x.png | Bin 0 -> 1406 bytes .../plugins/iCheck/polaris/polaris.css | 62 + .../plugins/iCheck/polaris/polaris.png | Bin 0 -> 6401 bytes .../plugins/iCheck/polaris/polaris@2x.png | Bin 0 -> 16760 bytes .../AdminLTE/plugins/iCheck/square/_all.css | 620 + .../AdminLTE/plugins/iCheck/square/aero.css | 62 + .../AdminLTE/plugins/iCheck/square/aero.png | Bin 0 -> 2167 bytes .../plugins/iCheck/square/aero@2x.png | Bin 0 -> 4455 bytes .../AdminLTE/plugins/iCheck/square/blue.css | 62 + .../AdminLTE/plugins/iCheck/square/blue.png | Bin 0 -> 2185 bytes .../plugins/iCheck/square/blue@2x.png | Bin 0 -> 4485 bytes .../AdminLTE/plugins/iCheck/square/green.css | 62 + .../AdminLTE/plugins/iCheck/square/green.png | Bin 0 -> 2193 bytes .../plugins/iCheck/square/green@2x.png | Bin 0 -> 4498 bytes .../AdminLTE/plugins/iCheck/square/grey.css | 62 + .../AdminLTE/plugins/iCheck/square/grey.png | Bin 0 -> 2186 bytes .../plugins/iCheck/square/grey@2x.png | Bin 0 -> 4483 bytes .../AdminLTE/plugins/iCheck/square/orange.css | 62 + .../AdminLTE/plugins/iCheck/square/orange.png | Bin 0 -> 2181 bytes .../plugins/iCheck/square/orange@2x.png | Bin 0 -> 4474 bytes .../AdminLTE/plugins/iCheck/square/pink.css | 62 + .../AdminLTE/plugins/iCheck/square/pink.png | Bin 0 -> 2189 bytes .../plugins/iCheck/square/pink@2x.png | Bin 0 -> 4479 bytes .../AdminLTE/plugins/iCheck/square/purple.css | 62 + .../AdminLTE/plugins/iCheck/square/purple.png | Bin 0 -> 2188 bytes .../plugins/iCheck/square/purple@2x.png | Bin 0 -> 4501 bytes .../AdminLTE/plugins/iCheck/square/red.css | 62 + .../AdminLTE/plugins/iCheck/square/red.png | Bin 0 -> 2190 bytes .../AdminLTE/plugins/iCheck/square/red@2x.png | Bin 0 -> 4490 bytes .../AdminLTE/plugins/iCheck/square/square.css | 62 + .../AdminLTE/plugins/iCheck/square/square.png | Bin 0 -> 2175 bytes .../plugins/iCheck/square/square@2x.png | Bin 0 -> 4478 bytes .../AdminLTE/plugins/iCheck/square/yellow.css | 62 + .../AdminLTE/plugins/iCheck/square/yellow.png | Bin 0 -> 2131 bytes .../plugins/iCheck/square/yellow@2x.png | Bin 0 -> 4385 bytes .../input-mask/jquery.inputmask.bundle.min.js | 10 + .../input-mask/phone-codes/phone-be.json | 45 + .../input-mask/phone-codes/phone-codes.json | 294 + .../plugins/input-mask/phone-codes/readme.txt | 1 + .../ionslider/img/sprite-skin-flat.png | Bin 0 -> 352 bytes .../ionslider/img/sprite-skin-nice.png | Bin 0 -> 1022 bytes .../plugins/ionslider/ion.rangeSlider.css | 126 + .../plugins/ionslider/ion.rangeSlider.min.js | 22 + .../ionslider/ion.rangeSlider.skinFlat.css | 89 + .../ionslider/ion.rangeSlider.skinNice.css | 85 + .../plugins/jQuery/jQuery-2.1.4.min.js | 4 + .../AdminLTE/plugins/select2/i18n/ar.js | 3 + .../AdminLTE/plugins/select2/i18n/az.js | 3 + .../AdminLTE/plugins/select2/i18n/bg.js | 3 + .../AdminLTE/plugins/select2/i18n/ca.js | 3 + .../AdminLTE/plugins/select2/i18n/cs.js | 3 + .../AdminLTE/plugins/select2/i18n/da.js | 3 + .../AdminLTE/plugins/select2/i18n/de.js | 3 + .../AdminLTE/plugins/select2/i18n/el.js | 3 + .../AdminLTE/plugins/select2/i18n/en.js | 3 + .../AdminLTE/plugins/select2/i18n/es.js | 3 + .../AdminLTE/plugins/select2/i18n/et.js | 3 + .../AdminLTE/plugins/select2/i18n/eu.js | 3 + .../AdminLTE/plugins/select2/i18n/fa.js | 3 + .../AdminLTE/plugins/select2/i18n/fi.js | 3 + .../AdminLTE/plugins/select2/i18n/fr.js | 3 + .../AdminLTE/plugins/select2/i18n/gl.js | 3 + .../AdminLTE/plugins/select2/i18n/he.js | 3 + .../AdminLTE/plugins/select2/i18n/hi.js | 3 + .../AdminLTE/plugins/select2/i18n/hr.js | 3 + .../AdminLTE/plugins/select2/i18n/hu.js | 3 + .../AdminLTE/plugins/select2/i18n/id.js | 3 + .../AdminLTE/plugins/select2/i18n/is.js | 3 + .../AdminLTE/plugins/select2/i18n/it.js | 3 + .../AdminLTE/plugins/select2/i18n/ja.js | 3 + .../AdminLTE/plugins/select2/i18n/km.js | 3 + .../AdminLTE/plugins/select2/i18n/ko.js | 3 + .../AdminLTE/plugins/select2/i18n/lt.js | 3 + .../AdminLTE/plugins/select2/i18n/lv.js | 3 + .../AdminLTE/plugins/select2/i18n/mk.js | 3 + .../AdminLTE/plugins/select2/i18n/ms.js | 3 + .../AdminLTE/plugins/select2/i18n/nb.js | 3 + .../AdminLTE/plugins/select2/i18n/nl.js | 3 + .../AdminLTE/plugins/select2/i18n/pl.js | 3 + .../AdminLTE/plugins/select2/i18n/pt-BR.js | 3 + .../AdminLTE/plugins/select2/i18n/pt.js | 3 + .../AdminLTE/plugins/select2/i18n/ro.js | 3 + .../AdminLTE/plugins/select2/i18n/ru.js | 3 + .../AdminLTE/plugins/select2/i18n/sk.js | 3 + .../AdminLTE/plugins/select2/i18n/sr-Cyrl.js | 3 + .../AdminLTE/plugins/select2/i18n/sr.js | 3 + .../AdminLTE/plugins/select2/i18n/sv.js | 3 + .../AdminLTE/plugins/select2/i18n/th.js | 3 + .../AdminLTE/plugins/select2/i18n/tr.js | 3 + .../AdminLTE/plugins/select2/i18n/uk.js | 3 + .../AdminLTE/plugins/select2/i18n/vi.js | 3 + .../AdminLTE/plugins/select2/i18n/zh-CN.js | 3 + .../AdminLTE/plugins/select2/i18n/zh-TW.js | 3 + .../plugins/select2/select2.full.min.js | 3 + .../AdminLTE/plugins/select2/select2.min.css | 1 + .../slimScroll/jquery.slimscroll.min.js | 1 + .../dist/bootstrap-duallistbox.min.css | 10 + .../dist/jquery.bootstrap-duallistbox.min.js | 9 + .../bootstrap-fileinput/css/fileinput.min.css | 12 + .../bootstrap-fileinput/img/loading-sm.gif | Bin 0 -> 2670 bytes .../bootstrap-fileinput/img/loading.gif | Bin 0 -> 847 bytes .../bootstrap-fileinput/js/fileinput.min.js | 12 + .../js/plugins/canvas-to-blob.js | 95 + .../js/plugins/canvas-to-blob.min.js | 1 + .../bootstrap-fileinput/js/plugins/purify.js | 812 + .../js/plugins/purify.min.js | 2 + .../js/plugins/sortable.js | 1333 + .../js/plugins/sortable.min.js | 2 + .../css/bootstrap3/bootstrap-switch.min.css | 22 + .../dist/js/bootstrap-switch.min.js | 22 + .../css/bootstrap-editable.css | 663 + .../bootstrap3-editable/img/clear.png | Bin 0 -> 509 bytes .../bootstrap3-editable/img/loading.gif | Bin 0 -> 1849 bytes .../js/bootstrap-editable.min.js | 7 + .../css/bootstrap-datetimepicker.min.css | 5 + .../build/js/bootstrap-datetimepicker.min.js | 9 + .../font-awesome/css/font-awesome.min.css | 4 + .../font-awesome/fonts/FontAwesome.otf | Bin 0 -> 109688 bytes .../fonts/fontawesome-webfont.eot | Bin 0 -> 70807 bytes .../fonts/fontawesome-webfont.svg | 655 + .../fonts/fontawesome-webfont.ttf | Bin 0 -> 142072 bytes .../fonts/fontawesome-webfont.woff | Bin 0 -> 83588 bytes .../fonts/fontawesome-webfont.woff2 | Bin 0 -> 66624 bytes .../dist/css/fontawesome-iconpicker.min.css | 9 + .../dist/js/fontawesome-iconpicker.min.js | 1 + .../laravel-admin/google-fonts/fonts.css | 50 + .../fonts/Source-Sans-Pro-Bold.ttf | Bin 0 -> 34908 bytes .../fonts/Source-Sans-Pro-Bold.woff | Bin 0 -> 17264 bytes .../fonts/Source-Sans-Pro-Bold.woff2 | Bin 0 -> 13892 bytes .../fonts/Source-Sans-Pro-Italic.ttf | Bin 0 -> 33864 bytes .../fonts/Source-Sans-Pro-Italic.woff | Bin 0 -> 17288 bytes .../fonts/Source-Sans-Pro-Italic.woff2 | Bin 0 -> 13980 bytes .../fonts/Source-Sans-Pro-Light-Italic.ttf | Bin 0 -> 33996 bytes .../fonts/Source-Sans-Pro-Light-Italic.woff | Bin 0 -> 17304 bytes .../fonts/Source-Sans-Pro-Light-Italic.woff2 | Bin 0 -> 13772 bytes .../fonts/Source-Sans-Pro-Light.ttf | Bin 0 -> 35368 bytes .../fonts/Source-Sans-Pro-Light.woff | Bin 0 -> 17540 bytes .../fonts/Source-Sans-Pro-Light.woff2 | Bin 0 -> 14308 bytes .../fonts/Source-Sans-Pro-Semibold-Italic.ttf | Bin 0 -> 33592 bytes .../Source-Sans-Pro-Semibold-Italic.woff | Bin 0 -> 17168 bytes .../Source-Sans-Pro-Semibold-Italic.woff2 | Bin 0 -> 13716 bytes .../fonts/Source-Sans-Pro-Semibold.ttf | Bin 0 -> 34808 bytes .../fonts/Source-Sans-Pro-Semibold.woff | Bin 0 -> 17380 bytes .../fonts/Source-Sans-Pro-Semibold.woff2 | Bin 0 -> 13992 bytes .../google-fonts/fonts/Source-Sans-Pro.eot | Bin 0 -> 16229 bytes .../google-fonts/fonts/Source-Sans-Pro.svg | 345 + .../google-fonts/fonts/Source-Sans-Pro.ttf | Bin 0 -> 35064 bytes .../google-fonts/fonts/Source-Sans-Pro.woff | Bin 0 -> 17500 bytes .../google-fonts/fonts/Source-Sans-Pro.woff2 | Bin 0 -> 14308 bytes .../laravel-admin/jquery-pjax/jquery.pjax.js | 925 + .../laravel-admin/laravel-admin.css | 5 + .../laravel-admin/laravel-admin.js | 84 + .../moment/min/moment-with-locales.min.js | 80 + .../laravel-admin/nestable/jquery.nestable.js | 484 + .../laravel-admin/nestable/nestable.css | 34 + .../laravel-admin/nprogress/nprogress.css | 74 + .../laravel-admin/nprogress/nprogress.js | 476 + .../number-input/bootstrap-number-input.js | 96 + .../sweetalert/dist/sweetalert.css | 935 + .../sweetalert/dist/sweetalert.min.js | 1 + .../laravel-admin/toastr/build/toastr.min.css | 1 + .../laravel-admin/toastr/build/toastr.min.js | 2 + public/vendor/wangEditor-3.1.1/.eslintignore | 2 + public/vendor/wangEditor-3.1.1/.eslintrc.json | 38 + public/vendor/wangEditor-3.1.1/.gitattributes | 22 + public/vendor/wangEditor-3.1.1/.gitignore | 51 + public/vendor/wangEditor-3.1.1/.npmignore | 5 + public/vendor/wangEditor-3.1.1/ISSUE.md | 179 + public/vendor/wangEditor-3.1.1/LICENSE | 22 + public/vendor/wangEditor-3.1.1/README.md | 70 + public/vendor/wangEditor-3.1.1/bower.json | 20 + .../wangEditor-3.1.1/docs/dev/README.md | 25 + .../docs/usage/01-getstart/01-demo.md | 41 + .../docs/usage/01-getstart/02-use-module.md | 49 + .../docs/usage/01-getstart/03-sperate.md | 48 + .../docs/usage/01-getstart/04-multi.md | 50 + .../docs/usage/02-content/01-set-content.md | 46 + .../docs/usage/02-content/02-get-content.md | 80 + .../docs/usage/02-content/03-use-textarea.md | 25 + .../docs/usage/02-content/04-get-json.md | 82 + .../docs/usage/03-config/01-menu.md | 54 + .../docs/usage/03-config/02-debug.md | 21 + .../docs/usage/03-config/03-onchange.md | 40 + .../docs/usage/03-config/04-z-index.md | 19 + .../docs/usage/03-config/05-lang.md | 30 + .../docs/usage/03-config/06-paste.md | 39 + .../usage/03-config/07-linkImgCallback.md | 12 + .../docs/usage/03-config/08-linkCheck.md | 16 + .../docs/usage/03-config/09-onfocus.md | 19 + .../docs/usage/03-config/10-onblur.md | 20 + .../docs/usage/03-config/11-linkImgCheck.md | 15 + .../docs/usage/03-config/12-colors.md | 29 + .../docs/usage/03-config/13-emot.md | 48 + .../docs/usage/03-config/14-font-name.md | 24 + .../docs/usage/04-uploadimg/01-show-tab.md | 52 + .../docs/usage/04-uploadimg/02-base64.md | 23 + .../usage/04-uploadimg/03-upload-config.md | 190 + .../docs/usage/04-uploadimg/04-qiniu.md | 115 + .../05-other/01-全屏-预览-查看源码.md | 10 + .../docs/usage/05-other/02-上传附件.md | 24 + .../docs/usage/05-other/03-markdown.md | 12 + .../docs/usage/05-other/04-xss.md | 23 + .../docs/usage/05-other/05-react.md | 7 + .../docs/usage/05-other/06-vue.md | 7 + .../docs/usage/05-other/07-ng.md | 3 + .../docs/usage/05-other/08-api.md | 27 + .../wangEditor-3.1.1/docs/usage/README.md | 3 + .../vendor/wangEditor-3.1.1/example/README.md | 1 + .../example/demo/in-react/package.json | 19 + .../example/demo/in-react/public/favicon.ico | Bin 0 -> 24838 bytes .../example/demo/in-react/public/index.html | 40 + .../demo/in-react/public/manifest.json | 15 + .../example/demo/in-react/src/App.css | 24 + .../example/demo/in-react/src/App.js | 48 + .../example/demo/in-react/src/App.test.js | 8 + .../example/demo/in-react/src/index.css | 5 + .../example/demo/in-react/src/index.js | 8 + .../example/demo/in-react/src/logo.svg | 7 + .../in-react/src/registerServiceWorker.js | 51 + .../example/demo/in-vue/.babelrc | 14 + .../example/demo/in-vue/.editorconfig | 9 + .../example/demo/in-vue/.postcssrc.js | 8 + .../example/demo/in-vue/build/build.js | 35 + .../demo/in-vue/build/check-versions.js | 48 + .../example/demo/in-vue/build/dev-client.js | 9 + .../example/demo/in-vue/build/dev-server.js | 89 + .../example/demo/in-vue/build/utils.js | 71 + .../demo/in-vue/build/vue-loader.conf.js | 12 + .../demo/in-vue/build/webpack.base.conf.js | 58 + .../demo/in-vue/build/webpack.dev.conf.js | 35 + .../demo/in-vue/build/webpack.prod.conf.js | 120 + .../example/demo/in-vue/config/dev.env.js | 6 + .../example/demo/in-vue/config/index.js | 38 + .../example/demo/in-vue/config/prod.env.js | 3 + .../example/demo/in-vue/index.html | 11 + .../example/demo/in-vue/package.json | 60 + .../example/demo/in-vue/src/App.vue | 31 + .../example/demo/in-vue/src/assets/logo.png | Bin 0 -> 6849 bytes .../demo/in-vue/src/components/Editor.vue | 34 + .../demo/in-vue/src/components/Hello.vue | 53 + .../example/demo/in-vue/src/main.js | 13 + .../example/demo/in-vue/static/.gitkeep | 0 .../example/demo/test-amd-main.js | 4 + .../example/demo/test-amd.html | 15 + .../example/demo/test-css-reset.html | 66 + .../example/demo/test-emot.html | 84 + .../example/demo/test-fullscreen.html | 114 + .../example/demo/test-get-content.html | 34 + .../example/demo/test-getJSON.html | 30 + .../example/demo/test-lang.html | 31 + .../example/demo/test-menus.html | 26 + .../example/demo/test-mult.html | 44 + .../example/demo/test-onblur.html | 23 + .../example/demo/test-onchange.html | 24 + .../example/demo/test-onfocus.html | 22 + .../example/demo/test-paste.html | 25 + .../example/demo/test-set-content.html | 35 + .../example/demo/test-sperate.html | 35 + .../example/demo/test-textarea.html | 33 + .../example/demo/test-uploadimg.html | 58 + .../wangEditor-3.1.1/example/favicon.ico | Bin 0 -> 4286 bytes .../example/icomoon/Read Me.txt | 7 + .../example/icomoon/demo-files/demo.css | 155 + .../example/icomoon/demo-files/demo.js | 30 + .../example/icomoon/demo.html | 537 + .../example/icomoon/fonts/icomoon.eot | Bin 0 -> 6312 bytes .../example/icomoon/fonts/icomoon.svg | 39 + .../example/icomoon/fonts/icomoon.ttf | Bin 0 -> 6148 bytes .../example/icomoon/fonts/icomoon.woff | Bin 0 -> 6224 bytes .../example/icomoon/selection.json | 830 + .../example/icomoon/style.css | 119 + .../wangEditor-3.1.1/example/index.html | 62 + .../vendor/wangEditor-3.1.1/example/pay.png | Bin 0 -> 95517 bytes .../wangEditor-3.1.1/example/server/index.js | 88 + .../wangEditor-3.1.1/example/server/util.js | 14 + public/vendor/wangEditor-3.1.1/gulpfile.js | 122 + public/vendor/wangEditor-3.1.1/package.json | 60 + .../release/fonts/w-e-icon.woff | Bin 0 -> 6224 bytes .../wangEditor-3.1.1/release/wangEditor.css | 411 + .../wangEditor-3.1.1/release/wangEditor.js | 4674 ++ .../release/wangEditor.min.css | 1 + .../release/wangEditor.min.js | 4 + .../release/wangEditor.min.js.map | 1 + .../wangEditor-3.1.1/src/fonts/w-e-icon.woff | Bin 0 -> 6224 bytes .../vendor/wangEditor-3.1.1/src/js/.babelrc | 10 + .../wangEditor-3.1.1/src/js/command/index.js | 106 + .../vendor/wangEditor-3.1.1/src/js/config.js | 252 + .../wangEditor-3.1.1/src/js/editor/index.js | 339 + .../src/js/editor/upload/progress.js | 65 + .../src/js/editor/upload/upload-img.js | 317 + .../vendor/wangEditor-3.1.1/src/js/index.js | 24 + .../src/js/menus/backColor/index.js | 46 + .../src/js/menus/bold/index.js | 60 + .../src/js/menus/code/index.js | 150 + .../wangEditor-3.1.1/src/js/menus/droplist.js | 130 + .../src/js/menus/emoticon/index.js | 115 + .../src/js/menus/fontName/index.js | 46 + .../src/js/menus/fontSize/index.js | 48 + .../src/js/menus/foreColor/index.js | 46 + .../src/js/menus/head/index.js | 70 + .../src/js/menus/img/index.js | 252 + .../wangEditor-3.1.1/src/js/menus/index.js | 125 + .../src/js/menus/italic/index.js | 60 + .../src/js/menus/justify/index.js | 44 + .../src/js/menus/link/index.js | 168 + .../src/js/menus/list/index.js | 82 + .../src/js/menus/menu-list.js | 69 + .../wangEditor-3.1.1/src/js/menus/panel.js | 195 + .../src/js/menus/quote/index.js | 75 + .../src/js/menus/redo/index.js | 35 + .../src/js/menus/strikethrough/index.js | 60 + .../src/js/menus/table/index.js | 376 + .../src/js/menus/underline/index.js | 60 + .../src/js/menus/undo/index.js | 35 + .../src/js/menus/video/index.js | 86 + .../src/js/selection/index.js | 192 + .../wangEditor-3.1.1/src/js/text/index.js | 553 + .../wangEditor-3.1.1/src/js/util/dom-core.js | 488 + .../src/js/util/paste-handle.js | 91 + .../wangEditor-3.1.1/src/js/util/poly-fill.js | 48 + .../src/js/util/replace-lang.js | 21 + .../wangEditor-3.1.1/src/js/util/util.js | 72 + .../wangEditor-3.1.1/src/less/common.less | 19 + .../wangEditor-3.1.1/src/less/droplist.less | 48 + .../wangEditor-3.1.1/src/less/icon.less | 108 + .../wangEditor-3.1.1/src/less/menus.less | 33 + .../wangEditor-3.1.1/src/less/panel.less | 159 + .../wangEditor-3.1.1/src/less/text.less | 77 + readme.md | 1 + resources/assets/js/app.js | 22 + resources/assets/js/bootstrap.js | 55 + .../assets/js/components/ExampleComponent.vue | 23 + resources/assets/sass/_variables.scss | 38 + resources/assets/sass/app.scss | 9 + resources/lang/en/admin.php | 112 + resources/lang/en/auth.php | 19 + resources/lang/en/pagination.php | 19 + resources/lang/en/passwords.php | 22 + resources/lang/en/validation.php | 121 + resources/lang/es/admin.php | 98 + resources/lang/fr/admin.php | 112 + resources/lang/he/admin.php | 73 + resources/lang/nl/admin.php | 112 + resources/lang/pl/admin.php | 83 + resources/lang/ru/admin.php | 83 + resources/lang/zh-CN/admin.php | 112 + resources/lang/zh-TW/admin.php | 112 + .../views/admin/add-specification.blade.php | 16 + resources/views/admin/wang-editor.blade.php | 16 + resources/views/welcome.blade.php | 85 + routes/api.php | 104 + routes/channels.php | 16 + routes/console.php | 18 + routes/web.php | 16 + server.php | 21 + storage/app/.gitignore | 3 + storage/app/public/.gitignore | 2 + storage/framework/.gitignore | 8 + storage/framework/cache/.gitignore | 2 + storage/framework/sessions/.gitignore | 2 + storage/framework/testing/.gitignore | 2 + storage/framework/views/.gitignore | 2 + storage/logs/.gitignore | 2 + tests/AuthenticatebakController.php | 157 + tests/CreatesApplication.php | 25 + tests/Feature/ExampleTest.php | 21 + tests/TestCase.php | 10 + tests/Unit/ExampleTest.php | 19 + webpack.mix.js | 15 + yarn.lock | 7060 +++ 987 files changed, 115057 insertions(+) create mode 100644 .env.example create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 app/Admin/Controllers/BrandController.php create mode 100644 app/Admin/Controllers/CarouselController.php create mode 100644 app/Admin/Controllers/ClassController.php create mode 100644 app/Admin/Controllers/ExampleController.php create mode 100644 app/Admin/Controllers/FrontEndUserController.php create mode 100644 app/Admin/Controllers/GoodController.php create mode 100644 app/Admin/Controllers/HomeController.php create mode 100644 app/Admin/Controllers/NewsController.php create mode 100644 app/Admin/Controllers/ProjectFuncDotController.php create mode 100644 app/Admin/Controllers/ProjectFuncTypeController.php create mode 100644 app/Admin/Controllers/ProjectModelController.php create mode 100644 app/Admin/Controllers/ProjectTypeController.php create mode 100644 app/Admin/Controllers/Shop/FeedbackController.php create mode 100644 app/Admin/Controllers/Shop/ShopAttributeCategoryController.php create mode 100644 app/Admin/Controllers/Shop/ShopAttributeController.php create mode 100644 app/Admin/Controllers/Shop/ShopCategoryController.php create mode 100644 app/Admin/Controllers/Shop/ShopGoodsController.php create mode 100644 app/Admin/Controllers/Shop/ShopOrderController.php create mode 100644 app/Admin/Controllers/Shop/ShopSpecificationController.php create mode 100644 app/Admin/Controllers/Shop/ShopTopicController.php create mode 100644 app/Admin/Controllers/SpecialController.php create mode 100644 app/Admin/Controllers/UploadController.php create mode 100644 app/Admin/Controllers/UsersController.php create mode 100644 app/Admin/Extensions/Column/ExpandRow.php create mode 100644 app/Admin/Extensions/Column/OpenMap.php create mode 100644 app/Admin/Extensions/Form/AddSpecification.php create mode 100644 app/Admin/Extensions/Form/CKEditor.php create mode 100644 app/Admin/Extensions/Form/MarkdownEditor.php create mode 100644 app/Admin/Extensions/Form/MyMap.php create mode 100644 app/Admin/Extensions/Form/PHPEditor.php create mode 100644 app/Admin/Extensions/Form/WangEditor.php create mode 100644 app/Admin/Extensions/WangEditor.php create mode 100644 app/Admin/bootstrap.php create mode 100644 app/Admin/routes.php create mode 100644 app/Common/functions.php create mode 100644 app/Console/Commands/AutoCompleteOrder.php create mode 100644 app/Console/Commands/MiniInstall.php create mode 100644 app/Console/Kernel.php create mode 100644 app/Exceptions/Handler.php create mode 100644 app/Helpers/Api/ApiResponse.php create mode 100644 app/Http/Controllers/Api/AddressesController.php create mode 100644 app/Http/Controllers/Api/AddrjsonbController.php create mode 100644 app/Http/Controllers/Api/ApiController.php create mode 100644 app/Http/Controllers/Api/AuthenticateController.php create mode 100644 app/Http/Controllers/Api/GoodsController.php create mode 100644 app/Http/Controllers/Api/IndexController.php create mode 100644 app/Http/Controllers/Api/MyOrderController.php create mode 100644 app/Http/Controllers/Api/NewsApiController.php create mode 100644 app/Http/Controllers/Api/PaymentController.php create mode 100644 app/Http/Controllers/Api/ProjectElementController.php create mode 100644 app/Http/Controllers/Api/ProjectJsonController.php create mode 100644 app/Http/Controllers/Api/ShopAddressController.php create mode 100644 app/Http/Controllers/Api/ShopBrandController.php create mode 100644 app/Http/Controllers/Api/ShopCartController.php create mode 100644 app/Http/Controllers/Api/ShopCategoryController.php create mode 100644 app/Http/Controllers/Api/ShopCollectController.php create mode 100644 app/Http/Controllers/Api/ShopCommentController.php create mode 100644 app/Http/Controllers/Api/ShopFeedbackController.php create mode 100644 app/Http/Controllers/Api/ShopFootprintController.php create mode 100644 app/Http/Controllers/Api/ShopGoodsController.php create mode 100644 app/Http/Controllers/Api/ShopOrderController.php create mode 100644 app/Http/Controllers/Api/ShopRegionController.php create mode 100644 app/Http/Controllers/Api/ShopTopicController.php create mode 100644 app/Http/Controllers/Api/bak/CreateCityDataController.php create mode 100644 app/Http/Controllers/Api/bak/IphoneController.php create mode 100644 app/Http/Controllers/Api/bak/OrderInfoController.php create mode 100644 app/Http/Controllers/Api/bak/OrdersController.php create mode 100644 app/Http/Controllers/Auth/ForgotPasswordController.php create mode 100644 app/Http/Controllers/Auth/LoginController.php create mode 100644 app/Http/Controllers/Auth/RegisterController.php create mode 100644 app/Http/Controllers/Auth/ResetPasswordController.php create mode 100644 app/Http/Controllers/Controller.php create mode 100644 app/Http/Kernel.php create mode 100644 app/Http/Middleware/EncryptCookies.php create mode 100644 app/Http/Middleware/RedirectIfAuthenticated.php create mode 100644 app/Http/Middleware/TrimStrings.php create mode 100644 app/Http/Middleware/TrustProxies.php create mode 100644 app/Http/Middleware/VerifyCsrfToken.php create mode 100644 app/Http/Resources/Carousel.php create mode 100644 app/Http/Resources/DefaultAddr.php create mode 100644 app/Http/Resources/Good.php create mode 100644 app/Http/Resources/GoodCollection.php create mode 100644 app/Http/Resources/GoodDetail.php create mode 100644 app/Http/Resources/ProjectType.php create mode 100644 app/Http/Resources/ShopAddress.php create mode 100644 app/Http/Resources/ShopBrand.php create mode 100644 app/Http/Resources/ShopCart.php create mode 100644 app/Http/Resources/ShopCategory.php create mode 100644 app/Http/Resources/ShopCollect.php create mode 100644 app/Http/Resources/ShopComment.php create mode 100644 app/Http/Resources/ShopFootprint.php create mode 100644 app/Http/Resources/ShopGoods.php create mode 100644 app/Http/Resources/ShopGoodsAttribute.php create mode 100644 app/Http/Resources/ShopOrder.php create mode 100644 app/Http/Resources/ShopOrderGoods.php create mode 100644 app/Http/Resources/ShopTopic.php create mode 100644 app/Http/Resources/Special.php create mode 100644 app/Logics/AddressLogic.php create mode 100644 app/Logics/Buy.php create mode 100644 app/Logics/CartLogic.php create mode 100644 app/Logics/GoodsLogic.php create mode 100644 app/Logics/OrderLogic.php create mode 100644 app/Logics/ProjectControl.php create mode 100644 app/Logics/ShopCommentLogic.php create mode 100644 app/Logics/ShopGoodsLogic.php create mode 100644 app/Logics/ShopIssueLogic.php create mode 100644 app/Logics/readme.txt create mode 100644 app/Models/Address.php create mode 100644 app/Models/Addrjson.php create mode 100644 app/Models/Carousel.php create mode 100644 app/Models/Classes.php create mode 100644 app/Models/Good.php create mode 100644 app/Models/News.php create mode 100644 app/Models/ProjectFuncdot.php create mode 100644 app/Models/ProjectFunctype.php create mode 100644 app/Models/ProjectModel.php create mode 100644 app/Models/ProjectType.php create mode 100644 app/Models/ShopAddress.php create mode 100644 app/Models/ShopAttribute.php create mode 100644 app/Models/ShopAttributeCategory.php create mode 100644 app/Models/ShopBrand.php create mode 100644 app/Models/ShopCart.php create mode 100644 app/Models/ShopCategory.php create mode 100644 app/Models/ShopCollect.php create mode 100644 app/Models/ShopComment.php create mode 100644 app/Models/ShopCommentPicture.php create mode 100644 app/Models/ShopCoupon.php create mode 100644 app/Models/ShopFeedback.php create mode 100644 app/Models/ShopFootprint.php create mode 100644 app/Models/ShopGoods.php create mode 100644 app/Models/ShopGoodsAttribute.php create mode 100644 app/Models/ShopGoodsIssue.php create mode 100644 app/Models/ShopGoodsSpecification.php create mode 100644 app/Models/ShopGoodsTechnology.php create mode 100644 app/Models/ShopOrder.php create mode 100644 app/Models/ShopOrderExpress.php create mode 100644 app/Models/ShopOrderGoods.php create mode 100644 app/Models/ShopProduct.php create mode 100644 app/Models/ShopRegion.php create mode 100644 app/Models/ShopShipper.php create mode 100644 app/Models/ShopSpecification.php create mode 100644 app/Models/ShopTopic.php create mode 100644 app/Models/ShopUserCoupon.php create mode 100644 app/Models/Special.php create mode 100644 app/Providers/AppServiceProvider.php create mode 100644 app/Providers/AuthServiceProvider.php create mode 100644 app/Providers/BroadcastServiceProvider.php create mode 100644 app/Providers/EventServiceProvider.php create mode 100644 app/Providers/RouteServiceProvider.php create mode 100644 app/User.php create mode 100644 artisan create mode 100644 bootstrap/app.php create mode 100644 bootstrap/cache/.gitignore create mode 100644 composer.json create mode 100644 config/admin.php create mode 100644 config/app.php create mode 100644 config/auth.php create mode 100644 config/broadcasting.php create mode 100644 config/cache.php create mode 100644 config/database.php create mode 100644 config/filesystems.php create mode 100644 config/mail.php create mode 100644 config/queue.php create mode 100644 config/services.php create mode 100644 config/session.php create mode 100644 config/view.php create mode 100644 config/wechat.php create mode 100644 database/.gitignore create mode 100644 database/factories/UserFactory.php create mode 100644 database/migrations/2014_10_12_000000_create_users_table.php create mode 100644 database/migrations/2014_10_12_100000_create_password_resets_table.php create mode 100644 database/migrations/2016_01_04_173148_create_admin_tables.php create mode 100644 database/migrations/2018_02_08_093611_add_column_to_users.php create mode 100644 database/migrations/2018_03_02_115751_create_classes_table.php create mode 100644 database/migrations/2018_03_04_025119_create_carousel_table.php create mode 100644 database/migrations/2018_03_04_025120_create_special _table.php create mode 100644 database/migrations/2018_03_05_103843_add_goods_id_to_carousel_table.php create mode 100644 database/migrations/2018_03_06_134349_create_news_table.php create mode 100644 database/migrations/2018_03_16_095404_create_errors_log_table.php create mode 100644 database/migrations/2018_05_05_103843_add_icon_to_special_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_address_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_attribute_category_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_attribute_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_brand_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_cart_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_category_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_collect_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_comment_picture_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_comment_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_coupon_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_goods_attribute_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_goods_gallery_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_goods_issue_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_goods_specification_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_goods_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_order_express_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_order_goods_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_order_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_product_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_region_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_shipper_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_specification_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_topic_category_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_topic_table.php create mode 100644 database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php create mode 100644 database/migrations/2018_11_28_091105_create_project_model_table.php create mode 100644 database/migrations/2018_12_12_132024_create_project_type_table.php create mode 100644 database/migrations/2018_12_12_132116_create_project_functype_table.php create mode 100644 database/migrations/2018_12_12_143843_add_field_to_project_type_table.php create mode 100644 database/migrations/2018_12_21_071138_create_project_funcdot.php create mode 100644 database/migrations/2018_12_22_031959_create_shop_goods_technology_table.php create mode 100644 database/migrations/2018_12_23_103843_add_brand_to_project_type_table.php create mode 100644 database/migrations/2018_12_24_031959_create_shop_feedback_table.php create mode 100644 database/migrations/2018_12_25_031959_create_shop_footprint_table.php create mode 100644 database/seeds/AdminMenuTableSeeder.php create mode 100644 database/seeds/CarouselTableSeeder.php create mode 100644 database/seeds/ClassesTableSeeder.php create mode 100644 database/seeds/DatabaseSeeder.php create mode 100644 database/seeds/NewsTableSeeder.php create mode 100644 database/seeds/ProjectFuncdotTableSeeder.php create mode 100644 database/seeds/ProjectFunctypeTableSeeder.php create mode 100644 database/seeds/ProjectModelTableSeeder.php create mode 100644 database/seeds/ProjectTypeTableSeeder.php create mode 100644 database/seeds/ShopAddressTableSeeder.php create mode 100644 database/seeds/ShopAttributeCategoryTableSeeder.php create mode 100644 database/seeds/ShopAttributeTableSeeder.php create mode 100644 database/seeds/ShopBrandTableSeeder.php create mode 100644 database/seeds/ShopCategoryTableSeeder.php create mode 100644 database/seeds/ShopCollectTableSeeder.php create mode 100644 database/seeds/ShopCommentPictureTableSeeder.php create mode 100644 database/seeds/ShopCommentTableSeeder.php create mode 100644 database/seeds/ShopCouponTableSeeder.php create mode 100644 database/seeds/ShopGoodsAttributeTableSeeder.php create mode 100644 database/seeds/ShopGoodsGalleryTableSeeder.php create mode 100644 database/seeds/ShopGoodsIssueTableSeeder.php create mode 100644 database/seeds/ShopGoodsSpecificationTableSeeder.php create mode 100644 database/seeds/ShopGoodsTableSeeder.php create mode 100644 database/seeds/ShopOrderExpressTableSeeder.php create mode 100644 database/seeds/ShopOrderGoodsTableSeeder.php create mode 100644 database/seeds/ShopOrderTableSeeder.php create mode 100644 database/seeds/ShopProductTableSeeder.php create mode 100644 database/seeds/ShopRegionTableSeeder.php create mode 100644 database/seeds/ShopShipperTableSeeder.php create mode 100644 database/seeds/ShopSpecificationTableSeeder.php create mode 100644 database/seeds/ShopTopicCategoryTableSeeder.php create mode 100644 database/seeds/ShopTopicTableSeeder.php create mode 100644 database/seeds/ShopUserCouponTableSeeder.php create mode 100644 database/seeds/SpecialTableSeeder.php create mode 100644 database/seeds/carousel_boothsTableSeeder.php create mode 100644 database/seeds/missionTableSeeder.php create mode 100644 mini/.gitignore create mode 100644 mini/LICENSE create mode 100644 mini/app.js create mode 100644 mini/app.json create mode 100644 mini/app.wxss create mode 100644 mini/config/api.js create mode 100644 mini/lib/wxParse/html2json.js create mode 100644 mini/lib/wxParse/htmlparser.js create mode 100644 mini/lib/wxParse/showdown.js create mode 100644 mini/lib/wxParse/wxDiscode.js create mode 100644 mini/lib/wxParse/wxParse.js create mode 100644 mini/lib/wxParse/wxParse.wxml create mode 100644 mini/lib/wxParse/wxParse.wxss create mode 100644 mini/pages/auth/login/login.js create mode 100644 mini/pages/auth/login/login.json create mode 100644 mini/pages/auth/login/login.wxml create mode 100644 mini/pages/auth/login/login.wxss create mode 100644 mini/pages/auth/register/register.js create mode 100644 mini/pages/auth/register/register.json create mode 100644 mini/pages/auth/register/register.wxml create mode 100644 mini/pages/auth/register/register.wxss create mode 100644 mini/pages/auth/reset/reset.js create mode 100644 mini/pages/auth/reset/reset.json create mode 100644 mini/pages/auth/reset/reset.wxml create mode 100644 mini/pages/auth/reset/reset.wxss create mode 100644 mini/pages/brand/brand.js create mode 100644 mini/pages/brand/brand.json create mode 100644 mini/pages/brand/brand.wxml create mode 100644 mini/pages/brand/brand.wxss create mode 100644 mini/pages/brandDetail/brandDetail.js create mode 100644 mini/pages/brandDetail/brandDetail.json create mode 100644 mini/pages/brandDetail/brandDetail.wxml create mode 100644 mini/pages/brandDetail/brandDetail.wxss create mode 100644 mini/pages/cart/cart.js create mode 100644 mini/pages/cart/cart.json create mode 100644 mini/pages/cart/cart.wxml create mode 100644 mini/pages/cart/cart.wxss create mode 100644 mini/pages/catalog/catalog.js create mode 100644 mini/pages/catalog/catalog.json create mode 100644 mini/pages/catalog/catalog.wxml create mode 100644 mini/pages/catalog/catalog.wxss create mode 100644 mini/pages/category/category.js create mode 100644 mini/pages/category/category.json create mode 100644 mini/pages/category/category.wxml create mode 100644 mini/pages/category/category.wxss create mode 100644 mini/pages/comment/comment.js create mode 100644 mini/pages/comment/comment.json create mode 100644 mini/pages/comment/comment.wxml create mode 100644 mini/pages/comment/comment.wxss create mode 100644 mini/pages/commentPost/commentPost.js create mode 100644 mini/pages/commentPost/commentPost.json create mode 100644 mini/pages/commentPost/commentPost.wxml create mode 100644 mini/pages/commentPost/commentPost.wxss create mode 100644 mini/pages/goods/goods.js create mode 100644 mini/pages/goods/goods.json create mode 100644 mini/pages/goods/goods.wxml create mode 100644 mini/pages/goods/goods.wxss create mode 100644 mini/pages/hotGoods/hotGoods.js create mode 100644 mini/pages/hotGoods/hotGoods.json create mode 100644 mini/pages/hotGoods/hotGoods.wxml create mode 100644 mini/pages/hotGoods/hotGoods.wxss create mode 100644 mini/pages/index/index.js create mode 100644 mini/pages/index/index.json create mode 100644 mini/pages/index/index.wxml create mode 100644 mini/pages/index/index.wxss create mode 100644 mini/pages/logs/logs.js create mode 100644 mini/pages/logs/logs.json create mode 100644 mini/pages/logs/logs.wxml create mode 100644 mini/pages/logs/logs.wxss create mode 100644 mini/pages/newGoods/newGoods.js create mode 100644 mini/pages/newGoods/newGoods.json create mode 100644 mini/pages/newGoods/newGoods.wxml create mode 100644 mini/pages/newGoods/newGoods.wxss create mode 100644 mini/pages/pay/pay.js create mode 100644 mini/pages/pay/pay.json create mode 100644 mini/pages/pay/pay.wxml create mode 100644 mini/pages/pay/pay.wxss create mode 100644 mini/pages/payResult/payResult.js create mode 100644 mini/pages/payResult/payResult.json create mode 100644 mini/pages/payResult/payResult.wxml create mode 100644 mini/pages/payResult/payResult.wxss create mode 100644 mini/pages/projectType/projectType.js create mode 100644 mini/pages/projectType/projectType.json create mode 100644 mini/pages/projectType/projectType.wxml create mode 100644 mini/pages/projectType/projectType.wxss create mode 100644 mini/pages/search/search.js create mode 100644 mini/pages/search/search.json create mode 100644 mini/pages/search/search.wxml create mode 100644 mini/pages/search/search.wxss create mode 100644 mini/pages/shopping/address/address.js create mode 100644 mini/pages/shopping/address/address.json create mode 100644 mini/pages/shopping/address/address.wxml create mode 100644 mini/pages/shopping/address/address.wxss create mode 100644 mini/pages/shopping/addressAdd/addressAdd.js create mode 100644 mini/pages/shopping/addressAdd/addressAdd.json create mode 100644 mini/pages/shopping/addressAdd/addressAdd.wxml create mode 100644 mini/pages/shopping/addressAdd/addressAdd.wxss create mode 100644 mini/pages/shopping/checkout/checkout.js create mode 100644 mini/pages/shopping/checkout/checkout.json create mode 100644 mini/pages/shopping/checkout/checkout.wxml create mode 100644 mini/pages/shopping/checkout/checkout.wxss create mode 100644 mini/pages/start/start.js create mode 100644 mini/pages/start/start.json create mode 100644 mini/pages/start/start.wxml create mode 100644 mini/pages/start/start.wxss create mode 100644 mini/pages/technologyGoods/technologyGoods.js create mode 100644 mini/pages/technologyGoods/technologyGoods.json create mode 100644 mini/pages/technologyGoods/technologyGoods.wxml create mode 100644 mini/pages/technologyGoods/technologyGoods.wxss create mode 100644 mini/pages/topic/topic.js create mode 100644 mini/pages/topic/topic.json create mode 100644 mini/pages/topic/topic.wxml create mode 100644 mini/pages/topic/topic.wxss create mode 100644 mini/pages/topicComment/topicComment.js create mode 100644 mini/pages/topicComment/topicComment.json create mode 100644 mini/pages/topicComment/topicComment.wxml create mode 100644 mini/pages/topicComment/topicComment.wxss create mode 100644 mini/pages/topicDetail/topicDetail.js create mode 100644 mini/pages/topicDetail/topicDetail.json create mode 100644 mini/pages/topicDetail/topicDetail.wxml create mode 100644 mini/pages/topicDetail/topicDetail.wxss create mode 100644 mini/pages/ucenter/address/address.js create mode 100644 mini/pages/ucenter/address/address.json create mode 100644 mini/pages/ucenter/address/address.wxml create mode 100644 mini/pages/ucenter/address/address.wxss create mode 100644 mini/pages/ucenter/addressAdd/addressAdd.js create mode 100644 mini/pages/ucenter/addressAdd/addressAdd.json create mode 100644 mini/pages/ucenter/addressAdd/addressAdd.wxml create mode 100644 mini/pages/ucenter/addressAdd/addressAdd.wxss create mode 100644 mini/pages/ucenter/collect/collect.js create mode 100644 mini/pages/ucenter/collect/collect.json create mode 100644 mini/pages/ucenter/collect/collect.wxml create mode 100644 mini/pages/ucenter/collect/collect.wxss create mode 100644 mini/pages/ucenter/coupon/coupon.js create mode 100644 mini/pages/ucenter/coupon/coupon.json create mode 100644 mini/pages/ucenter/coupon/coupon.wxml create mode 100644 mini/pages/ucenter/coupon/coupon.wxss create mode 100644 mini/pages/ucenter/express/express.js create mode 100644 mini/pages/ucenter/express/express.json create mode 100644 mini/pages/ucenter/express/express.wxml create mode 100644 mini/pages/ucenter/express/express.wxss create mode 100644 mini/pages/ucenter/feedback/feedback.js create mode 100644 mini/pages/ucenter/feedback/feedback.json create mode 100644 mini/pages/ucenter/feedback/feedback.wxml create mode 100644 mini/pages/ucenter/feedback/feedback.wxss create mode 100644 mini/pages/ucenter/footprint/footprint.js create mode 100644 mini/pages/ucenter/footprint/footprint.json create mode 100644 mini/pages/ucenter/footprint/footprint.wxml create mode 100644 mini/pages/ucenter/footprint/footprint.wxss create mode 100644 mini/pages/ucenter/index/index.js create mode 100644 mini/pages/ucenter/index/index.json create mode 100644 mini/pages/ucenter/index/index.wxml create mode 100644 mini/pages/ucenter/index/index.wxss create mode 100644 mini/pages/ucenter/order/order.js create mode 100644 mini/pages/ucenter/order/order.json create mode 100644 mini/pages/ucenter/order/order.wxml create mode 100644 mini/pages/ucenter/order/order.wxss create mode 100644 mini/pages/ucenter/orderDetail/orderDetail.js create mode 100644 mini/pages/ucenter/orderDetail/orderDetail.json create mode 100644 mini/pages/ucenter/orderDetail/orderDetail.wxml create mode 100644 mini/pages/ucenter/orderDetail/orderDetail.wxss create mode 100644 mini/services/pay.js create mode 100644 mini/services/user.js create mode 100644 mini/static/images/address-bg-bd.png create mode 100644 mini/static/images/address_right.png create mode 100644 mini/static/images/checkbox.png create mode 100644 mini/static/images/checked.png create mode 100644 mini/static/images/checked1.png create mode 100644 mini/static/images/clear_input.png create mode 100644 mini/static/images/coding.png create mode 100644 mini/static/images/default.header.png create mode 100644 mini/static/images/del-address.png create mode 100644 mini/static/images/detail_back.png create mode 100644 mini/static/images/detail_kefu.png create mode 100644 mini/static/images/go.png create mode 100644 mini/static/images/ic_menu_choice_nor.png create mode 100644 mini/static/images/ic_menu_choice_pressed.png create mode 100644 mini/static/images/ic_menu_me_nor.png create mode 100644 mini/static/images/ic_menu_me_pressed.png create mode 100644 mini/static/images/ic_menu_shoping_nor.png create mode 100644 mini/static/images/ic_menu_shoping_pressed.png create mode 100644 mini/static/images/ic_menu_sort_nor.png create mode 100644 mini/static/images/ic_menu_sort_pressed.png create mode 100644 mini/static/images/ic_menu_topic_nor.png create mode 100644 mini/static/images/ic_menu_topic_pressed.png create mode 100644 mini/static/images/icon_close.png create mode 100644 mini/static/images/icon_collect.png create mode 100644 mini/static/images/icon_collect_checked.png create mode 100644 mini/static/images/icon_error.png create mode 100644 mini/static/images/icon_go_more.png create mode 100644 mini/static/images/more/.DS_Store create mode 100644 mini/static/images/more/close.png create mode 100644 mini/static/images/more/confirm-word1.png create mode 100644 mini/static/images/more/confirm-word1.png1 create mode 100644 mini/static/images/more/loading.gif create mode 100644 mini/static/images/more/minecenterok.png create mode 100644 mini/static/images/more/title8.png create mode 100644 mini/static/images/more/wave.png create mode 100644 mini/static/images/no-order.png create mode 100644 mini/static/images/selnum.png create mode 100644 mini/static/images/wxpay.png create mode 100644 mini/utils/util.js create mode 100644 package.json create mode 100644 phpunit.xml create mode 100644 public/.htaccess create mode 100644 public/css/app.css create mode 100644 public/favicon.ico create mode 100644 public/images/add-addr.png create mode 100644 public/images/addr-active.png create mode 100644 public/images/addr-edit.png create mode 100644 public/images/addr-line.png create mode 100644 public/images/arrow-right.png create mode 100644 public/images/cart.png create mode 100644 public/images/default_head.png create mode 100644 public/images/gou-red.png create mode 100644 public/images/gou.png create mode 100644 public/images/ico-add-addr.png create mode 100644 public/images/ico-addr.png create mode 100644 public/images/icon-cart.png create mode 100644 public/images/icon-normal/address-right-990628faa7.png create mode 100644 public/images/icon-normal/detailTagArrow-18bee52dab.png create mode 100644 public/images/icon-normal/servicePolicyRed-518d32d74b.png create mode 100644 public/images/kefu.png create mode 100644 public/images/no-order.png create mode 100644 public/images/popup-close.png create mode 100644 public/images/qd.png create mode 100644 public/images/search-pic.png create mode 100644 public/index.php create mode 100644 public/js/app.js create mode 100644 public/log/readme.txt create mode 100644 public/robots.txt create mode 100644 public/uploads/images/0cc7ad0ef1d0fe7162f3f78b7e80b0be.jpg create mode 100644 public/uploads/images/337bfd9633201b0e2bea6f31a15e80ca.jpg create mode 100644 public/uploads/images/367bceacffcb308a6f39dbb681d07d06.png create mode 100644 public/uploads/images/4ee024ed668216c1dcc5d9971dbee381.png create mode 100644 public/uploads/images/580f57b7451495416ea8af9fd490cdac.jpg create mode 100644 public/uploads/images/5a8c52740212b8445bd7f8260849ece3.jpg create mode 100644 public/uploads/images/9b56eac9d605940752b3aa7add348b3a.png create mode 100644 public/uploads/images/a1d561930fa5d7df0fb5dcc3309fd23b.png create mode 100644 public/uploads/images/ac7ca6949bea6a0031065a6337ae31fd.png create mode 100644 public/uploads/images/d4980fef4918a6fc9bb4c8d126602418.jpg create mode 100644 public/uploads/images/edd988bf5e02e728307f910e09cda125.png create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/css/bootstrap.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.eot create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.svg create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.ttf create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/fonts/glyphicons-halflings-regular.woff2 create mode 100644 public/vendor/laravel-admin/AdminLTE/bootstrap/js/bootstrap.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/AdminLTE.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/_all-skins.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-black-light.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-black.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-blue-light.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-blue.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-green-light.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-green.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-purple-light.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-purple.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-red-light.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-red.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-yellow-light.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/css/skins/skin-yellow.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/boxed-bg.jpg create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/boxed-bg.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/american-express.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/cirrus.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/mastercard.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/mestro.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/paypal2.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/credit/visa.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/default-50x50.gif create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/icons.png create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg create mode 100644 public/vendor/laravel-admin/AdminLTE/dist/js/app.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/bootstrap-slider/bootstrap-slider.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/bootstrap-slider/slider.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha-horizontal.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/alpha.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue-horizontal.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/hue.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/colorpicker/img/saturation.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/all.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/_all.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/aero@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/blue@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/flat@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/green@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/grey@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/orange@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/pink@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/purple@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/red@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/flat/yellow@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/futurico/futurico@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/icheck.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/_all.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/aero.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/blue.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/green.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/grey.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/line@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/orange.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/pink.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/purple.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/red.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/line/yellow.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/_all.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/aero@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/blue@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/green@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/grey@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/minimal@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/orange@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/pink@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/purple@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/red@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/minimal/yellow@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/polaris/polaris@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/_all.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/aero@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/green@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/grey@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/orange@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/pink@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/purple@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/red@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/square@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/iCheck/square/yellow@2x.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/input-mask/jquery.inputmask.bundle.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/input-mask/phone-codes/phone-be.json create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/input-mask/phone-codes/phone-codes.json create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/input-mask/phone-codes/readme.txt create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/ionslider/img/sprite-skin-flat.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/ionslider/img/sprite-skin-nice.png create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.skinFlat.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.skinNice.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ar.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/az.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/bg.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ca.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/cs.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/da.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/de.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/el.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/en.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/es.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/et.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/eu.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/fa.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/fi.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/fr.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/gl.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/he.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/hi.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/hr.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/hu.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/id.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/is.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/it.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ja.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/km.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ko.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/lt.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/lv.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/mk.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ms.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/nb.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/nl.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/pl.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/pt-BR.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/pt.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ro.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/ru.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sk.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sr-Cyrl.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sr.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/sv.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/th.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/tr.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/uk.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/vi.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/zh-CN.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/i18n/zh-TW.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/select2.full.min.js create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/select2/select2.min.css create mode 100644 public/vendor/laravel-admin/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js create mode 100644 public/vendor/laravel-admin/bootstrap-duallistbox/dist/bootstrap-duallistbox.min.css create mode 100644 public/vendor/laravel-admin/bootstrap-duallistbox/dist/jquery.bootstrap-duallistbox.min.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/css/fileinput.min.css create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/img/loading-sm.gif create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/img/loading.gif create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/fileinput.min.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/canvas-to-blob.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/canvas-to-blob.min.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/purify.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/purify.min.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/sortable.js create mode 100644 public/vendor/laravel-admin/bootstrap-fileinput/js/plugins/sortable.min.js create mode 100644 public/vendor/laravel-admin/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css create mode 100644 public/vendor/laravel-admin/bootstrap-switch/dist/js/bootstrap-switch.min.js create mode 100644 public/vendor/laravel-admin/bootstrap3-editable/css/bootstrap-editable.css create mode 100644 public/vendor/laravel-admin/bootstrap3-editable/img/clear.png create mode 100644 public/vendor/laravel-admin/bootstrap3-editable/img/loading.gif create mode 100644 public/vendor/laravel-admin/bootstrap3-editable/js/bootstrap-editable.min.js create mode 100644 public/vendor/laravel-admin/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css create mode 100644 public/vendor/laravel-admin/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js create mode 100644 public/vendor/laravel-admin/font-awesome/css/font-awesome.min.css create mode 100644 public/vendor/laravel-admin/font-awesome/fonts/FontAwesome.otf create mode 100644 public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.eot create mode 100644 public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.svg create mode 100644 public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.ttf create mode 100644 public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.woff create mode 100644 public/vendor/laravel-admin/font-awesome/fonts/fontawesome-webfont.woff2 create mode 100644 public/vendor/laravel-admin/fontawesome-iconpicker/dist/css/fontawesome-iconpicker.min.css create mode 100644 public/vendor/laravel-admin/fontawesome-iconpicker/dist/js/fontawesome-iconpicker.min.js create mode 100644 public/vendor/laravel-admin/google-fonts/fonts.css create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Bold.woff2 create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Italic.woff2 create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff2 create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Light.woff2 create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2 create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro-Semibold.woff2 create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.eot create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.svg create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.ttf create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff create mode 100644 public/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff2 create mode 100644 public/vendor/laravel-admin/jquery-pjax/jquery.pjax.js create mode 100644 public/vendor/laravel-admin/laravel-admin/laravel-admin.css create mode 100644 public/vendor/laravel-admin/laravel-admin/laravel-admin.js create mode 100644 public/vendor/laravel-admin/moment/min/moment-with-locales.min.js create mode 100644 public/vendor/laravel-admin/nestable/jquery.nestable.js create mode 100644 public/vendor/laravel-admin/nestable/nestable.css create mode 100644 public/vendor/laravel-admin/nprogress/nprogress.css create mode 100644 public/vendor/laravel-admin/nprogress/nprogress.js create mode 100644 public/vendor/laravel-admin/number-input/bootstrap-number-input.js create mode 100644 public/vendor/laravel-admin/sweetalert/dist/sweetalert.css create mode 100644 public/vendor/laravel-admin/sweetalert/dist/sweetalert.min.js create mode 100644 public/vendor/laravel-admin/toastr/build/toastr.min.css create mode 100644 public/vendor/laravel-admin/toastr/build/toastr.min.js create mode 100644 public/vendor/wangEditor-3.1.1/.eslintignore create mode 100644 public/vendor/wangEditor-3.1.1/.eslintrc.json create mode 100644 public/vendor/wangEditor-3.1.1/.gitattributes create mode 100644 public/vendor/wangEditor-3.1.1/.gitignore create mode 100644 public/vendor/wangEditor-3.1.1/.npmignore create mode 100644 public/vendor/wangEditor-3.1.1/ISSUE.md create mode 100644 public/vendor/wangEditor-3.1.1/LICENSE create mode 100644 public/vendor/wangEditor-3.1.1/README.md create mode 100644 public/vendor/wangEditor-3.1.1/bower.json create mode 100644 public/vendor/wangEditor-3.1.1/docs/dev/README.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/01-getstart/01-demo.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/01-getstart/02-use-module.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/01-getstart/03-sperate.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/01-getstart/04-multi.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/02-content/01-set-content.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/02-content/02-get-content.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/02-content/03-use-textarea.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/02-content/04-get-json.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/01-menu.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/02-debug.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/03-onchange.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/04-z-index.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/05-lang.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/06-paste.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/07-linkImgCallback.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/08-linkCheck.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/09-onfocus.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/10-onblur.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/11-linkImgCheck.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/12-colors.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/13-emot.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/03-config/14-font-name.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/04-uploadimg/01-show-tab.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/04-uploadimg/02-base64.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/04-uploadimg/03-upload-config.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/04-uploadimg/04-qiniu.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/01-全屏-预览-查看源码.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/02-上传附件.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/03-markdown.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/04-xss.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/05-react.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/06-vue.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/07-ng.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/05-other/08-api.md create mode 100644 public/vendor/wangEditor-3.1.1/docs/usage/README.md create mode 100644 public/vendor/wangEditor-3.1.1/example/README.md create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/package.json create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/public/favicon.ico create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/public/index.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/public/manifest.json create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/App.css create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/App.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/App.test.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/index.css create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/index.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/logo.svg create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-react/src/registerServiceWorker.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/.babelrc create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/.editorconfig create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/.postcssrc.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/build.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/check-versions.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/dev-client.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/dev-server.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/utils.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/vue-loader.conf.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/webpack.base.conf.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/webpack.dev.conf.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/build/webpack.prod.conf.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/config/dev.env.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/config/index.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/config/prod.env.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/index.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/package.json create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/src/App.vue create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/src/assets/logo.png create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/src/components/Editor.vue create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/src/components/Hello.vue create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/src/main.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/in-vue/static/.gitkeep create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-amd-main.js create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-amd.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-css-reset.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-emot.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-fullscreen.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-get-content.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-getJSON.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-lang.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-menus.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-mult.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-onblur.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-onchange.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-onfocus.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-paste.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-set-content.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-sperate.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-textarea.html create mode 100644 public/vendor/wangEditor-3.1.1/example/demo/test-uploadimg.html create mode 100644 public/vendor/wangEditor-3.1.1/example/favicon.ico create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/Read Me.txt create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/demo-files/demo.css create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/demo-files/demo.js create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/demo.html create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/fonts/icomoon.eot create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/fonts/icomoon.svg create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/fonts/icomoon.ttf create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/fonts/icomoon.woff create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/selection.json create mode 100644 public/vendor/wangEditor-3.1.1/example/icomoon/style.css create mode 100644 public/vendor/wangEditor-3.1.1/example/index.html create mode 100644 public/vendor/wangEditor-3.1.1/example/pay.png create mode 100644 public/vendor/wangEditor-3.1.1/example/server/index.js create mode 100644 public/vendor/wangEditor-3.1.1/example/server/util.js create mode 100644 public/vendor/wangEditor-3.1.1/gulpfile.js create mode 100644 public/vendor/wangEditor-3.1.1/package.json create mode 100644 public/vendor/wangEditor-3.1.1/release/fonts/w-e-icon.woff create mode 100644 public/vendor/wangEditor-3.1.1/release/wangEditor.css create mode 100644 public/vendor/wangEditor-3.1.1/release/wangEditor.js create mode 100644 public/vendor/wangEditor-3.1.1/release/wangEditor.min.css create mode 100644 public/vendor/wangEditor-3.1.1/release/wangEditor.min.js create mode 100644 public/vendor/wangEditor-3.1.1/release/wangEditor.min.js.map create mode 100644 public/vendor/wangEditor-3.1.1/src/fonts/w-e-icon.woff create mode 100644 public/vendor/wangEditor-3.1.1/src/js/.babelrc create mode 100644 public/vendor/wangEditor-3.1.1/src/js/command/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/config.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/editor/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/editor/upload/progress.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/editor/upload/upload-img.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/backColor/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/bold/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/code/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/droplist.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/emoticon/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/fontName/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/fontSize/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/foreColor/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/head/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/img/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/italic/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/justify/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/link/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/list/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/menu-list.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/panel.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/quote/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/redo/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/strikethrough/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/table/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/underline/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/undo/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/menus/video/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/selection/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/text/index.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/util/dom-core.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/util/paste-handle.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/util/poly-fill.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/util/replace-lang.js create mode 100644 public/vendor/wangEditor-3.1.1/src/js/util/util.js create mode 100644 public/vendor/wangEditor-3.1.1/src/less/common.less create mode 100644 public/vendor/wangEditor-3.1.1/src/less/droplist.less create mode 100644 public/vendor/wangEditor-3.1.1/src/less/icon.less create mode 100644 public/vendor/wangEditor-3.1.1/src/less/menus.less create mode 100644 public/vendor/wangEditor-3.1.1/src/less/panel.less create mode 100644 public/vendor/wangEditor-3.1.1/src/less/text.less create mode 100644 readme.md create mode 100644 resources/assets/js/app.js create mode 100644 resources/assets/js/bootstrap.js create mode 100644 resources/assets/js/components/ExampleComponent.vue create mode 100644 resources/assets/sass/_variables.scss create mode 100644 resources/assets/sass/app.scss create mode 100644 resources/lang/en/admin.php create mode 100644 resources/lang/en/auth.php create mode 100644 resources/lang/en/pagination.php create mode 100644 resources/lang/en/passwords.php create mode 100644 resources/lang/en/validation.php create mode 100644 resources/lang/es/admin.php create mode 100644 resources/lang/fr/admin.php create mode 100644 resources/lang/he/admin.php create mode 100644 resources/lang/nl/admin.php create mode 100644 resources/lang/pl/admin.php create mode 100644 resources/lang/ru/admin.php create mode 100644 resources/lang/zh-CN/admin.php create mode 100644 resources/lang/zh-TW/admin.php create mode 100644 resources/views/admin/add-specification.blade.php create mode 100644 resources/views/admin/wang-editor.blade.php create mode 100644 resources/views/welcome.blade.php create mode 100644 routes/api.php create mode 100644 routes/channels.php create mode 100644 routes/console.php create mode 100644 routes/web.php create mode 100644 server.php create mode 100644 storage/app/.gitignore create mode 100644 storage/app/public/.gitignore create mode 100644 storage/framework/.gitignore create mode 100644 storage/framework/cache/.gitignore create mode 100644 storage/framework/sessions/.gitignore create mode 100644 storage/framework/testing/.gitignore create mode 100644 storage/framework/views/.gitignore create mode 100644 storage/logs/.gitignore create mode 100644 tests/AuthenticatebakController.php create mode 100644 tests/CreatesApplication.php create mode 100644 tests/Feature/ExampleTest.php create mode 100644 tests/TestCase.php create mode 100644 tests/Unit/ExampleTest.php create mode 100644 webpack.mix.js create mode 100644 yarn.lock diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..909c432 --- /dev/null +++ b/.env.example @@ -0,0 +1,38 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY=base64:n3wdEB7E5pNp5LmaK/qKCW7XkHjKmrHuR165yHIKD3A= +APP_DEBUG=true +APP_LOG_LEVEL=debug +APP_URL=https://mp.fengyuexingzi.top/ + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=db +DB_USERNAME=m +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +SESSION_DRIVER=file +SESSION_LIFETIME=120 +QUEUE_DRIVER=sync + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_DRIVER=smtp +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_APP_CLUSTER=mt1 + +WECHAT_MINI_PROGRAM_APPID= +WECHAT_MINI_PROGRAM_SECRET= diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..967315d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto +*.css linguist-vendored +*.scss linguist-vendored +*.js linguist-vendored +CHANGELOG.md export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..83beade --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +/node_modules +/public/hot +/public/storage +/storage/*.key +/vendor +/.idea +/.vagrant +Homestead.json +Homestead.yaml +npm-debug.log +yarn-error.log +.env +/.vscode +composer.lock +package-lock.json +/public/mix-manifest.json + + diff --git a/app/Admin/Controllers/BrandController.php b/app/Admin/Controllers/BrandController.php new file mode 100644 index 0000000..e5055b6 --- /dev/null +++ b/app/Admin/Controllers/BrandController.php @@ -0,0 +1,144 @@ +header('品牌列表'); + $content->description('品牌管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('品牌信息修改'); + $content->description('品牌管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('创建新的品牌'); + $content->description('品牌管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopBrand::class, function (Grid $grid) { + $grid->model()->orderBy('id', 'desc'); + $grid->id('序号')->sortable(); + $grid->name('品牌名称')->label('info')->sortable(); + $grid->pic_url('品牌图片')->image('', 100, 100); + $grid->list_pic_url('品牌列表展示图片')->image('', 100, 100); + $grid->simple_desc('品牌描述'); + $grid->sort_order('展示排序'); + $grid->floor_price('品牌显示的最低价'); + $grid->is_new('是否新增') + ->select(ShopBrand::getTypeStateDispayMap()); + $grid->new_pic_url('新增展示图片')->image('', 100, 100); + $grid->new_sort_order('新增逻辑下的排序'); + $grid->is_show('状态') + ->select(ShopBrand::getStateDispayMap()); + + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { + $filter->like('name', '品牌名称'); + $filter->equal('is_show', '状态') + ->radio(ShopBrand::getStateDispayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopBrand::class, function (Form $form) { + $form->display('id', '序号'); + $form->text('name', '品牌名称') + ->rules('required'); + + $form->multipleImage('list_pic_url', '品牌列表展示图片') + ->rules('required'); + + $form->textarea('simple_desc', '品牌描述'); + + $form->image('pic_url', '品牌图片') + ->rules('required'); + + $form->number('sort_order','展示排序') + ->default(255); + + $form->currency('floor_price', '品牌显示的最低价') + ->symbol('¥'); + + $form->radio('is_show', '状态') + ->options(ShopBrand::getStateDispayMap()) + ->default(ShopBrand::STATE_SHOW); + + + $form->image('new_pic_url', '新增展示图片') + ->rules('required') + ->uniqueName() ; + + $form->number('new_sort_order','新增逻辑下的排序') + ->default(255); + + $form->radio('is_new', '是否新增') + ->options(ShopBrand::getTypeStateDispayMap()) + ->default(ShopBrand::NEW_ADD); + + }); + } +} diff --git a/app/Admin/Controllers/CarouselController.php b/app/Admin/Controllers/CarouselController.php new file mode 100644 index 0000000..f8d887f --- /dev/null +++ b/app/Admin/Controllers/CarouselController.php @@ -0,0 +1,134 @@ +header('轮播图列表'); + $content->description('轮播图管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('轮播图修改'); + $content->description('轮播图管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('轮播图创建'); + $content->description('轮播图管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(Carousel::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + + $grid->carousel_title('标题'); + $grid->carousel_img('图片') + ->image('', 75, 75); + $grid->booth_type('展位') + ->select(Carousel::getBoothTypeDisplayMap()); + $grid->goods_id('商品序号'); + $grid->carousel_info('显示内容'); + $grid->state('状态') + ->switch(Carousel::getStateDisplayConfig()); + + $grid->created_at('创建时间'); + $grid->updated_at('更改时间'); + + $grid->filter(function ($filter) { + $filter->like('carousel_title', '标题'); + $filter->equal('booth_type', '展位') + ->select(Carousel::getBoothTypeDisplayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(Carousel::class, function (Form $form) { + + $form->display('id', '序号'); + + $form->text('carousel_title', '标题') + ->rules('required|max:100'); + $form->image('carousel_img', '图片') + ->rules('required') + ->uniqueName(); + $form->select('booth_type', '展位') + ->rules('required') + ->options(Carousel::getBoothTypeDisplayMap()) + ->default(Carousel::BOOTH_TYPE_HOME); +// $form->select('goods_id', '商品序号') +// ->options(Good::getAllGoodsID()) +// ->rules('required'); + $form->text('carousel_info', '显示内容') + ->rules('required|max:100'); + + $stateDisplayConfig = Carousel::getStateDisplayConfig(); + $form->switch('state', '状态') + ->states($stateDisplayConfig) + ->default(Carousel::STATE_NORMAL); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/ClassController.php b/app/Admin/Controllers/ClassController.php new file mode 100644 index 0000000..a600244 --- /dev/null +++ b/app/Admin/Controllers/ClassController.php @@ -0,0 +1,137 @@ +header('商品分类列表'); + $content->description('分类管理'); + + $content->body($this->grid()); +// $content->body(Classes::tree()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('商品分类信息修改'); + $content->description('分类管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('创建商品分类'); + $content->description('分类管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(Classes::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + $grid->class_name('分类名') + ->label('info') + ->sortable(); + + $grid->class_pid('父分类') + ->select(Classes::getAllClasses()); + + $stateDisplayConfig = Classes::getStateDisplayConfig(); + + $grid->class_state('状态') + ->switch($stateDisplayConfig); + + $grid->created_at('创建时间'); + $grid->updated_at('修改时间'); + + $grid->filter(function ($filter) { + $filter->like('class_name', '分类名'); + $filter->in('class_pid', '父分类') + ->multipleSelect(Classes::getAllClasses()); + $filter->equal('class_state', '状态') + ->radio(Classes::getStateDisplayMap()); + }); + $grid->actions(function ($actions) { + $actions->disableDelete(); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + + return Admin::form(Classes::class, function (Form $form) { + $form->display('id', '序号'); + + $form->text('class_name', '分类名') + ->rules('required|max:100') + ->placeholder('请输入分类名'); + + $form->select('class_pid', '父分类') + ->rules('required') + ->options(Classes::getAllClasses()); + + $form->text('class_desc', '描述') + ->placeholder('请输入分类描述'); + + $form->switch('class_state', '状态') + ->states(Classes::getStateDisplayConfig()) + ->default(Classes::STATE_ACTIVE); + + $form->display('created_at', '创建时间'); + $form->display('updated_at', '修改时间'); + + }); + } +} diff --git a/app/Admin/Controllers/ExampleController.php b/app/Admin/Controllers/ExampleController.php new file mode 100644 index 0000000..edfcba7 --- /dev/null +++ b/app/Admin/Controllers/ExampleController.php @@ -0,0 +1,96 @@ +header('header'); + $content->description('description'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(YourModel::class, function (Grid $grid) { + + $grid->id('ID')->sortable(); + + $grid->created_at(); + $grid->updated_at(); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(YourModel::class, function (Form $form) { + + $form->display('id', 'ID'); + + $form->display('created_at', 'Created At'); + $form->display('updated_at', 'Updated At'); + }); + } +} diff --git a/app/Admin/Controllers/FrontEndUserController.php b/app/Admin/Controllers/FrontEndUserController.php new file mode 100644 index 0000000..42682a5 --- /dev/null +++ b/app/Admin/Controllers/FrontEndUserController.php @@ -0,0 +1,113 @@ +header('前端用户列表'); + $content->description('前端用户管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(User::class, function (Grid $grid) { + + $grid->disableCreateButton(); + $grid->disableActions(); + $grid->disableRowSelector(); + + $grid->id('序号')->sortable(); + $grid->name('姓名'); + $grid->mobile('手机号'); + $grid->nickname('昵称'); + $grid->login_time('登录时间'); + $grid->login_ip('登录IP'); + $grid->role('用户类型')->select(User::getRoleDisplayMap()); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { + $filter->like('name', '姓名'); + $filter->equal('mobile', '手机号'); + $filter->equal('role', '用户类型')->radio(User::getRoleDisplayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(User::class, function (Form $form) { + + $form->display('id', '序号'); + $form->select('role', '用户类型')->options(User::getRoleDisplayMap()); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/GoodController.php b/app/Admin/Controllers/GoodController.php new file mode 100644 index 0000000..97a6ab7 --- /dev/null +++ b/app/Admin/Controllers/GoodController.php @@ -0,0 +1,166 @@ +header('商品列表'); + $content->description('商品管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('商品信息修改'); + $content->description('商品管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('创建商品'); + $content->description('商品管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(Good::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + $grid->goods_name('商品名')->label('info')->sortable(); + $grid->goods_main_image('商品主图')->image('', 75, 75); + $grid->class_id('分类') + ->select(Classes::getAllClasses(true)) + ->sortable(); + $grid->goods_price('单价'); + $grid->goods_marketprice('市场价'); + $grid->goods_onsaleprice('折扣价'); + $grid->goods_salenum('销售量'); + $grid->goods_click('点击量'); + $grid->goods_carousel('轮播图片')->image('', 50, 50); + $grid->goods_description_pictures('描述图片')->image('', 50, 50); + +// $grid->goods_storage('库存'); + $grid->goods_state('状态') + ->select(Good::getStateDispayMap()); + $grid->sort('排序'); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { + $filter->like('goods_name', '商品名'); + $filter->in('class_id', '分类') + ->multipleSelect(Classes::getAllClasses(true)); + $filter->lt('goods_price', '单价') + ->currency(); + $filter->lt('goods_marketprice', '市场价') + ->currency(); + $filter->lt('goods_onsaleprice', '折扣价') + ->currency(); + $filter->between('goods_salenum', '销售量'); + $filter->between('goods_click', '点击量'); +// $filter->lt('goods_storage', 'Storage'); + $filter->equal('goods_state', '状态') + ->radio(Good::getStateDispayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(Good::class, function (Form $form) { + + $form->display('id', '序号'); + + $form->text('goods_name', '商品名') + ->rules('required'); + + $form->select('class_id', '分类') + ->rules('required') + ->options(Classes::getAllClasses(true)); + + $form->currency('goods_price', '单价') + ->symbol('¥'); + + $form->currency('goods_marketprice', '市场价') + ->symbol('¥'); + + $form->currency('goods_onsaleprice', '折扣价') + ->symbol('¥'); + + $form->image('goods_main_image', '主图') + ->rules('required') + ->uniqueName() ; + + $form->multipleImage('goods_carousel', '轮播图片') + ->uniqueName(); + + $form->textarea('goods_desc', '描述'); + + $form->multipleImage('goods_description_pictures', '描述图片') + ->uniqueName(); + +// $form->number('goods_storage', '库存'); + $form->radio('goods_state', '状态') + ->options(Good::getStateDispayMap()) + ->default(Good::STATE_NORMAL); + $form->number('sort','排序') + ->default(255); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/HomeController.php b/app/Admin/Controllers/HomeController.php new file mode 100644 index 0000000..98bfdb3 --- /dev/null +++ b/app/Admin/Controllers/HomeController.php @@ -0,0 +1,39 @@ +header('Dashboard'); + $content->description('Description...'); + + $content->row(Dashboard::title()); + + $content->row(function (Row $row) { + + $row->column(4, function (Column $column) { + $column->append(Dashboard::environment()); + }); + + $row->column(4, function (Column $column) { + $column->append(Dashboard::extensions()); + }); + + $row->column(4, function (Column $column) { + $column->append(Dashboard::dependencies()); + }); + }); + }); + } +} diff --git a/app/Admin/Controllers/NewsController.php b/app/Admin/Controllers/NewsController.php new file mode 100644 index 0000000..db7db1c --- /dev/null +++ b/app/Admin/Controllers/NewsController.php @@ -0,0 +1,109 @@ +header('新闻通知列表'); + $content->description('新闻通知列表'); + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('新闻信息修改'); + $content->description('新闻信息修改'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('新增新闻'); + $content->description('新增新闻通知'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(News::class, function (Grid $grid) { + + $grid->id('ID')->sortable(); + $grid->news_title('新闻标题'); + $grid->news_lable('新闻标签'); + $grid->news_author('新闻发布者'); + $grid->news_content('新闻内容'); + $grid->created_at(); + $grid->updated_at(); + + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(News::class, function (Form $form) { + + $form->display('id', 'ID'); + + $form->text('news_title', '新闻标题') + ->rules('required'); + $form->text('news_lable', '新闻标签') + ->rules('required'); + $form->text('news_author', '编辑作者') + ->rules('required'); + $form->text('news_content', '新闻内容') + ->rules('required'); + + $form->display('created_at', 'Created At'); + $form->display('updated_at', 'Updated At'); + }); + } +} diff --git a/app/Admin/Controllers/ProjectFuncDotController.php b/app/Admin/Controllers/ProjectFuncDotController.php new file mode 100644 index 0000000..ce430a2 --- /dev/null +++ b/app/Admin/Controllers/ProjectFuncDotController.php @@ -0,0 +1,147 @@ +header('功能点管理'); + $content->description('功能点管理列表'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('功能点修改'); + $content->description('功能点修改'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('功能点创建'); + $content->description('功能点创建'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ProjectFuncdot::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + + $grid->type_id('所属项目类型id'); + $grid->functype_id('所属功能分类id'); + $grid->column('FunctypeFid.functype_name','所属功能分类'); + $grid->column('getModels.model_name','所属功能模块'); + $grid->funcdot_name('功能点名'); + $grid->funcdot_desc('功能点描述'); + $grid->bottom_time('最低周期(h)'); + $grid->time('周期(h)'); + $grid->discount_price('该功能的折扣价格'); + $grid->price('市场价格'); + $grid->sort('排序'); + $grid->status('状态') + ->switch([ + 'on' => ['value' => 1, 'text' => '启用', 'color' => 'success'], + 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger'], + ]); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { +// $filter->equal('functype_id', '所属功能分类id') +// ->select(Classes::getAllClasses(true)); + $filter->like('model_name', '模块名'); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ProjectFuncdot::class, function (Form $form) { + + $form->display('id', '序号'); + $form->select('type_id', '所属项目类型') + ->rules("required|min:0") + ->options(ProjectControl::getProjectTypes()) + ->default(-1)->load('functype_id', '/api/project_json/func-types', 'id', 'functype_name'); + $form->select('functype_id', '所属功能分类id')->options(function ($id) {}) + ->load('model_id', '/api/project_json/models', 'id', 'model_name'); + $form->select('model_id', '所属功能模块id')->options(function ($id) {}); + + $form->text('funcdot_name', '功能点名') + ->rules('required'); + $form->text('funcdot_desc', '功能点描述') + ->rules('required|max:300') + ->default(''); + + $form->number('bottom_time','最低周期(h)') + ->default(4); + $form->number('time','周期(h)') + ->default(6); + $form->currency('discount_price','该功能的折扣价格'); + $form->currency('price','市场价格'); + + $form->number('sort','排序') + ->default(255); + $form->switch('status', '是否启用') + ->states([ + 'on' => ['value' => 1, 'text' => '启用', 'color' => 'success'], + 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger'], + ])->default(1); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/ProjectFuncTypeController.php b/app/Admin/Controllers/ProjectFuncTypeController.php new file mode 100644 index 0000000..4f845ef --- /dev/null +++ b/app/Admin/Controllers/ProjectFuncTypeController.php @@ -0,0 +1,126 @@ +header('项目功能分类'); + $content->description('项目功能分类管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('项目功能分类'); + $content->description('项目功能分类修改'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('项目功能分类'); + $content->description('项目功能分类创建'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ProjectFunctype::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + $grid->type_id('所属项目类型id')->select(ProjectControl::getProjectTypes()); + $grid->functype_name('功能分类名'); + $grid->functype_desc('功能分类描述'); + $grid->sort('排序'); + $grid->status('状态') + ->switch([ + 'on' => ['value' => 1, 'text' => '启用', 'color' => 'success'], + 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger'], + ]); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { + $filter->equal('type_id', '所属项目类型id') + ->select(ProjectControl::getProjectTypes(0)); + $filter->like('functype_name', '功能分类名'); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ProjectFunctype::class, function (Form $form) { + + $form->display('id', '序号'); + $form->select('type_id', '所属项目类型') + ->rules("required|numeric|min:0") + ->options(ProjectControl::getProjectTypes())->default(-1); + $form->text('functype_name', '功能分类名') + ->rules('required'); + $form->text('functype_desc', '功能分类描述') + ->rules('required|max:300') + ->default(''); + $form->number('sort','排序') + ->default(255); + $form->switch('status', '是否启用') + ->states([ + 'on' => ['value' => 1, 'text' => '启用', 'color' => 'success'], + 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger'], + ])->default(1); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/ProjectModelController.php b/app/Admin/Controllers/ProjectModelController.php new file mode 100644 index 0000000..52b2fb1 --- /dev/null +++ b/app/Admin/Controllers/ProjectModelController.php @@ -0,0 +1,124 @@ +header('功能模块管理'); + $content->description('功能模块管理列表'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('功能模块修改'); + $content->description('功能模块修改'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('功能模块创建'); + $content->description('功能模块创建'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ProjectModel::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + + $grid->type_id('所属项目类型id'); + $grid->functype_id('所属功能分类id'); + $grid->model_name('模块名'); + $grid->model_desc('模块描述'); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { +// $filter->equal('functype_id', '所属功能分类id') +// ->select(Classes::getAllClasses(true)); + $filter->like('model_name', '模块名'); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ProjectModel::class, function (Form $form) { + + $form->display('id', '序号'); + $form->select('type_id', '所属项目类型') + ->rules("required|min:0") + ->options(ProjectControl::getProjectTypes()) + ->default(-1)->load('functype_id', '/api/project_json/func-types', 'id', 'functype_name'); + $form->select('functype_id', '所属功能分类id')->options(function ($id) {}); + $form->text('model_name', '模块名') + ->rules('required'); + $form->text('model_desc', '模块描述') + ->rules('required|max:300') + ->default(''); + $form->number('sort','排序') + ->default(255); + $form->switch('status', '是否启用') + ->states([ + 'on' => ['value' => 1, 'text' => '启用', 'color' => 'success'], + 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger'], + ])->default(1); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/ProjectTypeController.php b/app/Admin/Controllers/ProjectTypeController.php new file mode 100644 index 0000000..7786048 --- /dev/null +++ b/app/Admin/Controllers/ProjectTypeController.php @@ -0,0 +1,127 @@ +header('项目类型'); + $content->description('项目类型管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('项目类型'); + $content->description('项目类型修改'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('项目类型'); + $content->description('新增项目类型'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ProjectType::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + + $grid->type_name('项目类型名'); + $grid->type_desc('项目类型描述')->limit(100); + $grid->type_img('类型的图片')->image('', 50, 50); + $grid->brand_id('品牌id') + ->select(ShopBrand::getAllClasses(true)); + $grid->basal_price('该类项目的基础价格'); + $grid->carousel_imgs('轮播图片')->image('', 50, 50); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + $grid->filter(function ($filter) { + $filter->like('type_name', '项目类型名'); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ProjectType::class, function (Form $form) { + $form->display('id', '序号'); + $form->text('type_name', '项目类型名') + ->rules('required'); + $form->text('type_desc', '项目类型描述') + ->rules('required|max:300') + ->default(''); + $form->image('type_img', '类型的图片') + ->rules('required') + ->uniqueName(); + $form->select('brand_id', '品牌id') + ->rules('required') + ->options(ShopBrand::getAllClasses(true)); + $form->multipleImage('carousel_imgs', '轮播图片') + ->uniqueName(); + + $form->number('salenum','下单量') + ->default(10); + + $form->textarea('description', '详情描述'); + + $form->currency('basal_price','该类项目的基础价格'); + + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/Shop/FeedbackController.php b/app/Admin/Controllers/Shop/FeedbackController.php new file mode 100644 index 0000000..1157c20 --- /dev/null +++ b/app/Admin/Controllers/Shop/FeedbackController.php @@ -0,0 +1,100 @@ +header('用户反馈'); + $content->description('用户反馈管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('用户反馈'); + $content->description('用户反馈状态管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopFeedback::class, function (Grid $grid) { + $grid->model()->orderBy('id', 'desc'); + $grid->disableRowSelector(); + $grid->disableCreateButton(); + $grid->disableActions(); + + $grid->id('序号')->sortable(); + + $grid->user_name('用户昵称'); + $grid->user_contact('反馈用户联系方式'); + $grid->column('msg_type','反馈类型')->display(function($msg_type){ + return ShopFeedback::$Option[$msg_type]; + }); + $grid->msg_title('反馈标题'); + $grid->msg_content('反馈内容'); + $grid->msg_status('反馈状态') + ->select(ShopFeedback::getStatusDispayMap()); + $grid->message_img('反馈附加图片')->image('', 80, 80); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + $grid->filter(function ($filter) { + $filter->equal('user_contact', '反馈人手机'); + $filter->equal('msg_type', '反馈类型')->select(ShopFeedback::$Option); + $filter->equal('msg_status', '反馈状态')->select(ShopFeedback::getStatusDispayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopFeedback::class, function (Form $form) { + $form->display('id', '序号'); + $form->select('msg_status', '反馈状态') + ->rules('required') + ->options(ShopFeedback::getStatusDispayMap()); + }); + } +} diff --git a/app/Admin/Controllers/Shop/ShopAttributeCategoryController.php b/app/Admin/Controllers/Shop/ShopAttributeCategoryController.php new file mode 100644 index 0000000..4cce3cb --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopAttributeCategoryController.php @@ -0,0 +1,104 @@ +header('属性分类列表'); + $content->description('属性分类管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('属性分类修改'); + $content->description('属性分类管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('新增属性分类'); + $content->description('属性分类管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopAttributeCategory::class, function (Grid $grid) { + $grid->id('序号')->sortable(); + $grid->name('属性分类名称'); + $grid->enabled('状态') + ->select(ShopAttributeCategory::getEnabledDispayMap()); + $grid->disableExport();// 禁用导出数据按钮 + $grid->filter(function ($filter) { + $filter->like('name', '属性分类名称'); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopAttributeCategory::class, function (Form $form) { + + $form->display('id', '序号'); + $form->text('name', '属性分类名称') + ->rules('required'); + $form->radio('enabled', '是否推荐') + ->options(ShopAttributeCategory::getEnabledDispayMap()) + ->default(ShopAttributeCategory::STATE_ENABLED); + }); + } + +} diff --git a/app/Admin/Controllers/Shop/ShopAttributeController.php b/app/Admin/Controllers/Shop/ShopAttributeController.php new file mode 100644 index 0000000..82c9395 --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopAttributeController.php @@ -0,0 +1,105 @@ +header('属性条目列表'); + $content->description('属性条目管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('属性条目修改'); + $content->description('属性条目管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('新增属性条目'); + $content->description('属性条目管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopAttribute::class, function (Grid $grid) { + $grid->model()->orderBy('sort_order', 'asc'); + $grid->id('序号')->sortable(); + $grid->name('属性名称'); + $grid->attribute_category_id('属性分类')->select(ShopAttributeCategory::pluck('name','id')); + $grid->disableExport();// 禁用导出数据按钮 + $grid->filter(function ($filter) { + $filter->like('name', '属性名称'); + $filter->equal('attribute_category_id','属性分类')->select(ShopAttributeCategory::pluck('name','id')); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopAttribute::class, function (Form $form) { + + $form->display('id', '序号'); + $form->text('name', '属性名称') + ->rules('required'); + $form->select('attribute_category_id', '属性分类')->options(ShopAttributeCategory::pluck('name','id')); + $form->number('sort_order','排序') + ->default(255); + }); + } + +} diff --git a/app/Admin/Controllers/Shop/ShopCategoryController.php b/app/Admin/Controllers/Shop/ShopCategoryController.php new file mode 100644 index 0000000..e46081b --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopCategoryController.php @@ -0,0 +1,151 @@ +header('商城分类'); + $content->description('分类管理'); + + $content->row(function (Row $row) { + $row->column(6, $this->treeView()->render()); + $row->column(6, function (Column $column) { + $form = new \Encore\Admin\Widgets\Form(); + $form->action(admin_base_path('shop-category')); + $form->select('parent_id','上级分类')->options(ShopCategory::selectOptions())->help('目前只支持一级分类,但留有多级接口。可根据需要联系开发人员进行功能构造'); + $form->text('name','分类名称')->rules('required|min:2')->help('必填'); + $form->text('front_name','分类简述')->rules('required|min:2')->help('必填'); + $form->number('sort_order', '排序')->default(255); + $form->text('keywords','分类关键词')->rules('required')->help('必填'); + $form->textarea('front_desc','分类描述'); + $form->image('icon_url','分类图标')->help('必填 推荐 62*62')->rules('required'); + $form->image('banner_url','推广图片')->help('必填 推荐 600*400'); + $form->image('img_url','展示图片')->help('推荐 400*400')->rules('required'); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + $form->saved(function (Form $form) { + if($form->model()->id!=0){ + $info = ShopCategory::find($form->model()->id); + if($info->parent_id){ + $pinfo = ShopCategory::find($info->parent_id); + $info->level=$pinfo->level + 1; + $info->save(); + } + + } + }); + $column->append((new Box(trans('新增商城分类'), $form))->style('success')); + }); + }); + }); + } + + /** + * @return \Encore\Admin\Tree + */ + protected function treeView() + { + return ShopCategory::tree(function (Tree $tree) { + $tree->disableCreate(); + $tree->disableSave(); + $tree->disableRefresh(); + $tree->branch(function ($branch) { + $src = config('filesystems.disks.oss.url') . '/' . $branch['icon_url'] ; + $logo = ""; + + return "{$branch['id']} - {$branch['name']} $logo"; + }); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()); + }); + } + + + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopCategory::class, function (Form $form) { + $form->select('parent_id','上级分类')->options(ShopCategory::selectOptions())->help('目前只支持一级分类,但留有多级接口。可根据需要联系开发人员进行功能构造'); + $form->text('name','分类名称')->rules('required|min:2'); + $form->text('front_name','分类简述')->rules('required|min:2')->help('必填'); + $form->number('sort_order', '排序')->default(255); + $form->text('keywords','分类关键词')->help('必填')->rules('required'); + $form->textarea('front_desc','分类描述')->help('必填')->rules('required'); + $form->image('icon_url','分类图标')->help('必填 推荐 62*62')->rules('required'); + $form->image('banner_url','推广图片')->help('必填 推荐 600*400')->rules('required'); + $form->image('img_url','展示图片')->help('推荐 400*400'); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + $form->saved(function (Form $form) { + if($form->model()->id!=0){ + $info = ShopCategory::find($form->model()->id); + if($info->parent_id){ + $pinfo = ShopCategory::find($info->parent_id); + $info->level=$pinfo->level + 1; + $info->save(); + } + } + }); + }); + } +} diff --git a/app/Admin/Controllers/Shop/ShopGoodsController.php b/app/Admin/Controllers/Shop/ShopGoodsController.php new file mode 100644 index 0000000..523e7ac --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopGoodsController.php @@ -0,0 +1,256 @@ +header('商城商品列表'); + $content->description('商城商品管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('商城商品列表'); + $content->description('商城商品管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('新增商品'); + $content->description('商品管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopGoods::class, function (Grid $grid) { + $grid->model()->orderBy('sort_order', 'asc'); + $grid->id('序号')->sortable(); + $grid->primary_pic_url('商品主图')->image('', 75, 75); + $grid->goods_name('商品名')->label('info')->limit(50); + $grid->goods_sn('商品编号')->limit(50); + $grid->category_id('商品分类') + ->select(ShopCategory::getAllClasses(true)); + $grid->brand_id('品牌id') + ->select(ShopBrand::getAllClasses(true)); + $grid->goods_number('商品库存量'); + $grid->sort_order('商品排序'); + + $getListImg = $this; + // 这里是多个信息一起显示 + $grid->column('其他信息')->expand(function () use($getListImg) { + $imgUrl = ''; + $row_arr1 = [ + [ + '商品主图:' . sprintf($imgUrl,config('filesystems.disks.oss.url').'/'.$this->primary_pic_url), + ], + [ + '商品列表图:' .$getListImg->getListImg($this->list_pic_url,$imgUrl) , + ], + [ + '商品关键词:' . $this->keywords, + ], + [ + '商品摘要:' . $this->goods_brief, + ], + [ + '专柜价格:¥' . $this->counter_price, + '附加价格:¥' . $this->extra_price, + '零售价格:¥' . $this->retail_price, + '单位价格,单价:¥' . $this->unit_price, + '运费:¥' . $this->freight_price, + ], + ]; + $table = new Table(['其他信息'], $row_arr1); + $tab = new Tab(); + $tab->add('商品基础信息', $table); + + $box = new Box('商品描述',$this->goods_desc); + $tab->add('商品描述', $box); + + return $tab; + }, '其他信息'); + + + +// $grid->goods_price('单价'); +// $grid->goods_marketprice('市场价'); +// $grid->goods_onsaleprice('折扣价'); +// $grid->goods_salenum('销售量'); +// $grid->goods_click('点击量'); +// $grid->goods_carousel('轮播图片')->image('', 50, 50); +// $grid->goods_description_pictures('描述图片')->image('', 50, 50); +// +//// $grid->goods_storage('库存'); +// $grid->goods_state('状态') +// ->select(Good::getStateDispayMap()); +// $grid->sort('排序'); +// $grid->created_at('创建时间'); +// $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { + $filter->like('goods_name', '商品名'); + $filter->in('class_id', '分类') + ->multipleSelect(ShopCategory::getAllClasses(true)); + $filter->equal('is_delete', '状态') + ->radio(ShopGoods::getDeleteDispayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopGoods::class, function (Form $form) { + + $form->display('id', '序号'); + + $form->text('goods_name', '商品名') + ->rules('required'); + + $form->select('category_id', '商品分类') + ->rules('required') + ->options(ShopCategory::selectOptions(true)); + $form->select('brand_id', '品牌id') + ->rules('required') + ->options(ShopBrand::getAllClasses(true)); + + $form->currency('counter_price', '专柜价格') + ->symbol('¥'); + + $form->currency('extra_price', '附加价格') + ->symbol('¥'); + + $form->currency('retail_price', '零售价格') + ->symbol('¥'); + + $form->currency('unit_price', '单位价格,单价') + ->symbol('¥'); + $form->currency('freight_price', '运费,单价') + ->symbol('¥'); + + $form->textarea('keywords', '商品关键词'); + $form->textarea('goods_brief', '商品摘要'); + $form->editor('goods_desc', '商品描述'); + $form->textarea('promotion_desc', '促销描述'); + $form->text('promotion_tag', '促销标签') + ->value(' '); + + $form->image('primary_pic_url', '商品主图') + ->rules('required') + ->uniqueName()->help('建议300*300'); + + $form->multipleImage('list_pic_url', '商品列表图') + ->uniqueName(); + $form->number('goods_number', '库存')->default(10); + $form->number('sell_volume', '销售量'); + $form->radio('is_on_sale', '上架状态') + ->options(ShopGoods::getSaleDispayMap()) + ->default(ShopGoods::STATE_ON_SALE); + $form->radio('is_delete', '删除状态') + ->options(ShopGoods::getDeleteDispayMap()) + ->default(ShopGoods::STATE_NOT_DELETE); + $form->radio('is_limited', '是否限购') + ->options(ShopGoods::getLimitDispayMap()) + ->default(ShopGoods::STATE_SALE_NOT_LIMIT); + $form->radio('is_hot', '是否推荐') + ->options(ShopGoods::getRecommendDispayMap()) + ->default(ShopGoods::STATE_SALE_NOT_RECOMMEND); + $form->radio('is_new', '是否新品') + ->options(ShopGoods::getNewDispayMap()) + ->default(ShopGoods::STATE_SALE_NEW); + $form->radio('is_vip_exclusive', '是否是会员专属') + ->options(ShopGoods::getVipDispayMap()) + ->default(ShopGoods::STATE_NOT_VIP); + $form->currency('vip_exclusive_price', '会员专享价') + ->symbol('¥'); + $form->number('sort_order','排序') + ->default(255); + + $form->hasMany('goods_attribute', '添加属性', function (Form\NestedForm $form) { + $form->select('attribute_id', '选择属性')->options(ShopAttribute::pluck('name','id')); + $form->text('value', '属性值'); + }); + +// $form->addSpecification('attribute_category', 'wewe'); +// $form->divide(); +// $form->hasMany('products', '添加规格', function (Form\NestedForm $form) { +// $form->number('goods_number','库存')->default(255)->rules('required|min:1|max:20'); +// $form->currency('retail_price', '单价') +// ->symbol('¥'); +// }); + + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } + + public function getListImg($list_pic_url,$modelUrl){ + if(empty($list_pic_url) || empty($modelUrl)){ + return ''; + } + $url =''; + foreach($list_pic_url as $v){ + $url .= sprintf($modelUrl,config('filesystems.disks.oss.url').'/'.$v); + } + return $url; + } +} diff --git a/app/Admin/Controllers/Shop/ShopOrderController.php b/app/Admin/Controllers/Shop/ShopOrderController.php new file mode 100644 index 0000000..daae03c --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopOrderController.php @@ -0,0 +1,162 @@ +header('订单列表'); + $content->description('订单管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + $content = Admin::content(function (Content $content) use ($id) { + + $content->header('订单信息修改'); + $content->description('订单管理'); + + $content->body($this->form($id)->edit($id)); + }); + return $content; + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('header'); + $content->description('description'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopOrder::class, function (Grid $grid) { + $grid->model()->orderBy('id', 'desc'); + $grid->disableRowSelector(); + $grid->disableCreateButton(); + $grid->actions(function ($actions){ + $actions->disableDelete(); + }); + $grid->id('序号')->sortable(); + $grid->order_sn('订单编号'); + $grid->order_price('订单金额'); + $grid->coupon_price('优惠金额'); + $grid->actual_price('支付金额'); + $grid->consignee('收件人')->limit(10); + $grid->mobile('收件人手机')->editable(); + $grid->order_status('订单状态')->display(function ($status) { + switch($status){ + case ShopOrder::STATUS_WAIT_PAY: + $label = 'label-danger'; + break; + case ShopOrder::STATUS_ALREADY_PAID: + $label = 'label-success'; + break; + default: + $label = 'label-info'; + } + $status = ShopOrder::getStatusDisplayMap()[$status]; + return "{$status}"; + }); + + // 这里是多个信息一起显示 + $grid->column('购物信息')->expand(function (){ + $imgUrl = ''; + $goodsInfo = []; + foreach($this->orderGoods as $goods){ + $goodsInfo[] = [sprintf($imgUrl,config('filesystems.disks.oss.url').'/'.$goods->list_pic_url).' '.$goods->goods_name.' '.$goods->retail_price.' * '.$goods->number]; + } + $row_arr1 = [ + [ + '收货人:' . $this->consignee, + '收件人手机:' . $this->mobile, + '收货地址:' . AddressLogic::getRegionNameById($this->province).' '.AddressLogic::getRegionNameById($this->city).' '.AddressLogic::getRegionNameById($this->district).' '.$this->address, + ], + ]; + $row_arr1 = array_merge($goodsInfo,$row_arr1); + $table = new Table(['购物信息'], $row_arr1); + return $table; + }, '购物信息'); + + $grid->pay_time('付款时间'); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + $grid->filter(function ($filter) { + $filter->like('order_sn', '订单编号'); + $filter->equal('mobile', '收件人手机'); + $filter->equal('order_status', '订单状态')->select(ShopOrder::getStatusDisplayMap()); + $filter->between('pay_time', '付款时间')->datetime(); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form($id='') + { + + return Admin::form(ShopOrder::class, function (Form $form){ + $form->display('id', '序号'); + $form->display('order_sn', '订单编号'); + $form->display('order_status', '订单状态')->with(function ($value) { + return ShopOrder::getStatusDisplayMap()[$value]; + }); + $form->display('goods_price', '商品总价'); + $form->display('order_price', '订单金额'); + $form->display('coupon_price', '优惠金额'); + $form->display('actual_price', '支付金额'); + $form->display('consignee', '收件人'); + $form->display('mobile', '收件人手机号'); + $form->display('uid', '下单用户ID'); + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + + }); + } +} diff --git a/app/Admin/Controllers/Shop/ShopSpecificationController.php b/app/Admin/Controllers/Shop/ShopSpecificationController.php new file mode 100644 index 0000000..24569f1 --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopSpecificationController.php @@ -0,0 +1,103 @@ +header('商品规格列表'); + $content->description('商品规格管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('商品规格修改'); + $content->description('商品规格管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('新增商品规格'); + $content->description('商品规格管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopSpecification::class, function (Grid $grid) { + $grid->model()->orderBy('sort_order', 'asc'); + $grid->id('序号')->sortable(); + $grid->name('规格'); + + $grid->disableExport();// 禁用导出数据按钮 + $grid->filter(function ($filter) { + $filter->like('name', '规格'); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopSpecification::class, function (Form $form) { + + $form->display('id', '序号'); + $form->text('name', '规格名称') + ->rules('required'); + $form->number('sort_order','排序') + ->default(255); + }); + } + +} diff --git a/app/Admin/Controllers/Shop/ShopTopicController.php b/app/Admin/Controllers/Shop/ShopTopicController.php new file mode 100644 index 0000000..d1f13cb --- /dev/null +++ b/app/Admin/Controllers/Shop/ShopTopicController.php @@ -0,0 +1,152 @@ +header('主题&专题列表'); + $content->description('主题&专题管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('主题&专题列表'); + $content->description('主题&专题管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('新增主题&专题'); + $content->description('主题&专题管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(ShopTopic::class, function (Grid $grid) { + $grid->model()->orderBy('sort_order', 'asc'); + $grid->id('序号')->sortable(); + $grid->title('主题标题'); + $grid->subtitle('短标题'); + $grid->avatar('主题图片')->image('', 75, 75); + $grid->item_pic_url('元素图片')->image('', 75, 75); + + $grid->price_info('价格信息')->label('info'); + $grid->read_count('阅读量'); + $grid->scene_pic_url('展示图片')->image('', 75, 75); + $grid->sort_order('主题排序'); + + // 这里是多个信息一起显示 + $grid->column('主题表述')->expand(function () { + $tab = new Tab(); + $box = new Box('主题表述',$this->content); + $tab->add('主题表述', $box); + return $tab; + }, '主题表述'); + + $grid->is_show('状态') + ->select(ShopTopic::getStateDispayMap()); + + $grid->filter(function ($filter) { + $filter->like('title', '主题标题'); + $filter->equal('is_show', '状态') + ->radio(ShopTopic::getStateDispayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(ShopTopic::class, function (Form $form) { + + $form->display('id', '序号'); + + $form->text('title', '主题标题') + ->rules('required'); + + $form->text('subtitle', '短标题') + ->rules('required'); + + $form->image('avatar', '主题图片') + ->rules('required') + ->uniqueName() ; + $form->image('scene_pic_url', '展示图片') + ->rules('required') + ->uniqueName() ; + + $form->multipleImage('item_pic_url', '元素图片') + ->uniqueName(); + + $form->currency('price_info', '价格信息') + ->symbol('¥'); + + $form->editor('content', '主题表述'); + + $form->number('read_count', '阅读量'); + + $form->number('sort_order','排序') + ->default(255); + + $form->radio('is_show', '是否展示') + ->options(ShopTopic::getStateDispayMap()) + ->default(ShopTopic::STATE_SHOW); + }); + } + +} diff --git a/app/Admin/Controllers/SpecialController.php b/app/Admin/Controllers/SpecialController.php new file mode 100644 index 0000000..4d28b8a --- /dev/null +++ b/app/Admin/Controllers/SpecialController.php @@ -0,0 +1,140 @@ +header('专题列表'); + $content->description('专题管理'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('专题修改'); + $content->description('专题管理'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('专题创建'); + $content->description('专题管理'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(Special::class, function (Grid $grid) { + + $grid->id('序号')->sortable(); + $grid->icon('图标') + ->image('', 50, 50); + $grid->class_id('分类') + ->select(Classes::getAllClasses(true)); + $grid->link_url('链接'); + $grid->special_title('标题'); + $grid->special_desc('描述'); + $grid->remark('备注'); + $grid->sort('排序'); + $grid->if_show('是否显示') + ->switch(Special::getIfShowDisplayConfig()); + $grid->created_at('创建时间'); + $grid->updated_at('更新时间'); + + $grid->filter(function ($filter) { + $filter->equal('class_id', '分类') + ->select(Classes::getAllClasses(true)); + $filter->like('special_title', '标题'); + $filter->equal('if_show', '是否显示') + ->radio(Special::getIfShowDisplayMap()); + }); + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(Special::class, function (Form $form) { + + $form->display('id', '序号'); + + $form->image('icon', '图标') + ->rules('required'); + $form->select('class_id', '分类') + ->rules("required") + ->options(Classes::getAllClasses(true)) + ->default(0); + $form->text('link_url', '链接') + ->rules('required') + ->rules('nullable|max:60'); + $form->text('special_title', '标题') + ->rules('required'); + $form->text('special_desc', '描述') + ->rules('required|max:300') + ->default(''); + $form->text('remark', '备注') + ->rules('required|max:300') + ->default(''); + $form->number('sort','排序') + ->default(255); + $form->switch('if_show', '是否显示') + ->states(Special::getIfShowDisplayConfig()) + ->default(Special::IFSHOW_YES); + + $form->display('created_at', '创建时间'); + $form->display('updated_at', '更新时间'); + }); + } +} diff --git a/app/Admin/Controllers/UploadController.php b/app/Admin/Controllers/UploadController.php new file mode 100644 index 0000000..3142f7d --- /dev/null +++ b/app/Admin/Controllers/UploadController.php @@ -0,0 +1,104 @@ +file("mypic"); + if (!empty($file)) { + $len = count($file); + if ($len > static::MAX_UPLOAD_NUM) { + return response()->json(['ResultData' => 6, 'info' => '最多可以上传25张图片']); + } + $m = 0; + $k = 0; + for ($i = 0; $i < $len; $i++) { + // $n 表示第几张图片 + $n = $i + 1; + if ($file[$i]->isValid()) { + if (in_array(strtolower($file[$i]->extension()), ['jpeg', 'jpg', 'gif', 'gpeg', 'png'])) { + $picname = $file[$i]->getClientOriginalName();//获取上传原文件名 + $ext = $file[$i]->getClientOriginalExtension();//获取上传文件的后缀名 + // 重命名 + $filename = time() . str_random(6) . "." . $ext; + $re = Storage::putFile(static::UPLOAD_PATH,$file[$i]); + if ($re) { + $newFileName = config('filesystems.disks.oss.url').'/'.$re; + $m = $m + 1; + // return response()->json(['ResultData' => 0, 'info' => '上传成功', 'newFileName' => $newFileName ]); + } else { + $k = $k + 1; + // return response()->json(['ResultData' => 4, 'info' => '上传失败']); + } + $msg = $m . "张图片上传成功 " . $k . "张图片上传失败
"; + $return[] = ['ResultData' => 0, 'info' => $msg, 'newFileName' => $newFileName]; + } else { + return response()->json(['ResultData' => 3, 'info' => '第' . $n . '张图片后缀名不合法!
' . '只支持jpeg/jpg/png/gif格式']); + } + } else { + return response()->json(['ResultData' => 1, 'info' => '第' . $n . '张图片超过最大限制!
' . '图片最大支持2M']); + } + } + + } else { + return response()->json(['ResultData' => 5, 'info' => '请选择文件']); + } + return $return; + } + + // 上传到服务器 待优化 + function uploadImgToServer(Request $request){ + $file = $request->file("mypic"); + if (!empty($file)) { + $len = count($file); + foreach ($file as $key => $value) { + $len = $key; + } + if ($len > static::MAX_UPLOAD_NUM) { + return response()->json(['ResultData' => 6, 'info' => '最多可以上传25张图片']); + } + $m = 0; + $k = 0; + for ($i = 0; $i <= $len; $i++) { + // $n 表示第几张图片 + $n = $i + 1; + if ($file[$i]->isValid()) { + if (in_array(strtolower($file[$i]->extension()), ['jpeg', 'jpg', 'gif', 'gpeg', 'png'])) { + $picname = $file[$i]->getClientOriginalName();//获取上传原文件名 + $ext = $file[$i]->getClientOriginalExtension();//获取上传文件的后缀名 + // 重命名 + $filename = time() . str_random(6) . "." . $ext; + Storage::putFile($filename,$file); + if ($file[$i]->move("uploads/images", $filename)) { + $newFileName = '/' . "uploads/images" . '/' . $filename; + $m = $m + 1; + // return response()->json(['ResultData' => 0, 'info' => '上传成功', 'newFileName' => $newFileName ]); + } else { + $k = $k + 1; + // return response()->json(['ResultData' => 4, 'info' => '上传失败']); + } + $msg = $m . "张图片上传成功 " . $k . "张图片上传失败
"; + $return[] = ['ResultData' => 0, 'info' => $msg, 'newFileName' => $newFileName]; + } else { + return response()->json(['ResultData' => 3, 'info' => '第' . $n . '张图片后缀名不合法!
' . '只支持jpeg/jpg/png/gif格式']); + } + } else { + return response()->json(['ResultData' => 1, 'info' => '第' . $n . '张图片超过最大限制!
' . '图片最大支持2M']); + } + } + + } else { + return response()->json(['ResultData' => 5, 'info' => '请选择文件']); + } + return $return; + } +} diff --git a/app/Admin/Controllers/UsersController.php b/app/Admin/Controllers/UsersController.php new file mode 100644 index 0000000..843ba58 --- /dev/null +++ b/app/Admin/Controllers/UsersController.php @@ -0,0 +1,132 @@ +header('用户管理'); + $content->description('用户列表'); + + $content->body($this->grid()); + }); + } + + /** + * Edit interface. + * + * @param $id + * @return Content + */ + public function edit($id) + { + return Admin::content(function (Content $content) use ($id) { + + $content->header('用户的编辑'); + $content->description('用户的编辑'); + + $content->body($this->form()->edit($id)); + }); + } + + /** + * Create interface. + * + * @return Content + */ + public function create() + { + return Admin::content(function (Content $content) { + + $content->header('用户添加'); + $content->description('用户添加'); + + $content->body($this->form()); + }); + } + + /** + * Make a grid builder. + * + * @return Grid + */ + protected function grid() + { + return Admin::grid(User::class, function (Grid $grid) { + $grid->id('ID')->sortable(); + $grid->avatar('用户头像')->image('',50, 50); + $grid->column('name','用户名')->editable(); + $grid->column('mobile','用户手机号')->label('primary'); + $grid->column('nickname','用户微信昵称'); + // 设置text、color、和存储值 + $states = [ + 'on' => ['value' => 2, 'text' => '配送员', 'color' => 'primary'], + 'off' => ['value' => 1, 'text' => '普通会员', 'color' => 'default'], + ]; + + $grid->role('用户状态')->switch($states); + $grid->column('login_ip','最近登陆ip'); + $grid->column('login_time','最近登陆时间'); + + + // 搜索功能 + $grid->filter(function($filter){ + // 如果过滤器太多,可以使用弹出模态框来显示过滤器. + // $filter->useModal(); + + // 禁用id查询框 + $filter->disableIdFilter(); + + // sql: ... WHERE `user.name` LIKE "%$name%"; + $filter->like('name', '用户名'); + + // sql: ... WHERE `user.email` = $email; + $filter->is('mobile', '用户手机号'); + + + }); + $grid->disableExport();// 禁用导出 + $grid->disableCreation();// 禁用新增 + $grid->disableBatchDeletion();// 禁用批量删除 + }); + } + + /** + * Make a form builder. + * + * @return Form + */ + protected function form() + { + return Admin::form(User::class, function (Form $form) { + $form->text('name', '用户名'); + $form->mobile('mobile','用户手机号'); + $states = [ + 'on' => ['value' => 2, 'text' => '配送员', 'color' => 'success'], + 'off' => ['value' => 1, 'text' => '普通会员', 'color' => 'default'], + ]; + //$form->password('password', '用户密码')->help('修改用户密码'); + $form->switch('role', '用户状态')->states($states); + }); + } + +} diff --git a/app/Admin/Extensions/Column/ExpandRow.php b/app/Admin/Extensions/Column/ExpandRow.php new file mode 100644 index 0000000..f9125d1 --- /dev/null +++ b/app/Admin/Extensions/Column/ExpandRow.php @@ -0,0 +1,47 @@ +bindTo($this->row); + + $html = call_user_func($callback); + + $script = <<"+html+""); + + $(this).data('inserted', 1); + } + + $("i", this).toggleClass("fa-caret-right fa-caret-down"); +}); +EOT; + Admin::script($script); + + $btn = $btn ?: $this->column->getName(); + + $key = $this->getKey(); + + return << + $btn + + +EOT; + } +} \ No newline at end of file diff --git a/app/Admin/Extensions/Column/OpenMap.php b/app/Admin/Extensions/Column/OpenMap.php new file mode 100644 index 0000000..993f8db --- /dev/null +++ b/app/Admin/Extensions/Column/OpenMap.php @@ -0,0 +1,73 @@ +bindTo($this->row); + + list($latitude, $longitude) = call_user_func($callback); + + $key = $this->getKey(); + + $name = $this->column->getName(); + + Admin::script($this->script()); + + return << + $btn + + + +EOT; + } + + protected function script() + { + return <<formatName($this->column); + + $this->script = <<id}'); +editor.customConfig.zIndex = 0 +editor.customConfig.uploadImgShowBase64 = true +editor.customConfig.onchange = function (html) { + $('input[name=$name]').val(html); +} +editor.create() + +EOT; + return parent::render(); + } +} diff --git a/app/Admin/Extensions/Form/CKEditor.php b/app/Admin/Extensions/Form/CKEditor.php new file mode 100644 index 0000000..1d79c42 --- /dev/null +++ b/app/Admin/Extensions/Form/CKEditor.php @@ -0,0 +1,22 @@ +script = "$('textarea.{$this->getElementClass()}').ckeditor();"; + + return parent::render(); + } +} \ No newline at end of file diff --git a/app/Admin/Extensions/Form/MarkdownEditor.php b/app/Admin/Extensions/Form/MarkdownEditor.php new file mode 100644 index 0000000..039adb7 --- /dev/null +++ b/app/Admin/Extensions/Form/MarkdownEditor.php @@ -0,0 +1,36 @@ +script = <<id').markdownEditor({ + preview: true, + onPreview: function (content, callback) { + callback( marked(content) ); + } +}); + +EOT; + + return parent::render(); + } +} diff --git a/app/Admin/Extensions/Form/MyMap.php b/app/Admin/Extensions/Form/MyMap.php new file mode 100644 index 0000000..e739fd9 --- /dev/null +++ b/app/Admin/Extensions/Form/MyMap.php @@ -0,0 +1,159 @@ +column['lat'] = $column; + $this->column['lng'] = $arguments[0]; + + $this->addressInput = $arguments[2] ?? 'myAddress'; + + array_shift($arguments); + + $this->label = $this->formatLabel($arguments); + $this->id = $this->formatId($this->column); + + /* + * Google map is blocked in mainland China + * people in China can use Tencent map instead(; + */ + if (config('app.locale') == 'zh-CN') { + $this->useTencentMap(); + } else { + $this->useGoogleMap(); + } + } + + public function useGoogleMap() + { + $this->script = <<id['lat']}'); + var lng = $('#{$this->id['lng']}'); + + var LatLng = new google.maps.LatLng(lat.val(), lng.val()); + + var options = { + zoom: 13, + center: LatLng, + panControl: false, + zoomControl: true, + scaleControl: true, + mapTypeId: google.maps.MapTypeId.ROADMAP + } + + var container = document.getElementById("map_"+name); + var map = new google.maps.Map(container, options); + + var marker = new google.maps.Marker({ + position: LatLng, + map: map, + title: 'Drag Me!', + draggable: true + }); + + google.maps.event.addListener(marker, 'dragend', function (event) { + lat.val(event.latLng.lat()); + lng.val(event.latLng.lng()); + }); + } + + initGoogleMap('{$this->id['lat']}{$this->id['lng']}'); +EOT; + } + + public function useTencentMap() + { + $this->script = <<id['lat']}'); + var lng = $('#{$this->id['lng']}'); + + var inputAddress = $('#{$this->addressInput}'); + + + var center = new qq.maps.LatLng(lat.val(), lng.val()); + + var container = document.getElementById("map_"+name); + var map = new qq.maps.Map(container, { + center: center, + zoom: 13 + }); + + var marker = new qq.maps.Marker({ + position: center, + draggable: true, + map: map + }); + + if( ! lat.val() || ! lng.val()) { + var citylocation = new qq.maps.CityService({ + complete : function(result){ + map.setCenter(result.detail.latLng); + marker.setPosition(result.detail.latLng); + } + }); + + citylocation.searchLocalCity(); + } + + qq.maps.event.addListener(map, 'click', function(event) { + marker.setPosition(event.latLng); + }); + + qq.maps.event.addListener(marker, 'position_changed', function(event) { + var position = marker.getPosition(); + lat.val(position.getLat()); + lng.val(position.getLng()); + }); + + var callbacks={ + complete:function(results){ + map.setCenter(results.detail.location); + marker.setPosition(results.detail.location); + }, + } + var geocoder = new qq.maps.Geocoder(callbacks); + + + inputAddress.change(function () { + geocoder.getLocation($(this).val()); + }); + } + + initTencentMap('{$this->id['lat']}{$this->id['lng']}'); +EOT; + } +} diff --git a/app/Admin/Extensions/Form/PHPEditor.php b/app/Admin/Extensions/Form/PHPEditor.php new file mode 100644 index 0000000..fac444d --- /dev/null +++ b/app/Admin/Extensions/Form/PHPEditor.php @@ -0,0 +1,44 @@ +script = <<id}"), { + lineNumbers: true, + mode: "text/x-php", + extraKeys: { + "Tab": function(cm){ + cm.replaceSelection(" " , "end"); + } + } +}); + +EOT; + return parent::render(); + + } +} diff --git a/app/Admin/Extensions/Form/WangEditor.php b/app/Admin/Extensions/Form/WangEditor.php new file mode 100644 index 0000000..939da88 --- /dev/null +++ b/app/Admin/Extensions/Form/WangEditor.php @@ -0,0 +1,75 @@ +formatName($this->column); + $uploadUrl = route('admin-up'); + $this->script = <<id}'); +editor.customConfig.uploadFileName = 'mypic[]'; +editor.customConfig.uploadImgHeaders = { + 'X-CSRF-TOKEN': $('input[name="_token"]').val() +} +editor.customConfig.zIndex = 0; +// 上传路径 +editor.customConfig.uploadImgServer = '{$uploadUrl}'; +editor.customConfig.onchange = function (html) { + $('input[name=$name]').val(html); +} +editor.customConfig.uploadImgHooks = { + customInsert: function (insertImg, result, editor) { + if (typeof(result.length) != "undefined") { + for (var i = 0; i <= result.length - 1; i++) { + var j = i; + var url = result[i].newFileName; + insertImg(url); + } + toastr.success(result[j]['info']); + } + + switch (result['ResultData']) { + case 6: + toastr.error("最多可以上传4张图片"); + break; + case 5: + toastr.error("请选择一个文件"); + break; + case 4: + toastr.error("上传失败"); + break; + case 3: + toastr.error(result['info']); + break; + case 2: + toastr.error("文件类型不合法"); + break; + case 1: + toastr.error(result['info']); + break; + } + } +} +editor.create() + +EOT; + return parent::render(); + } +} diff --git a/app/Admin/Extensions/WangEditor.php b/app/Admin/Extensions/WangEditor.php new file mode 100644 index 0000000..252c5d9 --- /dev/null +++ b/app/Admin/Extensions/WangEditor.php @@ -0,0 +1,30 @@ +script = <<id}'); + editor.create(); + +EOT; + return parent::render(); + + } +} \ No newline at end of file diff --git a/app/Admin/bootstrap.php b/app/Admin/bootstrap.php new file mode 100644 index 0000000..773c1df --- /dev/null +++ b/app/Admin/bootstrap.php @@ -0,0 +1,29 @@ + + * + * Bootstraper for Admin. + * + * Here you can remove builtin form field: + * Encore\Admin\Form::forget(['map', 'editor']); + * + * Or extend custom form field: + * Encore\Admin\Form::extend('php', PHPEditor::class); + * + * Or require js and css assets: + * Admin::css('/packages/prettydocs/css/styles.css'); + * Admin::js('/packages/prettydocs/js/main.js'); + * + */ +// sqc添加 +use App\Admin\Extensions\Column\ExpandRow; +use Encore\Admin\Grid\Column; +use Encore\Admin\Form; +use App\Admin\Extensions\Form\WangEditor; +use App\Admin\Extensions\Form\AddSpecification; +Column::extend('expand', ExpandRow::class); +Form::forget(['map', 'editor']); +Form::extend('editor', WangEditor::class); +Form::extend('addSpecification', AddSpecification::class); diff --git a/app/Admin/routes.php b/app/Admin/routes.php new file mode 100644 index 0000000..c45e808 --- /dev/null +++ b/app/Admin/routes.php @@ -0,0 +1,73 @@ + config('admin.route.prefix'), + 'namespace' => config('admin.route.namespace'), + 'middleware' => config('admin.route.middleware'), +], function (Router $router) { + + $router->get('/', 'HomeController@index'); + + //轮播图管理 + $router->resource('carousel', CarouselController::class); + //专题管理 + $router->resource('special', SpecialController::class); + //商品管理 + $router->resource('goods', GoodController::class); + //商品分类管理 + $router->resource('classes', ClassController::class); + + // 前台用户管理 + $router->resource('User', UsersController::class); + + //新闻管理 + $router->resource('News', NewsController::class); + + //前端用户管理 +// $router->resource('front-users', FrontEndUserController::class); + + // 项目类型管理 + $router->resource('project-type', ProjectTypeController::class); + + // 项目功能分类管理 + $router->resource('project-func-type', ProjectFuncTypeController::class); + + // 功能模块管理 + $router->resource('project-model', ProjectModelController::class); + + // 功能点管理 + $router->resource('project-dot', ProjectFuncDotController::class); + + // 品牌管理 + $router->resource('shop-brand', BrandController::class); + + + Route::post('uploadFile', 'UploadController@uploadImg')->name('admin-up'); + + /********* shop相关********/ + Route::group(['namespace' => 'Shop'], function (Router $router) { + // 商品分类管理 + $router->resource('shop-category', ShopCategoryController::class); + // 规格管理 + $router->resource('shop-specification', ShopSpecificationController::class); + + // 属性分类管理 + $router->resource('shop-attribute-category', ShopAttributeCategoryController::class); + // 属性管理 + $router->resource('shop-attribute', ShopAttributeController::class); + + // 商品管理 + $router->resource('shop-goods', ShopGoodsController::class); + // 主题&专题管理 + $router->resource('shop-topics', ShopTopicController::class); + // 商城订单管理 + $router->resource('shop-order', ShopOrderController::class); + // 用户反馈 + $router->resource('shop-feedback', FeedbackController::class); + }); + +}); diff --git a/app/Common/functions.php b/app/Common/functions.php new file mode 100644 index 0000000..116cf6a --- /dev/null +++ b/app/Common/functions.php @@ -0,0 +1,197 @@ +path(); + * @param string $remark 其他备注 + */ +function add_my_log($type, $info, $error_level = 1, $msg = '', $node = 'node',$goal_id = 0, $remark = '') +{ + $new_log = new App\Models\ErrorsLog; + $new_log->type = $type; + $new_log->error_level = $error_level; + $new_log->info = $info; + $new_log->msg = $msg; + $new_log->node = $node; + $new_log->ip = getClientIP(); + $new_log->result = 1; + $new_log->remark = $remark; + $new_log->goal_id = $goal_id; + $new_log->save(); +} + +/** + * 微信消息的通知 + * @param [type] $order_info [订单信息] + * @param [type] $status [操作代码] + */ +function addWxMsg_toUser($orders_info, $status = '26') +{ + if (empty($orders_info)) return false; + $app = EasyWeChat\Factory::officialAccount(config('wechat.official_account.default')); + $User = new App\User; + $user_info = $User->find($orders_info['uid']); + $url = env('APP_URL') . '/my-order?status=3'; + if (!$user_info->openid) { + return false; + } + $data = array( + "keyword1" => array($orders_info['order_sn'], "#888888"),// 订单号 + "keyword2" => array($orders_info['pay_price'], "#336699"),// 订单金额 + "keyword3" =>array($orders_info['plate_number'], "#888888"),// 车辆信息 + "keyword4" => array(date('Y-m-d',strtotime($orders_info['apply_time'])), "#888888"), + "remark" => array($orders_info['check_info']." 请您尽快核查~", "#5599FF"), + ); +// 检测通过 + if($status == App\Models\CheckStation\ApplyOrder::STATUS_PASS){ + $data["first"] = array("您的车辆已检测通过", '#43CD80'); + }else if($status == App\Models\CheckStation\ApplyOrder::STATUS_NO_PASS){ + $data["first"] = array("您的车辆未检测通过", '#EE2C2C'); + } + $app->template_message->send([ + 'touser' => $user_info->openid, + 'template_id' => 'FQ7dAfjzepCgFtPhfLjOmONX0SkjVSuL_2zYNtLNuu8', + 'url' => $url, + 'data' =>$data + ]); +} + +//if (empty($orders_info)) return false; +//$app = EasyWeChat\Factory::officialAccount(config('wechat.official_account.default')); +//$User = new App\User; +//$user_info = $User->find($orders_info['uid']); +//$url = env('APP_URL') . '/my-order?status=3'; +//if (!$user_info->openid) { +// return false; +//} +//$data = array( +// "keyword1" => array($orders_info['true_name'], "#336699"),// 客户 +// "keyword2" => array($orders_info['pay_price'], "#336699"),// 订单金额 +// "keyword3" => array($orders_info['order_sn'], "#888888"),// 订单号 +// "keyword4" => array(date('Y-m-d H:i:s'), "#888888"), +// "remark" => array($orders_info['check_info']." 请您尽快核查~", "#5599FF"), +//); +//// 检测通过 +//if($status == App\Models\CheckStation\ApplyOrder::STATUS_PASS){ +// $data["first"] = array("您的车辆已检测通过", '#43CD80'); +//}else if($status == App\Models\CheckStation\ApplyOrder::STATUS_NO_PASS){ +// $data["first"] = array("您的车辆未检测通过", '#EE2C2C'); +//} +//$app->template_message->send([ +// 'touser' => $user_info->openid, +// 'template_id' => '30kgXpgxkuH-FK7f4iN3ya-l9vO4IS7wPbI5TghWr7M', +// 'url' => $url, +// 'data' =>$data +//]); + +?> \ No newline at end of file diff --git a/app/Console/Commands/AutoCompleteOrder.php b/app/Console/Commands/AutoCompleteOrder.php new file mode 100644 index 0000000..437eda6 --- /dev/null +++ b/app/Console/Commands/AutoCompleteOrder.php @@ -0,0 +1,64 @@ +subDays(5); + $outSchoolTime = Carbon::now()->subDays(10); + DB::table('order') + ->where([ + ['status', '=', Order::STATUS_DELIVERING], + ['sid', '<>', 0 ], + ]) + ->whereDate('updated_at', '<=', $inSchoolTime) + ->update(['status' => Order::STATUS_COMPLETED]); + + DB::table('order') + ->where([ + ['status', '=', Order::STATUS_DELIVERING], + ['sid', '=', 0 ], + ]) + ->whereDate('updated_at', '<=', $outSchoolTime) + ->update(['status' => Order::STATUS_COMPLETED]); + } +} diff --git a/app/Console/Commands/MiniInstall.php b/app/Console/Commands/MiniInstall.php new file mode 100644 index 0000000..1bd9db5 --- /dev/null +++ b/app/Console/Commands/MiniInstall.php @@ -0,0 +1,45 @@ +call('admin:install'); + $this->call('migrate'); + $this->call('db:seed'); + $this->call('passport:install'); + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 0000000..a8c5158 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,42 @@ +command('inspire') + // ->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 0000000..7e2563a --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,53 @@ +statusCode; + } + + /** + * @param $statusCode + * @return $this + */ + public function setStatusCode($statusCode) + { + + $this->statusCode = $statusCode; + return $this; + } + + /** + * @param $data + * @param array $header + * @return mixed + */ + public function respond($data, $header = []) + { + + return Response::json($data, $this->getStatusCode(), $header); + } + + /** + * @param $status + * @param array $data + * @param null $code + * @return mixed + */ + public function status($status, array $data, $code = null) + { + + if ($code) { + $this->setStatusCode($code); + } + + $status = [ + 'status' => $status, + 'code' => $this->statusCode + ]; + + $data = array_merge($status, $data); + return $this->respond($data); + + } + + /** + * @param $message + * @param int $code + * @param string $status + * @return mixed + */ + public function failed($message, $code = FoundationResponse::HTTP_BAD_REQUEST, $status = 'error') + { + + return $this->setStatusCode($code)->message($message, $status); + } + + /** + * @param $message + * @param string $status + * @return mixed + */ + public function message($message, $status = "success") + { + + return $this->status($status, [ + 'message' => $message + ]); + } + + /** + * @param string $message + * @return mixed + */ + public function internalError($message = "Internal Error!") + { + + return $this->failed($message, FoundationResponse::HTTP_INTERNAL_SERVER_ERROR); + } + + /** + * @param string $message + * @return mixed + */ + public function created($message = "created") + { + return $this->setStatusCode(FoundationResponse::HTTP_CREATED) + ->message($message); + + } + + /** + * @param $data + * @param string $status + * @return mixed + */ + public function success($data, $status = "success") + { + + return $this->status($status, compact('data')); + } + + + /** + * @param string $message + * @return mixed + */ + public function notFond($message = 'Not Fond!') + { + return $this->failed($message, Foundationresponse::HTTP_NOT_FOUND); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/AddressesController.php b/app/Http/Controllers/Api/AddressesController.php new file mode 100644 index 0000000..b32d474 --- /dev/null +++ b/app/Http/Controllers/Api/AddressesController.php @@ -0,0 +1,218 @@ +all(), + [ + 'provinceId' => 'required|max:10', + 'cityId' => 'required|max:10', + 'linkMan' => 'required|max:10', + 'address' => 'required', + 'mobile' => 'required', + ], + [ + 'provinceId.required' => '省市参数缺失', + 'cityId.required' => '城市参数缺失', + 'linkMan.required' => '收件人参数缺失', + 'address.required' => '详细地址参数缺失', + 'mobile.required' => '收货人手机号参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + // 这里后面加上valicate验证 + if ($request->input('id')) { + // 编辑 + $Addresses = Address::find($request->input('id')); + } else { + $Addresses = new Address; + } + $Addresses->uid = \Auth::user()->id; + $Addresses->aid_p = $request->input('provinceId'); + $Addresses->aid_c = $request->input('cityId'); + $Addresses->aid_a = $request->input('districtId') ? $request->input('districtId') : 0; + $Addresses->province = Addrjson::find(intval($request->input('provinceId')))->area_name; + $Addresses->city = Addrjson::find(intval($request->input('cityId')))->area_name; + if (intval($request->input('districtId'))) { + $Addresses->area = Addrjson::find(intval($request->input('districtId')))->area_name; + } + $Addresses->postcode = $request->input('code', ''); + $Addresses->addr = $request->input('address', ''); + $Addresses->true_name = $request->input('linkMan'); + $Addresses->mobile = $request->input('mobile'); + $Addresses->status = 1; + $Addresses->is_default = $request->input('isDefault') ? 1 : 0; + $Addresses->save(); + if ($Addresses->id) { + DB::table('addresses') + ->where([ + ['uid' , \Auth::user()->id], + ['id', '!=', $Addresses->id], + ]) + ->update(['is_default' => 0]); + return $this->message('操作成功'); + }; + return $this->failed('操作失败', 401); + } + + //校内地址添加和修改 + public function insideCreate(Request $request) + { + // 表单验证 + $validator = Validator::make($request->all(), + [ + 'linkMan' => 'required|max:10', + 'mobile' => 'required', + 'schoolID' => 'required|max:10', + 'schoolName' => 'required|max:30', + 'dormName' => 'required|max:30', + 'dormID' => 'required|max:10', + 'address' => 'required', + ], + [ + 'linkMan.required' => '收件人参数缺失', + 'mobile.required' => '收货人手机号参数缺失', + 'schoolID.required' => '学校ID参数缺失', + 'schoolName.required' => '学校名参数缺失', + 'dormName.required' => '宿舍楼参数缺失', + 'dormID.required' => '宿舍楼ID参数缺失', + 'address.required' => '宿舍号参数缺失', + + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + // 这里后面加上valicate验证 + if ($request->input('id')) { + // 编辑 + $addresses = Address::find($request->input('id')); + } else { + $addresses = new Address; + } + $userID = Auth::user()->id; + $schoolName = $request->input('schoolName'); + $dormName = $request->input('dormName'); + $addr = $schoolName.' '.$dormName.' '.$request->input('address', ''); + + $addresses->uid = $userID; + $addresses->sid = $request->input('schoolID'); + $addresses->did = $request->input('dormID'); + $addresses->school_name = $schoolName; + $addresses->dorm_name = $dormName; + $addresses->addr = $addr; + $addresses->true_name = $request->input('linkMan'); + $addresses->mobile = $request->input('mobile'); + $addresses->is_default = $request->input('isDefault') ? Address::ISDEFAULT_YES : Address::ISDEFAULT_NO; + $addresses->status = Address::STATE_VALID; + + if ($addresses->save()) { + DB::table('addresses') + ->where([ + ['uid' , $userID], + ['id', '!=', $addresses->id], + ]) + ->update(['is_default' => Address::ISDEFAULT_NO]); + return $this->message('操作成功'); + } + + return $this->failed('操作失败', 402); + + } + + /** + * 更新默认地址 + * @param Request $request + */ + public function updateDefault(Request $request){ + if($request->input('id')){ + $Addresses = Address::find($request->input('id')); + $Addresses->is_default = $request->input('isDefault') ? 1 : 0; + if($Addresses->save()){ + DB::table('addresses') + ->where([ + ['uid' , \Auth::user()->id], + ['id', '!=', $Addresses->id], + ]) + ->update(['is_default' => 0]); + return $this->message('操作成功'); + } + } + return $this->failed('操作失败', 401); + } + + /** + * 删除 + * @param Request $request + * @return \Illuminate\Http\JsonResponse + */ + public function destroy(Request $request){ + + if($request->input('id') && Address::destroy($request->input('id'))){ + return $this->message('操作成功'); + } + return $this->failed('操作失败', 401); + } + /** + * 获取收货地址列表 + * @return mixed + */ + public function getList(Request $request) + { + $where = [ + 'uid' => \Auth::user()->id, + ]; + $AddressList = Address::getAddrList($where); + if ($AddressList) { + return $this->success($AddressList); + } + return $this->failed('没有数据', 401); + } + + public function getDetail(Request $request){ + $address = Address::getAddr([ + ['uid', '=', \Auth::user()->id], + ['id',$request->id] + ]); + if ($address) { + return $this->success($address); + } + return $this->failed('没有数据', 200); + } + + /** + * 获取默认地址 + * @return mixed + */ + public function defaultAddr() + { + $defaultAddress = Address::getAddr([ + ['uid', '=', \Auth::user()->id], + ['is_default',1] + ]); + if ($defaultAddress) { + return $this->success($defaultAddress); + } + return $this->failed('没有数据', 200); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/AddrjsonbController.php b/app/Http/Controllers/Api/AddrjsonbController.php new file mode 100644 index 0000000..35e60f7 --- /dev/null +++ b/app/Http/Controllers/Api/AddrjsonbController.php @@ -0,0 +1,35 @@ +q)) + { + $pid = $request->q; + } + if ($pid <= 0) return $city; + + $where['area_parent_id'] = $pid; + + $addr = Addrjson::select('area_id','area_name'); + if (!is_null($where)) $addr = $addr->where($where); + $city = $addr->get()->toArray(); + + return $city; + } + public function dorm(Request $request) + { + $dorms = Dorm::select('id','name')->where('sid',$request->q)->get(); + return $dorms->toArray(); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ApiController.php b/app/Http/Controllers/Api/ApiController.php new file mode 100644 index 0000000..1020ff5 --- /dev/null +++ b/app/Http/Controllers/Api/ApiController.php @@ -0,0 +1,28 @@ +middleware('auth:api')->only([ + 'logout' + ]); + } + + public function username() + { + return 'openid'; + } + + public function easyWechatGetSession($code) + { + $config = config('wechat.mini_program.default'); + $app = Factory::miniProgram($config); + return $app->auth->session($code); + } + + /** + * 处理小程序的自动登陆和注册 + * @param $oauth + */ + public function auto_login(Request $request) + { + // 获取openid + if ($request->code) { + $wx_info = $this->easyWechatGetSession($request->code); + } + + if (!$request->openid && empty($wx_info['openid'])) { + return $this->failed('用户openid没有获取到', 401); + } + $openid = empty($wx_info['openid'])?$request->openid:$wx_info['openid']; + $userInfo = User::where('openid', $openid)->first(); + if ($userInfo && $userInfo->toArray()) { + //执行登录 + $userInfo->login_ip = $this->getClientIP(); + $userInfo->login_time = Carbon::now(); + $userInfo->save(); + // 直接创建token + $token = $userInfo->createToken($openid)->accessToken; + return $this->success(compact('token','userInfo')); + } else { + //执行注册 + return $this->register($request,$openid); + } + } + + /* + * 用户注册 + * @param Request $request + */ + public function register($request,$openid) + { + // 进行基本验证 + $user_info = \GuzzleHttp\json_decode($request->input('rawData'),true); + //注册信息 字段名=》get到的值 + $newUser = [ + 'openid' => $openid, //openid + 'nickname' => $user_info['nickName'],// 昵称 + 'email' => time().'sqc157400661@163.com',// 邮箱 + 'name' => $user_info['nickName'],// 昵称 + 'avatar' =>$user_info['avatarUrl'], //头像 + 'unionid' => '', // unionid (可空) + 'state' => 1, + 'role' => 0, + 'password' => bcrypt('sqcweida'), + 'login_ip' => $this->getClientIP(), + 'login_time' => Carbon::now() + ]; + //dd($newUser); + $userInfo = User::create($newUser); + // 直接创建token + $token = $userInfo->createToken($openid)->accessToken; + return $this->success(compact('token','userInfo')); + } + + protected function sendFailedLoginResponse(Request $request) + { + $msg = $request['errors']; + $code = $request['code']; + return $this->setStatusCode($code)->failed($msg); + } +} diff --git a/app/Http/Controllers/Api/GoodsController.php b/app/Http/Controllers/Api/GoodsController.php new file mode 100644 index 0000000..982655f --- /dev/null +++ b/app/Http/Controllers/Api/GoodsController.php @@ -0,0 +1,51 @@ +input('categoryId')) { + $where[] = ['class_id', '=', $request->input('categoryId')]; + } + if ($request->input('nameLike')) { + $where[] = ['goods_name', 'like', "%{$request->input('nameLike')}%"]; + } + return GoodsLogic::getGoodsList($where); + } + + public function detail(Request $request) + { + $validator = Validator::make($request->all(), + [ + 'id' => 'required' + ], + [ + 'id.required' => 'id is required' + ] + ); + + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + + $result = Good::getGoodInfoByID($request->id); + if ($result) { + return $result; + } else { + return $this->failed('This Good is not exists', 401); + } + } + +} diff --git a/app/Http/Controllers/Api/IndexController.php b/app/Http/Controllers/Api/IndexController.php new file mode 100644 index 0000000..f49a202 --- /dev/null +++ b/app/Http/Controllers/Api/IndexController.php @@ -0,0 +1,41 @@ +failed('用户未登录', 401); + }else{ + $user_id = \Auth::user()->id; + } + $outData = []; + // 专题导航信息 + $outData['specialList'] = Special::getSpecialList(); + // 首页轮播 + $outData['carouselInfo'] = Carousel::getCarouselByType(Carousel::BOOTH_TYPE_HOME); + + // 热门 + $outData['hotGoodsList'] = ShopGoodsLogic::getGoodsList(['is_hot' => 1], 6); + + // 新品 + $outData['newGoodsList'] = ShopGoodsLogic::getGoodsList(['is_new' => 1], 4); + + // 新品 + $outData['topicList'] = ShopTopicResource::collection(ShopTopic::getTopicListByPage())->additional(['code' => 200]); + return $this->success($outData); + } +} diff --git a/app/Http/Controllers/Api/MyOrderController.php b/app/Http/Controllers/Api/MyOrderController.php new file mode 100644 index 0000000..6a10034 --- /dev/null +++ b/app/Http/Controllers/Api/MyOrderController.php @@ -0,0 +1,90 @@ +failed('用户未登录', 401); + } + $user_id = \Auth::user()->id; + $orderLogic = new OrderLogic(); + $where['uid'] = $user_id; + $orderList = $orderLogic->getOrderList($where); + return $this->success($orderList); + } + + // 订单详情 + public function orderDetail(Request $request) + { + // 先获取当前登录的用户信息 + if (empty(\Auth::user())) { + return $this->failed('用户未登录', 401); + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'orderId' => 'required', + ], + [ + 'orderId.required' => '订单id参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + + $user_id = \Auth::user()->id; + $orderLogic = new OrderLogic(); + $where['uid'] = $user_id; + $where['id'] = $request->orderId; + $orderInfo = $orderLogic->getOrderDetail($where); + return $this->success($orderInfo); + } + + // 取消订单 + public function orderCancel(Request $request) + { + // 先获取当前登录的用户信息 + if (empty(\Auth::user())) { + return $this->failed('用户未登录', 401); + } + $user_id = \Auth::user()->id; + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'orderId' => 'required', + ], + [ + 'orderId.required' => '订单id参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + + } + + // 物流详情 + public function orderExpress(Request $request) + { + // 先获取当前登录的用户信息 + if (empty(\Auth::user())) { + return $this->failed('用户未登录', 401); + } + $user_id = \Auth::user()->id; + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/NewsApiController.php b/app/Http/Controllers/Api/NewsApiController.php new file mode 100644 index 0000000..8f358f6 --- /dev/null +++ b/app/Http/Controllers/Api/NewsApiController.php @@ -0,0 +1,30 @@ +paginate(6); + return $this->success($allnews); + } + + /** + * 新闻详情信息 + */ + public function show($detail) + { + $news = News::find($detail); + return $this->success($news); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/PaymentController.php b/app/Http/Controllers/Api/PaymentController.php new file mode 100644 index 0000000..d7e5b37 --- /dev/null +++ b/app/Http/Controllers/Api/PaymentController.php @@ -0,0 +1,118 @@ +all(), + [ + 'orderId' => 'required' + ], + [ + 'orderId.required' => '订单号缺失' + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + // 先获取当前登录的用户信息 + $user_id = \Auth::user()->id; + if (empty($user_id)) { + return $this->failed('用户未登录', 401); + } + // 查询订单 + $order_info = ShopOrder::find($request->orderId)->toArray(); + if(empty($order_info)){ + return $this->failed('订单不存在', 401); + } + // 开始生成预支付订单 + $buy = new Buy(); + $buy_info = $buy->pay_step1($order_info,\Auth::user()->openid); + if($buy_info){ + return $this->success($buy_info); + } + return $this->failed('支付失败', 401); + + } + + /** + * 支付提醒 + */ + public function notify() + { + $this->pay_log(var_export(file_get_contents('php://input'), true)); + $app = Factory::payment(config('wechat.payment.default')); + $response = $app->handlePaidNotify(function($message, $fail){ + $this->pay_log('notify ' . var_export($message, true)); + // 使用通知里的 "微信支付订单号" 或者 "商户订单号" 去自己的数据库找到订单 + $order = Order::where(['order_sn' => $message['out_trade_no']])->first(); + if (!$order) { // 如果订单不存在 + return true; // 告诉微信,我已经处理完了,订单没找到,别再通知我了 + } + // 如果订单存在 + // 检查订单是否已经更新过支付状态 + if ($order->status >= 22) { + return true; // 已经支付成功了就不再更新了 + } + + ///////////// <- 建议在这里调用微信的【订单查询】接口查一下该笔订单的情况,确认是已经支付 (给的钱少 这次就算了)////////// + + if ($message['return_code'] === 'SUCCESS') { // return_code 表示通信状态,不代表支付状态 + // 用户是否支付成功 + if($message['result_code'] === 'SUCCESS'){ + // 判断支付金额 + $order->pay_date = Carbon::now(); // 更新支付时间为当前时间 + $order->trade_no = $message['transaction_id'];// 微信交易号存放到数据库【退款等会用到】 + if ($message['total_fee'] == ($order->actual_price * 100)) { + // 不是已经支付状态则修改为已经支付状态 + $order->status = '22'; + $order->lock_state = 0; + } else { + // 测试的 + // $order->status = '22'; + // $order->lock_state=0; + //生产的 + $order->status = '10'; + $order->lock_state = 4; + //add_my_log('order', '支付金额与订单金额不符:' . $order->actual_price . '(元)=>' . $notify->total_fee . '(分)', 3, json_encode($order->toArray()), '微信支付回调'); + } + + }elseif($message['result_code'] === 'FAIL'){ + // 用户支付失败 + $order->status = '10'; + $order->lock_state = 2; + } + } else { // 用户支付通讯失败 + return $fail('通信失败,请稍后再通知我'); + } + $order->save(); // 保存订单 + return true; // 返回处理完成 + }); + return $response; + } + + + + /** + * 记录日志 + */ + private function pay_log($msg) + { + $msg = date('H:i:s') . "|" . $msg . "\r\n"; + $msg .= '| GET:' . var_export($_GET, true) . "\r\n"; + file_put_contents('./log/member_pay' . date('Y-m-d') . ".log", $msg, FILE_APPEND); + } +} diff --git a/app/Http/Controllers/Api/ProjectElementController.php b/app/Http/Controllers/Api/ProjectElementController.php new file mode 100644 index 0000000..b2c677e --- /dev/null +++ b/app/Http/Controllers/Api/ProjectElementController.php @@ -0,0 +1,59 @@ +success($outData); + } + + // 技术项目模块拼装成商品 + public function getProjectGoods(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'type_id' => 'required', + ], + [ + 'type_id.required' => '项目类型参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData['info'] = ProjectType::getProjectInfo(['id' => $request->type_id]); + $outData['sku'] = ProjectControl::getJsonProjectGoodsByTypeId($request->type_id); + return $this->success($outData); + } + + // 技术商品转换成商城商品 + public function transform(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'type_id' => 'required', + 'specificationList' => 'required', + ], + [ + 'type_id.required' => '项目类型参数缺失', + 'specificationList.required' => '未选择商品', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData = ProjectControl::transform($request->type_id,$request->specificationList); + return $this->success($outData); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ProjectJsonController.php b/app/Http/Controllers/Api/ProjectJsonController.php new file mode 100644 index 0000000..188a7c1 --- /dev/null +++ b/app/Http/Controllers/Api/ProjectJsonController.php @@ -0,0 +1,44 @@ +q)) + { + $pid = $request->q; + } + if ($pid < 0) return $data; + $where = [$pid]; + $data = ProjectControl::getProjectFuncTypesByOneLevel($where); + return $data; + } + + public function getProjectModelsByFunctypeId(Request $request) + { + $pid = 0; + $where = []; + $data = []; + if (isset($request->q)) + { + $pid = $request->q; + } + if ($pid < 0) return $data; + $where = [$pid]; + $data = ProjectControl::getProjectModelsByOneLevel($where); + return $data; + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopAddressController.php b/app/Http/Controllers/Api/ShopAddressController.php new file mode 100644 index 0000000..aae5e95 --- /dev/null +++ b/app/Http/Controllers/Api/ShopAddressController.php @@ -0,0 +1,137 @@ +id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + $list = AddressLogic::getAddrList(['uid' => $user_id]); + return $this->success($list); + } + + // 收货地址详情 + public function addressDetail(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => 'id参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $info = AddressLogic::getOneAddr($request->id); + return $this->success($info); + } + + // 保存收货地址 + public function addressSave(Request $request) + { + if (empty(\Auth::user()->id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + 'name' => 'required', + 'mobile' => 'required', + 'province_id' => 'required', + 'city_id' => 'required', + 'district_id' => 'required', + 'address' => 'required', + 'is_default' => 'required', + ], + [ + 'id.required' => 'id参数缺失', + 'name.required' => '收货人参数缺失', + 'mobile.required' => '收货人手机号参数缺失', + 'province_id.required' => 'province_id参数缺失', + 'city_id.required' => 'city_id参数缺失', + 'district_id.required' => 'district_id参数缺失', + 'address.required' => '详细地址参数缺失', + 'is_default.required' => 'is_default参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + if ($request->id && $request->id > 0) { + $model = ShopAddress::find($request->id); + } else { + $model = new ShopAddress(); + } + $model->user_name = $request->name; + $model->mobile = $request->mobile; + $model->uid = $user_id; + $model->country_id = 1; + $model->country = '中国'; + $model->province_id = $request->province_id; + $model->province = $request->province; + $model->city_id = $request->city_id; + $model->city = $request->city; + $model->district_id = $request->district_id; + $model->district = $request->district; + $model->address = $request->address; + $model->is_default = intval($request->is_default); + $model->status = ShopAddress::STATUS_ON; + // 开启事务 + DB::beginTransaction(); + try { + DB::table('shop_address') + ->where('is_default', ShopAddress::DEFAULT_ON) + ->update(['is_default' => ShopAddress::DEFAULT_OFF]); + $re = $model->save(); + DB::commit(); + return $this->message('操作成功'); + } catch (Exception $e) { + DB::rollBack(); + return $this->failed('报错失败', 403); + } + + } + + // 删除收货地址 + public function addressDelete(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => 'id参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $model = ShopAddress::find($request->id); + $re = $model->delete(); + if ($re) { + return $this->message('操作成功'); + } + } + + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopBrandController.php b/app/Http/Controllers/Api/ShopBrandController.php new file mode 100644 index 0000000..37363ca --- /dev/null +++ b/app/Http/Controllers/Api/ShopBrandController.php @@ -0,0 +1,36 @@ +all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData = ShopBrand::getDetail(['id'=>$request->id]);; + return $this->success($outData); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopCartController.php b/app/Http/Controllers/Api/ShopCartController.php new file mode 100644 index 0000000..db7a742 --- /dev/null +++ b/app/Http/Controllers/Api/ShopCartController.php @@ -0,0 +1,167 @@ +\Auth::user()->id, + ]; + $cartData = CartLogic::getCartList($where); + return $this->success($cartData); + } + + // 添加商品到购物车 + public function add(Request $request) + { + if (empty(\Auth::user()->id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'goodsId' => 'required', + 'number' => 'required|numeric', + ], + [ + 'goodsId.required' => '商品id参数缺失', + 'number.required' => '购买数量参数缺失', + 'number.numeric' => '购买数量需要是数字', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $goodsInfo = ShopGoods::getGoodsDetail(['id'=>$request->goodsId]); + $re = CartLogic::addCart($goodsInfo,$request->number); + if($re){ + $goodsCount = ShopCart::getGoodsCount(['uid' => $user_id]); + return $this->success(['goodsCount'=>$goodsCount]); + } + return $this->failed('购物车添加失败', 201); + } + + // 更新购物车的商品 + public function update(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + 'number' => 'required|numeric', + ], + [ + 'id.required' => '商品id参数缺失', + 'number.required' => '参数缺失', + 'number.numeric' => '非法参数', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $where['id'] = $request->id; + $info = ShopCart::where($where)->first(); + $info->number = $request->number; + $re = $info->save(); + if($re){ + return $this->message('更新成功'); + } + return $this->failed('更新失败','201'); + } + + // 删除购物车的商品 + public function delete(Request $request) + { + if (empty(\Auth::user()->id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'goodsIds' => 'required', + ], + [ + 'goodsIds.required' => '商品id参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $where = [ + 'uid' =>$user_id, + 'goods_id' => explode(',',$request->goodsIds) + ]; + ShopCart::where($where)->delete(); + $cartData = CartLogic::getCartList(['uid' =>$user_id]); + return $this->success($cartData); + } + + // 选择或取消选择商品 + public function checked(Request $request) + { + if (empty(\Auth::user()->id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'goodsIds' => 'required', + 'isChecked' => 'required|numeric', + ], + [ + 'goodsIds.required' => '商品id参数缺失', + 'isChecked.required' => '参数缺失', + 'isChecked.numeric' => '非法参数', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $where = [ + 'uid'=>$user_id, + ]; + ShopCart::where($where)->whereIn('goods_id',explode(',',$request->goodsIds))->update(['checked' => $request->isChecked]); + $cartData = CartLogic::getCartList(['uid' =>$user_id]); + return $this->success($cartData); + } + + // 获取购物车商品件数 + public function goodsCount(Request $request) + { + if (empty(\Auth::user()->id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + $goodsCount = ShopCart::getGoodsCount(['uid' => $user_id]); + return $this->success(['goodsCount'=>$goodsCount]); + } + + + + // 下单前信息确认 + public function checkout(Request $request) + { + return $this->success([]); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopCategoryController.php b/app/Http/Controllers/Api/ShopCategoryController.php new file mode 100644 index 0000000..f4ff5dd --- /dev/null +++ b/app/Http/Controllers/Api/ShopCategoryController.php @@ -0,0 +1,46 @@ + ShopCategoryResource::collection($parentCategory), + 'currentCategory' =>new ShopCategoryResource($parentCategory[0]), + ]; + return $this->success($outData); + } + + // 分类目录当前分类数据接口 + public function getCatalogCurrent(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $parentCategory = ShopCategory::getParentCategory(['id'=>$request->id]); + $currentCategory = new ShopCategoryResource($parentCategory[0]); + return $this->success($currentCategory); + } + + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopCollectController.php b/app/Http/Controllers/Api/ShopCollectController.php new file mode 100644 index 0000000..c42644e --- /dev/null +++ b/app/Http/Controllers/Api/ShopCollectController.php @@ -0,0 +1,93 @@ +all(), + [ + 'typeId' => 'required', + 'valueId' => 'required|numeric', + ], + [ + 'typeId.required' => '参数缺失', + 'valueId.required' => '参数缺失', + 'valueId.numeric' => '非法参数', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + + if(empty(\Auth::user()->id)){ + $user_id = 0; + }else{ + $user_id = \Auth::user()->id; + } + $where['user_id'] = $user_id; + $where['value_id'] = $request->valueId; + $where['type_id'] = $request->typeId; + $info = ShopCollect::getCollectDetail($where); + $type = 'add'; + if(empty($info->value_id)){ + // 添加 + $newCollect = new ShopCollect(); + $newCollect->user_id = $user_id; + $newCollect->value_id = $request->valueId; + $newCollect->type_id = $request->typeId; + $newCollect->add_time = time(); + $newCollect->is_attention = ShopCollect::STATE_ATTENTION; + $newCollect->save(); + return $this->success(['type'=>$type]); + } + if($info->is_attention == ShopCollect::STATE_ATTENTION){ + $info->is_attention = ShopCollect::STATE_NOT_ATTENTION; + $info->save(); + $type = 'del'; + }else{ + $info->is_attention = ShopCollect::STATE_ATTENTION; + $info->save(); + } + return $this->success(['type'=>$type]); + + } + + /** + * 获取收藏列表 + */ + public function getList(Request $request){ + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'typeId' => 'required', + ], + [ + 'typeId.required' => '参数缺失', + ] + ); + + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + if(empty(\Auth::user()->id)){ + $user_id = 0; + }else{ + $user_id = \Auth::user()->id; + } + + $list = ShopCollect::getList(['user_id'=>$user_id,'type_id'=>$request->typeId]); + return $this->success(ShopCollectResource::collection($list)); + } + + + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopCommentController.php b/app/Http/Controllers/Api/ShopCommentController.php new file mode 100644 index 0000000..646b44b --- /dev/null +++ b/app/Http/Controllers/Api/ShopCommentController.php @@ -0,0 +1,153 @@ +all(), + [ + 'valueId' => 'required', + 'typeId' => 'required|numeric', + 'showType'=>'numeric' + ], + [ + 'valueId.required' => '商品id参数缺失', + 'typeId.required' => '评论类型参数缺失', + 'typeId.numeric' => '请输入正确的评论类型', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $commentList = ShopCommentLogic::getCommentList(['value_id' =>$request->valueId,'type_id'=>$request->typeId],$request->showType,10); + return $commentList; + } + + // 评论总数 + public function getCommentCount(Request $request){ + $validator = Validator::make($request->all(), + [ + 'valueId' => 'required', + 'typeId' => 'required|numeric', + ], + [ + 'valueId.required' => '商品id参数缺失', + 'typeId.required' => '评论类型参数缺失', + 'typeId.numeric' => '请输入正确的评论类型', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $where = [ + 'value_id' =>$request->valueId, + 'type_id'=>$request->typeId, + 'status'=>ShopComment::STATE_ON + ]; + $hasPicCount = ShopComment::has('get_comment_picture')->where($where)->count(); + $allCount = ShopComment::where($where)->count(); + return $this->success(['hasPicCount'=>$hasPicCount,'allCount'=>$allCount]); + } + + // 发表评论 + public function commentAdd(Request $request){ + $validator = Validator::make($request->all(), + [ + 'valueId' => 'required', + 'typeId' => 'required|numeric', + 'content'=> 'required|min:5', + ], + [ + 'valueId.required' => '商品id参数缺失', + 'typeId.required' => '评论类型参数缺失', + 'typeId.numeric' => '请输入正确的评论类型', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $user_id = 0; + if(!empty(\Auth::user()->id)){ + $user_id = \Auth::user()->id; + } + $conmentModel = new ShopComment(); + $conmentModel->type_id = $request->typeId; + $conmentModel->value_id = $request->valueId; + $conmentModel->content = $request->input('content'); + $conmentModel->add_time = Carbon::now(); + $conmentModel->user_id = $user_id; + $re = $conmentModel->save(); + return $this->message('添加成功'); + } + + + + // 添加或取消收藏 + public function addordelete(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'typeId' => 'required', + 'valueId' => 'required|numeric', + ], + [ + 'typeId.required' => '参数缺失', + 'valueId.required' => '参数缺失', + 'valueId.numeric' => '非法参数', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + + if(empty(\Auth::user()->id)){ + $user_id = 0; + }else{ + $user_id = \Auth::user()->id; + } + $where['user_id'] = $user_id; + $where['value_id'] = $request->valueId; + $where['type_id'] = $request->typeId; + $info = ShopCollect::getCollectDetail($where); + $type = 'add'; + if(empty($info->value_id)){ + // 添加 + $newCollect = new ShopCollect(); + $newCollect->user_id = $user_id; + $newCollect->value_id = $request->valueId; + $newCollect->type_id = $request->typeId; + $newCollect->add_time = time(); + $newCollect->is_attention = ShopCollect::STATE_ATTENTION; + $newCollect->save(); + return $this->success(['type'=>$type]); + } + if($info->is_attention ==ShopCollect::STATE_ATTENTION){ + $info->is_attention = ShopCollect::STATE_NOT_ATTENTION; + $info->save(); + $type = 'del'; + }else{ + $info->is_attention = ShopCollect::STATE_ATTENTION; + $info->save(); + } + return $this->success(['type'=>$type]); + + } + + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopFeedbackController.php b/app/Http/Controllers/Api/ShopFeedbackController.php new file mode 100644 index 0000000..88cd20f --- /dev/null +++ b/app/Http/Controllers/Api/ShopFeedbackController.php @@ -0,0 +1,46 @@ +success(ShopFeedback::$Option); + } + + // 用户进行反馈 + public function feedbackHandle(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'msg_type' => 'required', + 'msg_content' => 'required', + ], + [ + 'msg_type.required' => '参数缺失', + 'msg_content.required' => '内容缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $model = new ShopFeedback(); + $model->uid = \Auth::user()->id; + $model->user_name = \Auth::user()->name; + $model->msg_title = ShopFeedback::$Option[$request->msg_type]; + $model->msg_type = $request->msg_type; + $model->user_contact = $request->user_contact; + $model->msg_status = ShopFeedback::STATUS_ON; + $model->msg_content = $request->msg_content; + $model->save(); + return $this->message('反馈成功'); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopFootprintController.php b/app/Http/Controllers/Api/ShopFootprintController.php new file mode 100644 index 0000000..940c244 --- /dev/null +++ b/app/Http/Controllers/Api/ShopFootprintController.php @@ -0,0 +1,23 @@ +id)) { + $uid = 0; + } else { + $uid = \Auth::user()->id; + } + $outData = ShopFootprint::getList(['uid'=>$uid]); + return $this->success($outData); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopGoodsController.php b/app/Http/Controllers/Api/ShopGoodsController.php new file mode 100644 index 0000000..e8ae59d --- /dev/null +++ b/app/Http/Controllers/Api/ShopGoodsController.php @@ -0,0 +1,152 @@ +', 0]]); + return $this->success($outData); + } + + // 获取商品列表 + public function getGoodsList(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'categoryId' => 'required', + ], + [ + 'categoryId.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $where = []; + if( $request->keyword){ + $where[] = ['goods_name', 'like' , '%'.$request->keyword.'%']; + } + if( $request->categoryId){ + $where['category_id'] = $request->categoryId; + } + // 新品 + if($request->isNew){ + $where['is_new'] = $request->isNew; + } + // 热门 + if($request->isHot){ + $where['is_hot'] = $request->isHot; + } + // 品牌 + if($request->brandId){ + $where['brand_id'] = $request->brandId; + } + $order = ''; + $inputSort = $request->input('sort','default'); + switch($inputSort){ + case 'price': + $order = 'retail_price '. $request->input('order','asc'); + break; + default: + $order = 'sort_order asc'; + } + $outData = ShopGoodsLogic::getGoodsList($where, $request->size ? $request->size : 10,$order); + if ($outData) { + return $outData; + } + return $this->success([]); + } + + // 获取商品分类列表 + public function getGoodsCategory(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData = ShopGoodsLogic::getGoodsCategory(['id' => $request->id]); + return $this->success($outData); + } + + + // 获取商品详情 + public function getGoodsDetail(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $goodsInfo = ShopGoodsLogic::getGoodsDetail(['id' => $request->id]); + $goods_where = ['goods_id'=>$goodsInfo->id]; + $attribute = ShopGoodsLogic::getGoodsAttribute($goods_where); + $issueList = ShopGoodsLogic::getGoodsIssue($goods_where); + $comment = ShopCommentLogic::getCommentList(['value_id' =>$goodsInfo->id],0,10); + $brand = ShopBrand::getDetail(['id'=>$goodsInfo->brand_id]); + $userHasCollect = ShopGoodsLogic::userCollectStatus($goodsInfo->id); + ShopGoodsLogic::addFootprint($goodsInfo->id); + $outData = [ + 'info' => $goodsInfo, // 商品信息 + 'attribute' => $attribute, // 商品属性参数 + 'issue' => $issueList, // 商品问题 + 'comment' => ['data'=>$comment,'count' => $comment->total()], // 商品评论 + 'brand' => $brand, // 品牌信息 + 'specificationList' => [], // 规格信息 后期完善该项 2018.6.12 + 'productList' => [], // sku列表 后期完善该项 2018.6.12 + 'userHasCollect' => $userHasCollect, // 是否收藏 + ]; + return $this->success($outData); + } + + // 商品详情页的关联商品(大家都在看) + public function getGoodsRelated(Request $request){ + $goodsInfo = ShopGoodsLogic::getGoodsDetail(['id' => $request->id]); + $relateWhere['category_id'] = $goodsInfo->category_id; + $outData = ShopGoodsLogic::getRelatedGoods($relateWhere); + return $this->success($outData); + } + + // 新品 + public function getGoodsNew(Request $request){ + $outData['bannerInfo'] = Carousel::getCarouselByType(Carousel::BOOTH_TYPE_NEW); + // 目前只是查询二级分类 因为前段定位分类只有2级 + $outData['filterCategory'] = ShopCategory::getCategoryList(['level'=>1]); + return $this->success($outData); + } + + // 热门 + public function getGoodsHot(Request $request){ + $outData['bannerInfo'] = Carousel::getCarouselByType(Carousel::BOOTH_TYPE_HOT); + // 目前只是查询二级分类 因为前段定位分类只有2级 + $outData['filterCategory'] = ShopCategory::getCategoryList(['level'=>1]); + return $this->success($outData); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopOrderController.php b/app/Http/Controllers/Api/ShopOrderController.php new file mode 100644 index 0000000..eeb75e9 --- /dev/null +++ b/app/Http/Controllers/Api/ShopOrderController.php @@ -0,0 +1,115 @@ +id)) { + $this->user_id = 0; + } else { + $this->user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'addressId' => 'required', + ], + [ + 'addressId.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData = CartLogic::getCheckedGoodsList($this->user_id); + $outData['checkedAddress'] = AddressLogic::getOneAddr($request->addressId, $this->user_id); // 选择地址 + $outData['checkedCoupon'] = []; // 选择的优惠券 + $outData['couponList'] = []; // 优惠券列表 + $outData['couponPrice'] = 0.00; // 选中的优惠金额 + $outData['actualPrice'] = PriceCalculate($outData['orderTotalPrice'], '-', $outData['couponPrice']); // 真实付款金额 + return $this->success($outData); + } + + // 立即购买 + public function payNow(Request $request){ + if (empty(\Auth::user()->id)) { + $this->user_id = 0; + } else { + $this->user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'addressId' => 'required', + 'goodsId' => 'required', + 'buynumber' => 'required', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData = CartLogic::getBuyGoodsById($request->goodsId,$request->buynumber); + $outData['checkedAddress'] = AddressLogic::getOneAddr($request->addressId, $this->user_id); // 选择地址 + $outData['checkedCoupon'] = []; // 选择的优惠券 + $outData['couponList'] = []; // 优惠券列表 + $outData['couponPrice'] = 0.00; // 选中的优惠金额 + $outData['actualPrice'] = PriceCalculate($outData['orderTotalPrice'], '-', $outData['couponPrice']); // 真实付款金额 + return $this->success($outData); + } + + + // 提交订单用来生成订单 + public function orderSubmit(Request $request) + { + if (empty(\Auth::user()->id)) { + $this->user_id = 0; + } else { + $this->user_id = \Auth::user()->id; + } + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'addressId' => 'required', + ], + [ + 'addressId.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + if($request->goodsId){ + $orderData = CartLogic::getBuyGoodsById($request->goodsId,$request->buynumber,0); + }else{ + $orderData = CartLogic::getCheckedGoodsList($this->user_id); + } + $checkedAddress = AddressLogic::getOneAddr($request->addressId, $this->user_id); // 选择地址 + if (empty($checkedAddress)) { + return $this->failed('未查到用户收货地址,请检查您的收货地址', 401); + } + $orderData['checkedCouponId'] = $request->couponId??0; // 选择的优惠券 + $orderData['checkedCoupon'] = []; // 选择的优惠券 + $orderData['couponList'] = []; // 优惠券列表 + $orderData['couponPrice'] = 0.00; // 选中的优惠金额 + $orderData['actualPrice'] = PriceCalculate($orderData['orderTotalPrice'], '-', $orderData['couponPrice']); // 真实付款金额 + $buyModel = new Buy(); + $buyRe = $buyModel->buyStep($request, $orderData, $checkedAddress, $this->user_id); + if (empty($buyRe['error'])) { + return $this->success($buyRe); + } + return $this->failed($buyRe['error'], 403); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopRegionController.php b/app/Http/Controllers/Api/ShopRegionController.php new file mode 100644 index 0000000..9842489 --- /dev/null +++ b/app/Http/Controllers/Api/ShopRegionController.php @@ -0,0 +1,32 @@ +all(), + [ + 'parentId' => 'required', + ], + [ + 'parentId.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $addressLogic = new AddressLogic(); + $regionList = $addressLogic->getRegionList($request->parentId); + return $this->success($regionList); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/ShopTopicController.php b/app/Http/Controllers/Api/ShopTopicController.php new file mode 100644 index 0000000..1c69b9d --- /dev/null +++ b/app/Http/Controllers/Api/ShopTopicController.php @@ -0,0 +1,37 @@ +additional(['code' => 200]); + } + + // 获取专题详情 + public function getTopicDetail(Request $request) + { + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'id' => 'required', + ], + [ + 'id.required' => '参数缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 403); + } + $outData = new ShopTopicResource(ShopTopic::getTopicDetail(['id' => $request->id])); + return $this->success($outData); + } + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/bak/CreateCityDataController.php b/app/Http/Controllers/Api/bak/CreateCityDataController.php new file mode 100644 index 0000000..2534982 --- /dev/null +++ b/app/Http/Controllers/Api/bak/CreateCityDataController.php @@ -0,0 +1,51 @@ +provinceId){ + return []; + } + $province = DB::table('br_area')->where('area_id', $request->provinceId)->first(); + // 二级地区 + $dataTwo = []; + if($province){ + $citys = DB::table('br_area')->where('area_parent_id', $request->provinceId)->get(); + foreach($citys as $k=>$v){ + // 3级地区 + $district = DB::table('br_area')->where('area_parent_id', $v->area_id)->get(); + $dataThree = []; + foreach($district as $k2=>$v3){ + $dataThree[] = [ + 'name' => $v3->area_name, + 'id' => $v3->area_id, + 'pid'=> $v->area_id, + ]; + } + $dataTwo[] = [ + 'name' => $v->area_name, + 'id' => $v->area_id, + 'pid'=> $province->area_id, + 'districtList' => $dataThree + ]; + } + } + $dataOne = [ + 'name' => $province->area_name, + 'id' => $province->area_id, + 'cityList' =>$dataTwo + ]; + return json_encode($dataOne, JSON_UNESCAPED_UNICODE); + } +} diff --git a/app/Http/Controllers/Api/bak/IphoneController.php b/app/Http/Controllers/Api/bak/IphoneController.php new file mode 100644 index 0000000..4a02c07 --- /dev/null +++ b/app/Http/Controllers/Api/bak/IphoneController.php @@ -0,0 +1,52 @@ +where('openid', '1231464465545885426545')->first(); + + $ll = new \App\Models\Iphone; + $info = $ll->userInfo(); + if (!is_null($info->mobile)) + { + return $this->message("你的手机已绑定成功"); + }else { + return $this->failed('未绑定号码', 44); + } + + } + + public function saveUserIphone(Request $request) + { + //dd(1); +// $iphone = new Iphone(); +// $this->validate(request(),[ +// 'mobile'=>'required|string|11' +// ]); +// $iphone->mobile = request('mobile'); + //$ll = DB::table('users')->where('openid', '1231464465545885426545')->get(); + $num =DB::table('users')->where('openid', '1231464465545885426545')->update(['mobile' => 13923456889]); + + //$num =DB::table('users')->insert(['mobile' => 13923456789]); + //$num=1345678123; + if ($num) + { + return $this->message("你的手机已绑定成功"); + }else { + return $this->failed('未绑定号码', 44); + } + + } + + + +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/bak/OrderInfoController.php b/app/Http/Controllers/Api/bak/OrderInfoController.php new file mode 100644 index 0000000..1326513 --- /dev/null +++ b/app/Http/Controllers/Api/bak/OrderInfoController.php @@ -0,0 +1,139 @@ +id; + if (empty($user_id)) { + return $this->failed('用户未登录', 401); + } + $condition['uid'] = $user_id; + $conditionIn= $this->statusConfig[$request->input('status', 0)]; + $orders_info = Order::getOrderAndOrderGoodsList($condition,$conditionIn); + + $out_info = []; + foreach ($orders_info as $k => &$order) { + $out_info['logisticsMap'][$order->id] = [ + "address" => $order->addr_detail, + "cityId" => $order->aid_c, + "dateUpdate" => $order->updated_at->format('Y-m-d H:i:s'), + "districtId" => $order->aid_a, + "id" => $order->id, + "linkMan" => $order->user_name, + "mobile" => $order->user_mobile, + "provinceId" => $order->aid_p, + "status" => $order->status, + "type" => 0 + ]; + $out_info['orderList'][] = [ + "amount" => $order->total_price, + "amountLogistics" => 0.00, + "amountReal" => $order->pay_price, + "dateAdd" => $order->created_at->format('Y-m-d H:i:s'), + "dateClose" => $order->pay_date, + "goodsNumber" => $order->orderGoods->sum('num'), + "hasRefund" => false, + "id" => $order->id, + "isPay" => false, + "orderNumber" => $order->order_sn, + "remark" => $order->remark, + "status" => $order->status, + "statusStr" => Order::getStatusDisplayMap()[$order->status], + "type" => 0, + "uid" => $order->uid, + ]; + + $order_goods = []; + foreach ($order->orderGoods as $goods_k => $goods) { + $order_goods[] = [ + "amount" => $goods->goods_price, + "goodsId" => $goods->goods_id, + "goodsName" => $goods->goods_name, + "id" => $goods->id, + "number" => $goods->num, + "orderId" => $order->id, + "pic" => config('filesystems.disks.oss.url') . '/' . $goods->goods_image, + "uid" => $order->uid, + ]; + } + $out_info['goodsMap'][$order->id] = $order_goods; + } + if ($out_info) { + // 返回订单信息 + return $this->success($out_info); + } + // 没有查到订单信息 返回空数据错误 + //add_my_log('Orderinfo','用户(id:'.\Auth::user()->id.')没有符合条件的订单',1,'订单内容:没有符合条件的订单','OrderinfoController@list'); + return $this->failed('没有符合条件的订单', 401); + } + + /** + * 取消订单 + * @param Request $request + */ + public function cancelOrder(Request $request) + { + // 验证规则 + $validator = Validator::make($request->all(), + [ + 'orderId' => 'required' + ], + [ + 'orderId.required' => '订单号缺失' + ] + ); + if ($validator->fails()) { + // add_my_log('Orderinfo','用户(id:'.\Auth::user()->id.')操作订单不存在',1,'订单号:'.$order_id,'OrderinfoController@cancelOrder'); + return $this->failed($validator->errors(), 401); + } + $condition['id'] = $request->orderId; + $condition['uid'] = \Auth::user()->id; + $order_info = Order::where($condition)->first(); + $order_info_arr = $order_info->toArray(); + if (empty($order_info_arr)) { + // add_my_log('Orderinfo','用户(id:'.\Auth::user()->id.')操作订单不存在',1,'订单内容:空','OrderinfoController@cancelOrder'); + return $this->failed('订单不存在', 401); + } + $order_info->status = Order::STATUS_INVALID; + $order_info->save(); + return $this->message('取消成功'); + } + + /** + * 我的订单统计 + * @param Request $request + */ + public function getMyOrderStatistics(Request $request) + { + // 先获取当前登录的用户信息 + $user_id = \Auth::user()->id; + if (empty($user_id)) { + return $this->failed('用户未登录', 401); + } + $statistics = [ + "count_id_no_transfer" => Order::countOrder(['uid' => $user_id, 'status' => Order::STATUS_ALREADY_PAID]), + "count_id_close" => Order::countOrder(['uid' => $user_id, 'status' => Order::STATUS_INVALID]), + "count_id_no_pay" => Order::countOrder(['uid' => $user_id, 'status' => Order::STATUS_WAIT_PAY]), + "count_id_no_confirm" => Order::countOrder(['uid' => $user_id, 'status' => Order::STATUS_DELIVERING]), + "count_id_success" => Order::countOrder(['uid' => $user_id, 'status' => Order::STATUS_COMPLETED]) + ]; + return $this->success($statistics); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/bak/OrdersController.php b/app/Http/Controllers/Api/bak/OrdersController.php new file mode 100644 index 0000000..deed643 --- /dev/null +++ b/app/Http/Controllers/Api/bak/OrdersController.php @@ -0,0 +1,215 @@ +id; + if (!$userID) { + return $this->failed('非法的用户请求', 401); + } + + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'status' => 'required', + ], + [ + 'status.required' => '订单状态缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + + $orderStatus = $request->input('status'); + + $orderLogic = new OrderLogic(); + +// $userID = 7; + + list($resaultFlag, $data) = $orderLogic->getDeliveryOrderList($userID, $orderStatus); + + if ($resaultFlag) { + return $this->success($data); + } else { + list($code, $errMsg) = $this->transErrMsg($data); + return $this->failed($errMsg, $code); + } + } + + //确认接收订单 + public function receiveOrder(Request $request) + { +// $userID = 7; + $userID = Auth::user()->id; + if (!$userID) { + return $this->failed('非法的用户请求', 401); + } + + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'orderID' => 'required', + ], + [ + 'orderID.required' => 'orderID缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + + $orderID = $request->input('orderID'); + $orderLogic = new OrderLogic(); + $orderLogic->isInSchool = true; + $orderLogic->optionUserID = $userID; + + list($resaultFlag, $errMsg) = $orderLogic->receiveOrder($orderID); + if ($resaultFlag) { + return $this->success([]); + } else { + list($code, $msg) = $this->transErrMsg($errMsg); + return $this->failed($msg, $code); + } + } + + + //确认配送订单 + public function deliveryOrder(Request $request) + { + $userID = Auth::user()->id; + if (!$userID) { + return $this->failed('非法的用户请求', 401); + } + + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'orderID' => 'required', + ], + [ + 'orderID.required' => 'orderID缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + + $orderID = $request->input('orderID'); + + $orderLogic = new OrderLogic(); + $orderLogic->isInSchool = true; + list($resaultFlag, $errMsg) = $orderLogic->deliveryOrder($orderID); + if ($resaultFlag) { + return $this->success([]); + } else { + list($code, $msg) = $this->transErrMsg($errMsg); + return $this->failed($msg, $code); + } + } + + //订单详情 + public function getOrderDetail(Request $request) + { + $userID = Auth::user()->id; + if (!$userID) { + return $this->failed('非法的用户请求', 401); + } + + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'orderID' => 'required', + ], + [ + 'orderID.required' => 'orderID缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + + $orderID = $request->input('orderID'); + $orderLogic = new OrderLogic(); + + $orderLogic->optionUserID = $userID; + + list($resaultFlag, $data) = $orderLogic->getOrderDetail($orderID); + + if ($resaultFlag) { + return $this->success($data); + } else { + list($code, $msg) = $this->transErrMsg($data); + return $this->failed($msg, $code); + } + + } + + //用户收货 + public function completeOrder(Request $request) + { + $userID = Auth::user()->id; + if (!$userID) { + return $this->failed('非法的用户请求', 401); + } + + // 参数校验 + $validator = Validator::make($request->all(), + [ + 'orderID' => 'required', + ], + [ + 'orderID.required' => 'orderID缺失', + ] + ); + if ($validator->fails()) { + return $this->failed($validator->errors(), 401); + } + + $orderID = $request->input('orderID'); + $orderLogic = new OrderLogic(); + + $orderLogic->optionUserID = $userID; + + list($resaultFlag, $data) = $orderLogic->completeOrder($orderID); + if ($resaultFlag) { + return $this->success($data); + } else { + list($code, $msg) = $this->transErrMsg($data); + return $this->failed($msg, $code); + } + + } + + protected function transErrMsg($errMsg, $code = 401) + { + $msg = $errMsg; + + if (is_string($errMsg)) { + $pos = strpos($errMsg, '|'); + + if ($pos !== false) { + $code = substr($errMsg, 0, $pos); + $msg = substr($errMsg, $pos + 1); + } + } + + return [$code, $msg]; + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php new file mode 100644 index 0000000..6a247fe --- /dev/null +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -0,0 +1,32 @@ +middleware('guest'); + } +} diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php new file mode 100644 index 0000000..b2ea669 --- /dev/null +++ b/app/Http/Controllers/Auth/LoginController.php @@ -0,0 +1,39 @@ +middleware('guest')->except('logout'); + } +} diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php new file mode 100644 index 0000000..f77265a --- /dev/null +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -0,0 +1,71 @@ +middleware('guest'); + } + + /** + * Get a validator for an incoming registration request. + * + * @param array $data + * @return \Illuminate\Contracts\Validation\Validator + */ + protected function validator(array $data) + { + return Validator::make($data, [ + 'name' => 'required|string|max:255', + 'email' => 'required|string|email|max:255|unique:users', + 'password' => 'required|string|min:6|confirmed', + ]); + } + + /** + * Create a new user instance after a valid registration. + * + * @param array $data + * @return \App\User + */ + protected function create(array $data) + { + return User::create([ + 'name' => $data['name'], + 'email' => $data['email'], + 'password' => bcrypt($data['password']), + ]); + } +} diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php new file mode 100644 index 0000000..cf726ee --- /dev/null +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -0,0 +1,39 @@ +middleware('guest'); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..03e02a2 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,13 @@ + [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + // \Illuminate\Session\Middleware\AuthenticateSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + 'throttle:60,1', + 'bindings', + ], + ]; + + /** + * The application's route middleware. + * + * These middleware may be assigned to groups or used individually. + * + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + ]; +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000..033136a --- /dev/null +++ b/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,17 @@ +check()) { + return redirect('/home'); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..5a50e7b --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,18 @@ + 'FORWARDED', + Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR', + Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST', + Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT', + Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO', + ]; +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000..ad68c18 --- /dev/null +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ +$this->goods_id, + "type"=> $this->booth_type, + "title"=> $this->carousel_title, + "picUrl"=> config('filesystems.disks.oss.url').'/'.$this->carousel_img, + "info"=> $this->carousel_info, + "state"=> $this->state, + ]; + } +} diff --git a/app/Http/Resources/DefaultAddr.php b/app/Http/Resources/DefaultAddr.php new file mode 100644 index 0000000..caf21b2 --- /dev/null +++ b/app/Http/Resources/DefaultAddr.php @@ -0,0 +1,36 @@ + $this->id, + 'provinceId' => $this->aid_p, + 'cityId' => $this->aid_c, + 'districtId' => $this->aid_a, + 'provinceStr' => $this->province, + 'cityStr' => $this->city, + 'areaStr' => $this->area, + 'linkMan' => $this->true_name, + 'address' => $this->addr, + 'mobile' => $this->mobile, + 'code' => $this->postcode, + 'isDefault' => $this->is_default, + 'sid' => $this->sid, + 'did' => $this->did, + 'school_name' => $this->school_name, + 'dorm_name' => $this->dorm_name, + ]; + } +} diff --git a/app/Http/Resources/Good.php b/app/Http/Resources/Good.php new file mode 100644 index 0000000..5b58aee --- /dev/null +++ b/app/Http/Resources/Good.php @@ -0,0 +1,41 @@ +goods_description_pictures)) { + $pic = $this->goods_description_pictures; + foreach ($pic as $eachPic) { + $pics[] = [ + 'pic' => config('filesystems.disks.oss.url').'/'.$eachPic + ]; + } + } else { + $pics[] = [ + 'pic' => config('filesystems.disks.oss.url').'/'.$this->goods_main_image + ]; + } + return [ + 'id' => $this->id, + 'pics' => $pics, + 'name' => $this->goods_name, + 'minPrice' => $this->goods_price, + 'originalPrice' => $this->goods_marketprice, + 'numberOrders' => $this->goods_salenum, + 'pic' => config('filesystems.disks.oss.url').'/'.$this->goods_main_image, + 'stores' => $this->goods_storage, + ]; + } +} diff --git a/app/Http/Resources/GoodCollection.php b/app/Http/Resources/GoodCollection.php new file mode 100644 index 0000000..88acc29 --- /dev/null +++ b/app/Http/Resources/GoodCollection.php @@ -0,0 +1,30 @@ + $this->collection, +// 'links' => [ +// 'self' => 'link-value', +// ], +// ]; +// return [ +// 'id' => $this->id, +// 'goods_name' => $this->goods_name, +// ]; + + } +} diff --git a/app/Http/Resources/GoodDetail.php b/app/Http/Resources/GoodDetail.php new file mode 100644 index 0000000..7889852 --- /dev/null +++ b/app/Http/Resources/GoodDetail.php @@ -0,0 +1,63 @@ +goods_description_pictures)) { + $pic = $this->goods_description_pictures; + foreach ($pic as $eachPic) { + $pics[] = [ + 'pic' => config('filesystems.disks.oss.url').'/'.$eachPic + ]; + } + } else { + $pics[] = [ + 'pic' => config('filesystems.disks.oss.url').'/'.$this->goods_main_image + ]; + } + if (!empty($this->goods_carousel)) { + $carouselPic = $this->goods_carousel; + foreach ($carouselPic as $eachPic) { + $carouselPics[] = [ + 'pic' => config('filesystems.disks.oss.url').'/'.$eachPic + ]; + } + } else { + $carouselPics[] = [ + 'pic' => config('filesystems.disks.oss.url').'/'.$this->goods_main_image + ]; + } + + $content = ''; + foreach ($pics as $eachPic) { + $content .= '
'; + } + + return [ + 'id' => $this->id, + 'pics' => $pics, + 'carousel' => $carouselPics, + 'basicInfo' => [ + 'id' => $this->id, + 'name' => $this->goods_name, + 'minPrice' => $this->goods_price, + 'numberOrders' => $this->goods_salenum, + 'pic' => config('filesystems.disks.oss.url').'/'.$this->goods_main_image, + 'stores' => $this->goods_storage, + ], + 'logistics' =>1, // 需要填写收货地址 + 'content' => $content, + ]; + } +} diff --git a/app/Http/Resources/ProjectType.php b/app/Http/Resources/ProjectType.php new file mode 100644 index 0000000..10de0e2 --- /dev/null +++ b/app/Http/Resources/ProjectType.php @@ -0,0 +1,38 @@ +carousel_imgs)) { + $pic = $this->carousel_imgs; + foreach ($pic as $eachPic) { + $pics[] = config('filesystems.disks.oss.url').'/'.$eachPic; + + } + } + return [ + "id"=>$this->id, + "goods_name"=> $this->type_name, + "goods_desc"=> $this->type_desc, + "type_name"=> $this->type_name, + "title"=> $this->special_title, + "type_img"=> config('filesystems.disks.oss.url').'/'.$this->type_img, + "carousel_imgs"=> $pics, + "description"=> $this->description, + "salenum"=> $this->salenum, + "goods_price"=> $this->basal_price, + ]; + } +} diff --git a/app/Http/Resources/ShopAddress.php b/app/Http/Resources/ShopAddress.php new file mode 100644 index 0000000..6fa6427 --- /dev/null +++ b/app/Http/Resources/ShopAddress.php @@ -0,0 +1,35 @@ +$this->id, + "name"=> $this->user_name, + "country_id"=> $this->country_id, + "country"=> $this->country, + "province_id"=> $this->province_id, + "province_name"=> $this->province, + "city_id"=> $this->city_id, + "city_name"=> $this->city, + "district_id"=> $this->district_id, + "district_name"=> $this->district, + "address"=> $this->address, + "mobile"=> $this->mobile, + "is_default"=> $this->is_default, + "full_region"=> $this->province.' '.$this->city.' '.$this->district.' ' , + ]; + } + +} diff --git a/app/Http/Resources/ShopBrand.php b/app/Http/Resources/ShopBrand.php new file mode 100644 index 0000000..8b7214f --- /dev/null +++ b/app/Http/Resources/ShopBrand.php @@ -0,0 +1,37 @@ +list_pic_url)) { + $pic = $this->list_pic_url; + foreach ($pic as $eachPic) { + $pics[] = config('filesystems.disks.oss.url').'/'.$eachPic; + + } + } + return [ + "id"=>$this->id, + "name"=> $this->name, + "list_pic_url"=> $pics, + "simple_desc"=> $this->simple_desc, + "pic_url"=> config('filesystems.disks.oss.url').'/'.$this->pic_url, + "is_show"=> $this->is_show, + "floor_price"=> $this->floor_price, + "new_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->new_pic_url, + ]; + } + +} diff --git a/app/Http/Resources/ShopCart.php b/app/Http/Resources/ShopCart.php new file mode 100644 index 0000000..6963416 --- /dev/null +++ b/app/Http/Resources/ShopCart.php @@ -0,0 +1,34 @@ +$this->id, + "user_id"=> $this->uid, + "goods_id"=> $this->goods_id, + "goods_sn"=> $this->goods_sn, + "goods_name"=> $this->goods_name, + "market_price"=> $this->market_price, + "retail_price"=> $this->shop_goods->retail_price, + "number"=> $this->number, + "checked"=> $this->checked, + 'freight_price' => $this->shop_goods->freight_price, + "list_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->list_pic_url, + "primary_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->shop_goods->primary_pic_url, + ]; + } + +} diff --git a/app/Http/Resources/ShopCategory.php b/app/Http/Resources/ShopCategory.php new file mode 100644 index 0000000..d791778 --- /dev/null +++ b/app/Http/Resources/ShopCategory.php @@ -0,0 +1,35 @@ +id)); + return [ + "id"=>$this->id, + "name"=> $this->name, + "keywords"=> $this->keywords, + "front_desc"=> $this->front_desc, + "sort_order"=> $this->sort_order, + "banner_url"=> config('filesystems.disks.oss.url').'/'.$this->banner_url, + "icon_url"=> config('filesystems.disks.oss.url').'/'.$this->icon_url, + "img_url"=> config('filesystems.disks.oss.url').'/'.$this->img_url, + "wap_banner_url"=> config('filesystems.disks.oss.url').'/'.$this->img_url, + "level"=> $this->level, + "front_name"=> $this->front_name, + 'subCategoryList' =>$subCategoryList + ]; + } + +} diff --git a/app/Http/Resources/ShopCollect.php b/app/Http/Resources/ShopCollect.php new file mode 100644 index 0000000..26e165d --- /dev/null +++ b/app/Http/Resources/ShopCollect.php @@ -0,0 +1,27 @@ +$this->id, + "name"=> $this->shop_goods['goods_name'], + "value_id"=> $this->value_id, + "retail_price"=> $this->shop_goods['retail_price'], + "list_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->shop_goods['primary_pic_url'], + "goods_brief"=> $this->shop_goods['goods_brief'], + ]; + } + +} diff --git a/app/Http/Resources/ShopComment.php b/app/Http/Resources/ShopComment.php new file mode 100644 index 0000000..7f048e8 --- /dev/null +++ b/app/Http/Resources/ShopComment.php @@ -0,0 +1,47 @@ +get_comment_picture)) { + $pic = $this->get_comment_picture; + foreach ($pic as $eachPic) { + $pics[] = config('filesystems.disks.oss.url').'/'.$eachPic->pic_url; + + } + } + $user = [ + 'nickname' => 'T粉', + 'avatar' => '../../static/images/default.header.png' + ]; + if($this->user_id){ + $user = User::find($this->user_id); + } + return [ + "id"=>$this->id, + "value_id"=> $this->value_id, + 'nickname' => $user['nickname'], + 'avatar' => $user['avatar'], + "content"=> $this->content, + "user_id"=> $this->user_id, + "new_content"=> $this->new_content, + "pic_list"=> $pics, + "add_time"=>$this->created_at, + ]; + } + +} diff --git a/app/Http/Resources/ShopFootprint.php b/app/Http/Resources/ShopFootprint.php new file mode 100644 index 0000000..88d54f7 --- /dev/null +++ b/app/Http/Resources/ShopFootprint.php @@ -0,0 +1,28 @@ +$this->id, + "goods_name"=> $this->shop_goods->goods_name, + "primary_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->shop_goods->primary_pic_url, + "goods_brief"=> $this->shop_goods->goods_brief, + "retail_price"=> $this->shop_goods->retail_price, + "add_time"=> $this->add_time, + ]; + } + +} diff --git a/app/Http/Resources/ShopGoods.php b/app/Http/Resources/ShopGoods.php new file mode 100644 index 0000000..4a250b7 --- /dev/null +++ b/app/Http/Resources/ShopGoods.php @@ -0,0 +1,52 @@ +list_pic_url)) { + $pic = $this->list_pic_url; + foreach ($pic as $eachPic) { + $pics[] = config('filesystems.disks.oss.url').'/'.$eachPic; + + } + } + return [ + "id"=>$this->id, + "goods_name"=> $this->goods_name, + "goods_number"=> $this->goods_number, + "keywords"=> $this->keywords, + "goods_number"=> $this->goods_number, + "goods_brief"=> $this->goods_brief, + "goods_desc"=> $this->goods_desc, + "counter_price"=> $this->counter_price, + "extra_price"=> $this->extra_price, + "is_new"=> $this->is_new, + "goods_unit"=> $this->goods_unit, + "primary_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->primary_pic_url, + "list_pic_url"=> $pics, + "retail_price"=> $this->retail_price, + "sell_volume"=> $this->sell_volume, + "unit_price"=> $this->unit_price, + "promotion_desc"=> $this->promotion_desc, + "promotion_tag"=> $this->promotion_tag, + "vip_exclusive_price"=> $this->vip_exclusive_price, + "is_vip_exclusive"=> $this->is_vip_exclusive, + "is_limited"=> $this->is_limited, + "is_hot"=> $this->is_hot, + ]; + } + +} diff --git a/app/Http/Resources/ShopGoodsAttribute.php b/app/Http/Resources/ShopGoodsAttribute.php new file mode 100644 index 0000000..d099fc0 --- /dev/null +++ b/app/Http/Resources/ShopGoodsAttribute.php @@ -0,0 +1,25 @@ +$this->id, + "goods_id"=>$this->goods_id, + "name"=> $this->get_attribute->name, + "value"=> $this->value, + ]; + } + +} diff --git a/app/Http/Resources/ShopOrder.php b/app/Http/Resources/ShopOrder.php new file mode 100644 index 0000000..718e760 --- /dev/null +++ b/app/Http/Resources/ShopOrder.php @@ -0,0 +1,53 @@ + $this->id, + "order_sn" => $this->order_sn, + "order_status" => $this->order_status, + "shipping_status" => $this->shipping_status, + "pay_status" => $this->pay_status, + "consignee" => $this->consignee, + "country" => $this->country, + "city" => $this->city, + "district" => $this->district, + "address" => $this->address, + "mobile" => $this->mobile, + "postscript" => $this->postscript, + "pay_name" => $this->pay_name, + "pay_id" => $this->pay_id, + "actual_price" => $this->actual_price, + "order_price" => $this->order_price, + "goods_price" => $this->goods_price, + "add_time" => $this->add_time, + "confirm_time" => $this->confirm_time, + "pay_time" => $this->pay_time, + "coupon_price" => $this->coupon_price, + "order_status_text" => ShopOrderDB::getStatusDisplayMap()[$this->order_status], + 'full_region' => AddressLogic::getRegionNameById($this->province) .' '. AddressLogic::getRegionNameById($this->city).' '.AddressLogic::getRegionNameById($this->district), + "handleOption" => [ + 'pay' => ($this->order_status == ShopOrderDB::STATUS_WAIT_PAY) ? 1 : 0, + ], + // 附表信息 + "goodsList" => ShopOrderGoods::collection($this->orderGoods), + + ]; + } + +} diff --git a/app/Http/Resources/ShopOrderGoods.php b/app/Http/Resources/ShopOrderGoods.php new file mode 100644 index 0000000..0cf210a --- /dev/null +++ b/app/Http/Resources/ShopOrderGoods.php @@ -0,0 +1,26 @@ + $this->goods_name, + "number"=> $this->number, + "list_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->list_pic_url, + "actual_price"=> $this->actual_price, + ]; + } + +} diff --git a/app/Http/Resources/ShopTopic.php b/app/Http/Resources/ShopTopic.php new file mode 100644 index 0000000..22e3528 --- /dev/null +++ b/app/Http/Resources/ShopTopic.php @@ -0,0 +1,39 @@ +item_pic_url)) { + $pic = $this->item_pic_url; + foreach ($pic as $eachPic) { + $pics[] = config('filesystems.disks.oss.url').'/'.$eachPic; + + } + } + return [ + "id"=>$this->id, + "title"=> $this->title, + "content"=> $this->content, + "avatar"=> config('filesystems.disks.oss.url').'/'.$this->avatar, + "price_info"=> $this->price_info, + "subtitle"=> $this->subtitle, + "read_count"=> $this->read_count, + "scene_pic_url"=> config('filesystems.disks.oss.url').'/'.$this->scene_pic_url, + "item_pic_url"=> $pics, + "sort_order"=> $this->sort_order, + ]; + } + +} diff --git a/app/Http/Resources/Special.php b/app/Http/Resources/Special.php new file mode 100644 index 0000000..c9833a5 --- /dev/null +++ b/app/Http/Resources/Special.php @@ -0,0 +1,25 @@ +$this->id, + "class_id"=> $this->class_id, + "title"=> $this->special_title, + "icon"=> config('filesystems.disks.oss.url').'/'.$this->icon, + "link_url"=> $this->link_url, + ]; + } +} diff --git a/app/Logics/AddressLogic.php b/app/Logics/AddressLogic.php new file mode 100644 index 0000000..21ed6a3 --- /dev/null +++ b/app/Logics/AddressLogic.php @@ -0,0 +1,51 @@ +$parent_id]); + } + + /** + * 获取收货地址列表 + * @param [int] $where + */ + static public function getAddrList($where) + { + $list = ShopAddress::getList($where); + return ShopAddressResource::collection($list); + } + + static public function getOneAddr($addressId,$uid = 0){ + + if(empty($addressId) && $uid){ + $info = ShopAddress::getDefault($uid); + }else{ + $info = ShopAddress::getOne(['id' =>$addressId]); + } + if(empty($info)){ + return ['id'=>-1]; + } + return new ShopAddressResource($info); + } + + static public function getRegionNameById($addressId){ + $where['id'] = $addressId; + $region = ShopRegion::getOne($where); + return $region['name']; + } +} diff --git a/app/Logics/Buy.php b/app/Logics/Buy.php new file mode 100644 index 0000000..4c2f861 --- /dev/null +++ b/app/Logics/Buy.php @@ -0,0 +1,237 @@ +_user_id = $user_id; + $this->_order_data = $buy_info; + $this->_post_data = $request; + $this->_address_data = $address; + try { + DB::beginTransaction(); + //第1步 执行下单 + $order_info = $this->_createOrderStep1(); + return $order_info; + } catch (\Exception $e) { + DB::rollBack(); + return ['error' => $e->getMessage()]; + } + + } + + + /** + * 生成订单 + * @param array $input + * @throws Exception + * @return array array(支付单sn,订单列表) + */ + private function _createOrderStep1() + { + $paycode = $this->makePaySn($this->_user_id); + //订单数据 + $order_insert = array(); + $order_insert['order_sn'] = $this->makeOrderSn($paycode); // 订单编号 + $order_insert['uid'] = $this->_user_id; + $order_insert['pay_name'] = '微信支付';// 目前只有微信支付 + $order_insert['pay_id'] = 1;// 目前只有微信支付 + $order_insert['order_status'] = ShopOrder::STATUS_WAIT_PAY;// 待支付 + $order_insert['shipping_status'] = ShopOrder::SHIPING_STATUS_WAIT_SEND;// 待发货 + $order_insert['pay_status'] = ShopOrder::PAY_WAIT;// 待支付下单 + $order_insert['actual_price'] = $this->_order_data['actualPrice'];// 订单实际要支付的金额 + $order_insert['order_price'] = $this->_order_data['orderTotalPrice'];// 订单总价 + $order_insert['goods_price'] = $this->_order_data['goodsTotalPrice'];// 商品总价 + $order_insert['freight_price'] = $this->_order_data['freightPrice'];// 配送费用 + $order_insert['coupon_id'] = $this->_order_data['checkedCouponId'];// 使用的优惠券id + $order_insert['coupon_price'] = $this->_order_data['couponPrice'];// 优惠金额 + $order_insert['add_time'] = Carbon::now();// 订单生成时间 + + // 收货地址 + $order_insert['country'] = $this->_address_data['country_id'];// 国家id 1 中国 + $order_insert['province'] = $this->_address_data['province_id'];// 省市id + $order_insert['city'] = $this->_address_data['city_id'];// 城市id + $order_insert['district'] = $this->_address_data['district_id'];// 区县、街道id + $order_insert['address'] = $this->_address_data['address'];// 详细地址 + $order_insert['consignee'] = $this->_address_data['user_name'];// 收件人 + $order_insert['mobile'] = $this->_address_data['mobile'];// 收件人手机号 + + //用户留言 + $order_insert['postscript'] = empty($this->_post_data->remark) ? '用户无留言' : $this->_post_data->remark; + + $order_goods_insert = array(); // 订单附表的数据 + + // 执行插入 + $order_model = ShopOrder::create($order_insert); + if (!$order_model->id) { + throw new \Exception('订单保存失败[未生成支付单]'); + } + foreach ($this->_order_data['checkedGoodsList'] as $k => $va) { + if ($va['number']) { + $order_goods_insert[] = [ + 'order_id' => $order_model->id, + 'goods_id' => $va['goods_id'], + 'goods_name' => $va['goods_name'], + 'retail_price' => $va['retail_price'], + 'market_price' => $va['market_price'], + 'list_pic_url' => $va['list_pic_url'] ? $va['list_pic_url'] : '', + 'number' => $va['number'], + ]; + $re1 = $this->addSaleNum($va['goods_id'], $va['number']); + if (!$re1) { + throw new \Exception('订单保存失败[商品库存不足]'); + } + } + } + $order_goods_model = DB::table('shop_order_goods')->insert($order_goods_insert); + // 清除购物车商品 + $cartRe = CartLogic::clearCart($this->_user_id); + if ($order_goods_model) { + DB::commit(); + return $order_model->toArray(); + } else { + $this->pay_log('order_goods_insert.error' . var_export($order_goods_insert, true)); + throw new \Exception('订单商品保存失败'); + } + } + + public function addSaleNum($id, $num = 1) + { + $goods = ShopGoods::lockForUpdate()->find($id); + if (empty($goods) || $goods->goods_number < $num) { + return false; + } + $goods->sell_volume = $goods->sell_volume + $num; + $goods->goods_number = $goods->goods_number - $num; + return $goods->save(); + } + + /** + * 生成支付单编号(两位随机 + 从2000-01-01 00:00:00 到现在的秒数+微秒+会员ID%1000),该值会传给第三方支付接口 + * 长度 =2位 + 10位 + 3位 + 3位 = 18位 + * 1000个会员同一微秒提订单,重复机率为1/100 + * @return string + */ + public function makePaySn($member_id) + { + return mt_rand(10, 99) + . sprintf('%010d', time() - 946656000) + . sprintf('%03d', (float)microtime() * 1000) + . sprintf('%03d', (int)$member_id % 1000); + } + + /** + * 订单编号生成规则 + * 生成订单编号(年取1位 + $pay_id取13位 + 第N个子订单取2位) + * 1000个会员同一微秒提订单,重复机率为1/100 + * @param $pay_sn + * @return string + */ + public function makeOrderSn($pay_sn) + { + //记录生成子订单的个数,如果生成多个子订单,该值会累加 + static $num; + if (empty($num)) { + $num = 1; + } else { + $num++; + } + return (date('y', time()) % 9 + 1) . sprintf('%013d', $pay_sn) . sprintf('%02d', $num); + } + + + // 支付第一步 + public function pay_step1($attributes, $openid) + { + $time = time(); + $app = Factory::payment(config('wechat.payment.default')); + $result = $app->order->unify([ + 'body' => '小T商城', + 'detail' => '小T商城的订单', + 'out_trade_no' => $attributes['order_sn'], + 'total_fee' => $attributes['actual_price'] * 100, + 'trade_type' => 'JSAPI', + 'openid' => $openid, + ]); + $this->pay_log('order:' . var_export($attributes, true) . ' result:' . var_export($result, true)); + if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') { + // 如果成功生成统一下单的订单,那么进行二次签名 二次签名的参数必须与下面相同 + $params = [ + 'appId' => config('wechat.payment.default.app_id'), + 'timeStamp' => time(), + 'nonceStr' => $result['nonce_str'], + 'package' => 'prepay_id=' . $result['prepay_id'], + 'signType' => 'MD5', + ]; + $params['paySign'] = generate_sign($params, config('wechat.payment.default.key')); + return $params; + } else { + // 返回错误信息 + $this->pay_log('json_prepare' . var_export($result, true)); + return false; + } + } + + /** + * 记录日志 + */ + private function pay_log($msg) + { + $msg = date('H:i:s') . "|" . $msg . "\r\n"; + $msg .= '| GET:' . var_export($_GET, true) . "\r\n"; + file_put_contents('./log/pay' . date('Y-m-d') . ".log", $msg, FILE_APPEND); + } + + +} diff --git a/app/Logics/CartLogic.php b/app/Logics/CartLogic.php new file mode 100644 index 0000000..2696951 --- /dev/null +++ b/app/Logics/CartLogic.php @@ -0,0 +1,115 @@ +id)) { + $user_id = 0; + } else { + $user_id = \Auth::user()->id; + } + + $newCart = new ShopCart(); + $info = $newCart->where(['goods_id' => $goodsInfo->id])->first(); + if (!empty($info->goods_id)) { + $info->number = $info->number + $number; + // 库存超额判断 + if ($info->number > $goodsInfo->goods_number) { + $info->number = $goodsInfo->goods_number; + } + return $info->save(); + } + $newCart->uid = $user_id; + $newCart->goods_id = $goodsInfo->id; + $newCart->goods_sn = $goodsInfo->goods_sn; + $newCart->goods_name = $goodsInfo->goods_name; + $newCart->market_price = $goodsInfo->counter_price; + $newCart->retail_price = $goodsInfo->retail_price; + $newCart->number = $number; + $newCart->list_pic_url = $goodsInfo->primary_pic_url; + return $newCart->save(); + } + + // 获取购物车列表 + public static function getCartList($where) + { + $list = ShopCart::where($where)->get(); + $outData['cartList'] = ShopCartResource::collection($list); + $outData['cartTotal']['checkedGoodsCount'] = ShopCart::getGoodsCount($where); + $outData['cartTotal']['checkedGoodsAmount'] = ShopCart::getGoodsAmountCount($where); + return $outData; + } + + public static function getCheckedGoodsList($uid) + { + $cartList = ShopCart::getCheckedGoodsList($uid); + $checkedGoodsList = ShopCartResource::collection($cartList); + $goodsTotalPrice = 0.00; + foreach($checkedGoodsList as $goodsVal){ + $goodsTotalPrice = PriceCalculate($goodsTotalPrice,'+',PriceCalculate($goodsVal['retail_price'],'*',$goodsVal['number'])); + } + $freightPrice = array_sum(array_pluck($checkedGoodsList, 'freight_price')); + return [ + 'checkedGoodsList' => $checkedGoodsList,// 商品列表 + 'goodsTotalPrice' => $goodsTotalPrice,// 商品总价格 + 'freightPrice' => $freightPrice,// 商品运费总和 + 'orderTotalPrice' => PriceCalculate($goodsTotalPrice,'+',$freightPrice) + ]; + } + + public static function getBuyGoodsById($goodsId,$number = 1,$format = 1) + { + $goodsInfos = ShopGoods::getGoodsList(['id'=>$goodsId]); + foreach ($goodsInfos as $item_info){ + $checkedGoodsList[] = [ + "goods_id"=> $item_info->id, + "goods_name"=> $item_info->goods_name, + "market_price"=> $item_info->counter_price, + "retail_price"=> $item_info->retail_price, + "number"=> $number, + 'freight_price' => $item_info->freight_price, + "primary_pic_url"=> $format ? config('filesystems.disks.oss.url').'/'.$item_info->primary_pic_url:$item_info->primary_pic_url, + "list_pic_url"=> $format ? config('filesystems.disks.oss.url').'/'.$item_info->primary_pic_url:$item_info->primary_pic_url, + ]; + } + $goodsTotalPrice = 0.00; + foreach($checkedGoodsList as $goodsVal){ + $goodsTotalPrice = PriceCalculate($goodsTotalPrice,'+',PriceCalculate($goodsVal['retail_price'],'*',$number)); + } + $freightPrice = array_sum(array_pluck($checkedGoodsList, 'freight_price')); + return [ + 'checkedGoodsList' => $checkedGoodsList,// 商品列表 + 'goodsTotalPrice' => $goodsTotalPrice,// 商品总价格 + 'freightPrice' => $freightPrice,// 商品运费总和 + 'orderTotalPrice' => PriceCalculate($goodsTotalPrice,'+',$freightPrice) + ]; + } + + // 清空购物车 + public static function clearCart($uid){ + return ShopCart::where([ + 'uid' => $uid, + 'checked'=> ShopCart::STATE_CHECKED + ])->delete(); + } + +} diff --git a/app/Logics/GoodsLogic.php b/app/Logics/GoodsLogic.php new file mode 100644 index 0000000..8cc6d49 --- /dev/null +++ b/app/Logics/GoodsLogic.php @@ -0,0 +1,32 @@ +orderBy('sort', 'asc')->paginate($limit))->additional(['code' =>200,'status' => 'success']); + } + + static public function getGoodsDetail($where){ + } + +} diff --git a/app/Logics/OrderLogic.php b/app/Logics/OrderLogic.php new file mode 100644 index 0000000..f4e98d7 --- /dev/null +++ b/app/Logics/OrderLogic.php @@ -0,0 +1,32 @@ +where($where)->first(); + return new ShopOrderResource($info); + } + + public function completeOrder($orderID) + { + } +} \ No newline at end of file diff --git a/app/Logics/ProjectControl.php b/app/Logics/ProjectControl.php new file mode 100644 index 0000000..ec96695 --- /dev/null +++ b/app/Logics/ProjectControl.php @@ -0,0 +1,198 @@ + %s "; + static public $transformHtmlLI = "
  • %s
  • "; + + // 获取项目类型json格式 + static public function getJsonProjectTypes() + { + return ProjectTypeResource::collection(ProjectType::where([ + ['status', '=', ProjectType::STATUS_ON] + ])->orderBy('sort', 'ASC')->get()); + } + + // 拼装获取项目 function_type model dot + static public function getJsonProjectGoodsByTypeId($type_id) + { + // 添加缓存 + $projectGoodsInfo = Cache::get(static::PROJECT_GOODS_CACHE_KEY); + if (!$projectGoodsInfo) { + $dbProjectFuncTypes = static::getProjectFuncTypesByOneLevel([$type_id, 0]); + $dbProjectFuncTypes = array_column($dbProjectFuncTypes->toArray(), null, 'id'); + foreach ($dbProjectFuncTypes as $funcTypeKey => &$funcTypeVal) { + $modelsTmp = static::getProjectModelsByOneLevel([$funcTypeVal['id']]); + $modelsTmp = array_column($modelsTmp->toArray(), null, 'id'); + foreach ($modelsTmp as $modelsTmpKey => &$modelsTmpVal) { + $tmpDots = static::getProjectDotByOneLevel([$modelsTmpVal['id']]); + $modelsTmpVal['dots'] = array_column($tmpDots->toArray(), null, 'id'); + } + $funcTypeVal['models'] = $modelsTmp; + } + $expiresAt = Carbon::now()->addMinutes(120);// 缓存2个小时 + Cache::put(static::PROJECT_GOODS_CACHE_KEY, \GuzzleHttp\json_encode($dbProjectFuncTypes), $expiresAt); + return $dbProjectFuncTypes; + } + return \GuzzleHttp\json_decode($projectGoodsInfo); + + } + + // 获取项目类型 + static public function getProjectTypes($form = 1) + { + $default = []; + if($form){ + $default = ['-1'=>'请选择','0' => '全部']; + }else{ + $default = ['0' => '全部']; + } + $dbProjectTypes = ProjectType::pluck('type_name', 'id')->all(); + $projectTypes = $default + $dbProjectTypes; + return $projectTypes; + } + + // 获取项目功能分类管理 一级操作 + static public function getProjectFuncTypesByOneLevel($type_id = []) + { + if (count($type_id) == 1 && in_array(0, $type_id)) { + return ProjectFunctype::where([ + ['status', '=', ProjectFunctype::STATUS_ON] + ])->orderBy('sort', 'ASC')->get(); + } + $dbProjectFuncTypes = ProjectFunctype::where([ + ['status', '=', ProjectFunctype::STATUS_ON] + ])->orderBy('sort', 'ASC')->whereIn('type_id', $type_id)->get(); + return $dbProjectFuncTypes; + } + + // 获取项目功能模块管理 一级操作 + static public function getProjectModelsByOneLevel($functype_id = []) + { + if (in_array(0, $functype_id)) { + return ProjectModel::where([ + ['status', '=', ProjectModel::STATUS_ON] + ])->orderBy('sort', 'ASC')->get(); + } + $dbProjectModels = ProjectModel::where([ + ['status', '=', ProjectModel::STATUS_ON] + ])->orderBy('sort', 'ASC')->whereIn('functype_id', $functype_id)->get(); + return $dbProjectModels; + } + + // 获取功能点 + static public function getProjectDotByOneLevel($model_id = []) + { + if (in_array(0, $model_id)) { + return ProjectFuncdot::where([ + ['status', '=', ProjectFuncdot::STATUS_ON] + ])->orderBy('sort', 'ASC')->get(); + } + $dbProjectModels = ProjectFuncdot::where([ + ['status', '=', ProjectFuncdot::STATUS_ON] + ])->orderBy('sort', 'ASC')->whereIn('model_id', $model_id)->get(); + return $dbProjectModels; + } + + // 转换成商城商品 + static public function transform($type_id,$projectGoods){ + $projectTypeInfo = ProjectType::find($type_id);// 项目类型信息 + if(!$type_id || !$projectGoods || empty($projectTypeInfo)){ + return 0; + } + $funcTypeIds =[]; + $modelIds = []; + $dotIds = []; + $descHtml = ''; + $checkedProductPrice = $projectTypeInfo->basal_price;// 真实零售价格 + $checkedShowPrice = $projectTypeInfo->basal_price;// 展示价格 + foreach($projectGoods as $proVal){ + if(!empty($proVal['checkdotsNum']) && !empty($proVal['models'])){ + $funcTypeIds[] = $proVal['id']; + $modelsHtml = ''; + foreach($proVal['models'] as $modelVal){ + if(empty($modelVal['dots'])){ + continue; + } + $dotsHtml = ''; + foreach($modelVal['dots'] as $dotsVal){ + if(!empty($dotsVal['checked'])){ + if(!in_array($dotsVal['model_id'],$modelIds)){ + $modelIds[] = $dotsVal['model_id']; + } + $dotIds[] = $dotsVal['id']; + $checkedProductPrice = PriceCalculate($checkedProductPrice,'+',$dotsVal['discount_price']); + $checkedShowPrice = PriceCalculate($checkedShowPrice,'+',$dotsVal['price']); + $dotsHtml .= sprintf(self::$transformHtmlLI,$dotsVal['funcdot_name']); + } + } + $dotsHtml = sprintf(self::$transformHtml,$dotsHtml); + $modelsHtml .= sprintf(self::$transformHtmlLI,$modelVal['model_name']); + $modelsHtml .=$dotsHtml; + } + $modelsHtml = sprintf(self::$transformHtml,$modelsHtml,''); + $descHtml .= sprintf(self::$transformHtmlLI,$proVal['functype_name']); + $descHtml .= $modelsHtml; + $descHtml = sprintf(self::$transformHtml,$descHtml); + } + } + sort($funcTypeIds);sort($modelIds);sort($dotIds); + $goods_sn = md5($type_id.'_'.implode("_",$funcTypeIds).implode("_",$modelIds).implode("_",$dotIds)); + $goodsInfo = ShopGoods::getGoodsDetail(['goods_sn'=>$goods_sn]); + if($goodsInfo){ + return $goodsInfo; + } + + $newGoods = new ShopGoods(); + $newGoods->category_id = 0; // 分类id + $newGoods->goods_name = $projectTypeInfo->type_name; // 商品名称 + $newGoods->brand_id = $projectTypeInfo->brand_id; //品牌id + $newGoods->is_on_sale = ShopGoods::STATE_ON_SALE; // 是否上架 + $newGoods->goods_number = 100; // 商品库存量 + $newGoods->primary_pic_url = $projectTypeInfo->type_img; // 商品主图 + $newGoods->list_pic_url = $projectTypeInfo->carousel_imgs; // 商品列表图 + $newGoods->keywords = $projectTypeInfo->type_name; // 商品关键词 + $newGoods->goods_brief = $projectTypeInfo->type_desc; // 商品摘要 + $newGoods->goods_sn = $goods_sn;// 商品编号 + $newGoods->goods_desc = $descHtml; // 商品描述 + $newGoods->counter_price = $checkedShowPrice; // 专柜价格 + $newGoods->retail_price = $checkedProductPrice; // 零售价格 + $newGoods->promotion_desc = '';// 促销描述 + $newGoods->promotion_tag = '';// 促销标签 + $newGoods->vip_exclusive_price = $checkedProductPrice;// 会员专享价 + $newGoods->is_vip_exclusive = ShopGoods::STATE_NOT_VIP;// 是否是会员专属 + $newGoods->is_limited = ShopGoods::STATE_SALE_NOT_LIMIT;// 是否限购 + $newGoods->save(); + return $newGoods; + } + + + // 获取项目类型 + static public function getJsonForProjectTypes() + { + $dbProjectTypes = ProjectType::select('type_name as text', 'id')->where( + ['status'=> ProjectType::STATUS_ON] + )->get()->toArray(); + $projectTypes = array_merge([['id'=>'-1','text'=> '请选择'],['id'=>'0','text' => '全部']], $dbProjectTypes); + return $projectTypes; + } +} \ No newline at end of file diff --git a/app/Logics/ShopCommentLogic.php b/app/Logics/ShopCommentLogic.php new file mode 100644 index 0000000..b134b92 --- /dev/null +++ b/app/Logics/ShopCommentLogic.php @@ -0,0 +1,32 @@ +additional(['code' =>200,'status' => 'success']); + } +} diff --git a/app/Logics/ShopGoodsLogic.php b/app/Logics/ShopGoodsLogic.php new file mode 100644 index 0000000..bc7bac8 --- /dev/null +++ b/app/Logics/ShopGoodsLogic.php @@ -0,0 +1,122 @@ +count(); + } + + static public function getGoodsCategory($where) + { + $currentCategory = ShopCategory::where($where)->first(); + if(empty($currentCategory)){ + return false; + } + $brotherWhere = ['parent_id' => $currentCategory['parent_id']]; + $brotherCategory = ShopCategory::getCategoryList($brotherWhere); + return [ + 'brotherCategory' => ShopCategoryResource::collection($brotherCategory), + 'currentCategory' => new ShopCategoryResource($currentCategory) + ]; + } + + // 获取商品列表 + static public function getGoodsList($where,$pagesize='',$order='sort_order asc') + { + $goodsList = ShopGoods::getGoodsList($where,$pagesize,$order); + if(! $goodsList){ + return false; + } + return ShopGoodsResource::collection($goodsList)->additional(['code' =>200,'status' => 'success']); + } + + // 获取商品详情 + static public function getGoodsDetail($where){ + $goodsDetail = ShopGoods::getGoodsDetail($where); + return new ShopGoodsResource($goodsDetail); + } + + // 获取商品的属性参数信息 + static public function getGoodsAttribute($where){ + $goodsAttribute = ShopGoodsAttribute::getGoodsAttribute($where); + return ShopGoodsAttributeResource::collection($goodsAttribute); + } + + // 获取商品的问题描述信息 + static public function getGoodsIssue($where){ + $goodsAttribute = ShopGoodsIssue::getGoodsIssue($where); + return $goodsAttribute; + } + + // 收藏商品状态查询 + static public function userCollectStatus($goods_id){ + if(empty(\Auth::user()->id)){ + return 0; + } + $user_id = \Auth::user()->id; + $info = ShopCollect::getCollectDetail([ + 'type_id' => 0, + 'value_id' => $goods_id, + 'user_id' => $user_id, + ]); + if(empty($info['is_attention'])){ + return 0; + } + return 1; + } + + // 获取关联商品 + static public function getRelatedGoods($where){ + $goodsList = ShopGoods::where($where)->inRandomOrder()->take(20)->get(); + return ShopGoodsResource::collection($goodsList); + } + + // 添加商品足迹 + static public function addFootprint($goods_id){ + try{ + if (empty(\Auth::user()->id)) { + $uid = 0; + } else { + $uid = \Auth::user()->id; + } + if(empty($goods_id) || empty($uid)){ + return; + } + $newModel = new ShopFootprint(); + $newModel->goods_id = $goods_id; + $newModel->uid = $uid; + $newModel->add_time = Carbon::now(); + $newModel->save(); + }catch (\Exception $e){ + // 足迹报错失败 + } + } + + +} diff --git a/app/Logics/ShopIssueLogic.php b/app/Logics/ShopIssueLogic.php new file mode 100644 index 0000000..4af1f57 --- /dev/null +++ b/app/Logics/ShopIssueLogic.php @@ -0,0 +1,23 @@ + [ + 'value' => self::ISDEFAULT_YES, + 'text' => self::ISDEFAULT_YES_STRING, + ], + 'off' => [ + 'value' => self::ISDEFAULT_NO, + 'text' => self::ISDEFAULT_NO_STRING, + ], + ]; + } + + public static function getIsDefaultDisplayMap() + { + return [ + self::ISDEFAULT_YES => self::ISDEFAULT_YES_STRING, + self::ISDEFAULT_NO => self::ISDEFAULT_NO_STRING, + ]; + } + + public static function getStateDisplayMap() + { + return [ + self::STATE_NULL => self::STATE_NULL_STRING, + self::STATE_INVALID => self::STATE_INVALID_STRING, + self::STATE_VALID => self::STATE_VALID_STRING, + ]; + } + + /** + * 关联学校 + * @return \Illuminate\Database\Eloquent\Relations\HasOne + */ + public function get_school(){ + return $this->hasOne('App\Models\School','id','sid'); + } + + /** + * 关联宿舍 + * @return \Illuminate\Database\Eloquent\Relations\HasOne + */ + public function get_dorm(){ + return $this->hasOne('App\Models\Dorm','id','did'); + } + + /** + * 获取默认收获地址 + * @return DefaultAddr + */ + public static function getAddr($where){ + return new DefaultAddr(Address::where($where)->first()); + } + + /** + * 获取地区列表 + * @return DefaultAddr + */ + public static function getAddrList($where){ + return DefaultAddr::collection(Address::where($where)->get()); + } + +} diff --git a/app/Models/Addrjson.php b/app/Models/Addrjson.php new file mode 100644 index 0000000..65c96e7 --- /dev/null +++ b/app/Models/Addrjson.php @@ -0,0 +1,18 @@ +get('q'); + return User::where('name', 'like', "%$q%")->paginate(null, ['id', 'name as text']); + + } +} diff --git a/app/Models/Carousel.php b/app/Models/Carousel.php new file mode 100644 index 0000000..6d51143 --- /dev/null +++ b/app/Models/Carousel.php @@ -0,0 +1,64 @@ +take(static::USE_NUM)->get()); + } + + public static function getBoothTypeDisplayMap() + { + return [ + self::BOOTH_TYPE_HOME => self::BOOTH_TYPE_HOME_STRING, + self::BOOTH_TYPE_HOT => self::BOOTH_TYPE_HOT_STRING, + self::BOOTH_TYPE_NEW => self::BOOTH_TYPE_NEW_STRING, + ]; + } + + public static function getStateDisplayConfig() + { + return [ + 'on' => [ + 'value' => self::STATE_NORMAL, + 'text' => self::STATE_NORMAL_STRING, + ], + 'off' => [ + 'value' => self::STATE_BANNED, + 'text' => self::STATE_BANNED_STRING, + ] + ]; + } +} diff --git a/app/Models/Classes.php b/app/Models/Classes.php new file mode 100644 index 0000000..df9df28 --- /dev/null +++ b/app/Models/Classes.php @@ -0,0 +1,76 @@ +setParentColumn('class_pid'); + $this->setOrderColumn('class_level'); + $this->setTitleColumn('class_name'); + } + + public function goods() + { + return $this->hasMany(Good::class); + } + + public static function getStateDisplayMap() + { + return [ + self::STATE_INACTIVE => self::STATE_INACTIVE_STRING, + self::STATE_ACTIVE => self::STATE_ACTIVE_STRING + ]; + } + + public static function getStateDisplayConfig() + { + return [ + 'on' => [ + 'text' => self::STATE_ACTIVE_STRING, + ], + 'off' => [ + 'text' =>self::STATE_INACTIVE_STRING, + ] + ]; + } + + public static function getAllClasses($noRoot = false) + { + $classes = Classes::all(['id', 'class_name']); + + $result = []; + + if (!$noRoot) { + $result = [ + 0 => 'root' + ]; + } else { + $result = [ + 0 => 'null' + ]; + } + foreach ($classes as $eachClass) { + $result[$eachClass->id] = $eachClass->class_name; + } + + return $result; + } +} diff --git a/app/Models/Good.php b/app/Models/Good.php new file mode 100644 index 0000000..cb65a2b --- /dev/null +++ b/app/Models/Good.php @@ -0,0 +1,82 @@ +belongsTo(Classes::class); + } + + public static function getStateDispayMap() + { + return [ + self::STATE_OFFSHELF => self::STATE_OFFSHELF_STRING, + self::STATE_NORMAL => self::STATE_NORMAL_STRING, + self::STATE_BANNED => self::STATE_BANNED_STRING, + ]; + } + + public function getGoodsDescriptionPicturesAttribute($pictures) + { + if (is_string($pictures)) { + return json_decode($pictures, true); + } + + return $pictures; + } + + public function setGoodsDescriptionPicturesAttribute($pictures) + { + if (is_array($pictures)) { + $this->attributes['goods_description_pictures'] = json_encode($pictures); + } + } + + public function getGoodsCarouselAttribute($pictures) + { + if (is_string($pictures)) { + return json_decode($pictures, true); + } + + return $pictures; + } + + public function setGoodsCarouselAttribute($pictures) + { + if (is_array($pictures)) { + $this->attributes['goods_carousel'] = json_encode($pictures); + } + } + + public static function getAllGoodsID() + { + $allGoods = self::all('id')->toArray(); + $results = []; + foreach ($allGoods as $eachGood) { + $results[$eachGood['id']] = $eachGood['id']; + } + return $results; + } + + public static function getGoodInfoByID($id) + { + $result = Good::find($id); + if ($result) { + return new GoodDetail($result); + } else { + return false; + } + } +} diff --git a/app/Models/News.php b/app/Models/News.php new file mode 100644 index 0000000..33934c2 --- /dev/null +++ b/app/Models/News.php @@ -0,0 +1,17 @@ +hasMany(news::class); + } + +} diff --git a/app/Models/ProjectFuncdot.php b/app/Models/ProjectFuncdot.php new file mode 100644 index 0000000..74119b0 --- /dev/null +++ b/app/Models/ProjectFuncdot.php @@ -0,0 +1,24 @@ +hasOne('App\models\ProjectModel', 'id', 'model_id'); + } + //定义功能分类表的关系:一对一 + public function FunctypeFid() + { + return $this->hasOne('App\models\ProjectFunctype', 'id', 'functype_id'); + } + +} diff --git a/app/Models/ProjectFunctype.php b/app/Models/ProjectFunctype.php new file mode 100644 index 0000000..9414612 --- /dev/null +++ b/app/Models/ProjectFunctype.php @@ -0,0 +1,11 @@ +hasOne('App\models\ProjectFunctype', 'id', 'fid'); + } + +} diff --git a/app/Models/ProjectType.php b/app/Models/ProjectType.php new file mode 100644 index 0000000..fcbebb1 --- /dev/null +++ b/app/Models/ProjectType.php @@ -0,0 +1,32 @@ +first()); + } + + public function getCarouselImgsAttribute($pictures) + { + if (is_string($pictures)) { + return json_decode($pictures, true); + } + + return $pictures; + } + + public function setCarouselImgsAttribute($pictures) + { + if (is_array($pictures)) { + $this->attributes['carousel_imgs'] = json_encode($pictures); + } + } +} \ No newline at end of file diff --git a/app/Models/ShopAddress.php b/app/Models/ShopAddress.php new file mode 100644 index 0000000..222dc3a --- /dev/null +++ b/app/Models/ShopAddress.php @@ -0,0 +1,33 @@ +self::STATUS_ON],$where); + return static::where($where)->get(); + } + + // 获取默认地址 + static public function getDefault($uid){ + $where = array_merge(['status'=>self::STATUS_ON,'is_default'=>self::DEFAULT_ON,'uid'=>$uid]); + return static::where($where)->first(); + } + + // 获取单一地址 + static public function getOne($where){ + $where = array_merge(['status'=>self::STATUS_ON],$where); + return static::where($where)->first(); + } +} diff --git a/app/Models/ShopAttribute.php b/app/Models/ShopAttribute.php new file mode 100644 index 0000000..316f347 --- /dev/null +++ b/app/Models/ShopAttribute.php @@ -0,0 +1,13 @@ + self::STATE_ENABLED_STRING, + self::STATE_NOT_ENABLED => self::STATE_NOT_ENABLED_STRING, + ]; + } + +} diff --git a/app/Models/ShopBrand.php b/app/Models/ShopBrand.php new file mode 100644 index 0000000..96d0e11 --- /dev/null +++ b/app/Models/ShopBrand.php @@ -0,0 +1,82 @@ +belongsTo(Classes::class); + } + + public static function getStateDispayMap() + { + return [ + self::STATE_OFFSHOW => self::STATE_OFFSHOW_STRING, + self::STATE_SHOW => self::STATE_SHOW_STRING, + ]; + } + public static function getTypeStateDispayMap() + { + return [ + self::NEW_ADD => self::NEW_ADD_STRING, + self::NOT_NEW_ADD => self::NOT_NEW_ADD_STRING, + ]; + } + + public function getListPicUrlAttribute($pictures) + { + if (is_string($pictures)) { + return json_decode($pictures, true); + } + + return $pictures; + } + + public function setListPicUrlAttribute($pictures) + { + if (is_array($pictures)) { + $this->attributes['list_pic_url'] = json_encode($pictures); + } + } + + public static function getAllClasses($noRoot = false) + { + $classes = static::all(['id', 'name']); + + $result = []; + + if (!$noRoot) { + $result = [ + 0 => 'root' + ]; + } else { + $result = [ + 0 => 'null' + ]; + } + foreach ($classes as $eachClass) { + $result[$eachClass->id] = $eachClass->name; + } + + return $result; + } + + public static function getDetail($where){ + return new ShopBrandResource(static::where($where)->first()); + } +} diff --git a/app/Models/ShopCart.php b/app/Models/ShopCart.php new file mode 100644 index 0000000..a9b21c1 --- /dev/null +++ b/app/Models/ShopCart.php @@ -0,0 +1,53 @@ +hasOne(ShopGoods::class,'id','goods_id'); + } + + public static function getStateDisplayMap() + { + return [ + self::STATE_CHECKED => self::STATE_CHECKED_STRING, + self::STATE_NOT_CHECKED => self::STATE_NOT_CHECKED_STRING + ]; + } + + public static function getGoodsCount($where){ + return static::where($where)->sum('number'); + } + + public static function getGoodsAmountCount($where){ + $cartData = static::where($where)->get(); + $goodsTotalPrice = 0.00; + if($cartData){ + foreach($cartData as $item){ + $goodsTotalPrice = PriceCalculate($goodsTotalPrice,'+',PriceCalculate($item['retail_price'],'*',$item['number'])); + } + } + return $goodsTotalPrice; + } + + // 获取选中的商品 + public static function getCheckedGoodsList($uid){ + $where['uid'] = $uid; + $where['checked'] = self::STATE_CHECKED; + return static::with('shop_goods')->where($where)->get(); + } + +} diff --git a/app/Models/ShopCategory.php b/app/Models/ShopCategory.php new file mode 100644 index 0000000..3d77f69 --- /dev/null +++ b/app/Models/ShopCategory.php @@ -0,0 +1,99 @@ +setParentColumn('parent_id'); + $this->setOrderColumn('sort_order'); + $this->setTitleColumn('name'); + } + + public function shop_goods() + { + return $this->hasMany(ShopGoods::class); + } + + public static function getStateDisplayMap() + { + return [ + self::STATE_INACTIVE => self::STATE_INACTIVE_STRING, + self::STATE_ACTIVE => self::STATE_ACTIVE_STRING + ]; + } + + public static function getStateDisplayConfig() + { + return [ + 'on' => [ + 'text' => self::STATE_ACTIVE_STRING, + ], + 'off' => [ + 'text' =>self::STATE_INACTIVE_STRING, + ] + ]; + } + + public static function getAllClasses($noRoot = false) + { + $classes = static::all(['id', 'name']); + + $result = []; + + if (!$noRoot) { + $result = [ + 0 => 'root' + ]; + } else { + $result = [ + 0 => 'null' + ]; + } + foreach ($classes as $eachClass) { + $result[$eachClass->id] = $eachClass->name; + } + + return $result; + } + + public static function getCategoryList($where= []){ + return static::where(array_merge([ + ['is_show', '=', static::STATE_ACTIVE], + ], $where))->orderBy('sort_order')->get(); + } + + public static function getParentCategory($where= []){ + $where = array_merge([ + ['level', '=', 0] + ], $where); + return static::getCategoryList($where); + } + + public static function getChildrenCategoryByParentId($parentId){ + return static::where([ + ['is_show', '=', static::STATE_ACTIVE], + ['parent_id', '=', $parentId], + ])->orderBy('sort_order')->get(); + } + +} diff --git a/app/Models/ShopCollect.php b/app/Models/ShopCollect.php new file mode 100644 index 0000000..3cb248a --- /dev/null +++ b/app/Models/ShopCollect.php @@ -0,0 +1,38 @@ +hasOne(ShopGoods::class,'id','value_id'); + } + + public static function getStateDisplayMap() + { + return [ + self::STATE_ATTENTION => self::STATE_ATTENTION_STRING, + self::STATE_NOT_ATTENTION => self::STATE_NOT_ATTENTION_STRING + ]; + } + + public static function getCollectDetail($where){ + return static::where($where)->first(); + } + + public static function getList($where){ + return static::where(array_merge(['is_attention'=>static::STATE_ATTENTION],$where))->get(); + } +} diff --git a/app/Models/ShopComment.php b/app/Models/ShopComment.php new file mode 100644 index 0000000..8f17305 --- /dev/null +++ b/app/Models/ShopComment.php @@ -0,0 +1,66 @@ +hasOne(ShopGoods::class,'value_id'); + } + + public function get_comment_picture() + { + return $this->hasMany(ShopCommentPicture::class,'comment_id'); + } + + public static function getStateDisplayMap() + { + return [ + self::STATE_ON => self::STATE_ON_STRING, + self::STATE_OFF => self::STATE_OFF_STRING + ]; + } + + // 获取评论列表 + public static function getCommentList($where= [],$pagesize=''){ + $model = static::with('get_comment_picture')->where(array_merge([ + ['status', '=', static::STATE_ON], + ], $where))->orderBy('sort_order'); + if($pagesize){ + return $model->paginate($pagesize); + } + return $model->get(); + } + + // 获取有图评论列表 + public static function getCommentListPics($where= [],$pagesize=''){ + $model = static::has('get_comment_picture')->where(array_merge([ + ['status', '=', static::STATE_ON], + ], $where))->orderBy('sort_order'); + if($pagesize){ + return $model->paginate($pagesize); + } + return $model->get(); + } + + public function getCreatedAtAttribute($value) + { + return Carbon::createFromTimestamp(strtotime($value)) + // Leave this part off if you want to keep the property as + // a Carbon object rather than always just returning a string + ->toDateTimeString() + ; + } +} diff --git a/app/Models/ShopCommentPicture.php b/app/Models/ShopCommentPicture.php new file mode 100644 index 0000000..e2bba9a --- /dev/null +++ b/app/Models/ShopCommentPicture.php @@ -0,0 +1,12 @@ +'请选择', + 1=>'产品建议', + 2=>'功能异常', + 3=>'功能改进', + 4=>'商品购买流程', + 5=>'订单相关模块', + 6=>'展示效果', + 7=>'其他', + ]; + protected $table = 'shop_feedback'; + + // 反馈状态管理 + public static function getStatusDispayMap() + { + return [ + self::STATUS_ON => self::STATUS_ON_STRING, + self::STATUS_ACCEPT => self::STATUS_ACCEPT_STRING, + self::STATUS_IGNORE => self::STATUS_IGNORE_STRING, + ]; + } +} \ No newline at end of file diff --git a/app/Models/ShopFootprint.php b/app/Models/ShopFootprint.php new file mode 100644 index 0000000..3ce5ed0 --- /dev/null +++ b/app/Models/ShopFootprint.php @@ -0,0 +1,27 @@ +hasOne(ShopGoods::class,'id','goods_id'); + } + + static public function getList($where){ + return ShopFootprintResource::collection( + static::where($where)->take(static::MAX_SHOW_NUM) + ->orderBy('id', 'desc') +// ->groupBy('goods_id') + ->get() + ); + } + +} diff --git a/app/Models/ShopGoods.php b/app/Models/ShopGoods.php new file mode 100644 index 0000000..5b7b881 --- /dev/null +++ b/app/Models/ShopGoods.php @@ -0,0 +1,153 @@ +belongsTo(ShopCategory::class); + } + + public function products() + { + return $this->hasMany(ShopProduct::class, 'goods_id'); + } + + public function specifications() + { + return $this->hasMany(ShopGoodsSpecification::class, 'goods_id'); + } + + public function goods_attribute() + { + return $this->hasMany(ShopGoodsAttribute::class, 'goods_id'); + } + + // 是否上架 + public static function getSaleDispayMap() + { + return [ + self::STATE_ON_SALE => self::STATE_ON_SALE_STRING, + self::STATE_NOT_SALE => self::STATE_NOT_SALE_STRING, + ]; + } + + // 商品删除状态 + public static function getDeleteDispayMap() + { + return [ + self::STATE_NOT_DELETE => self::STATE_NOT_DELETE_STRING, + self::STATE_DELETE => self::STATE_DELETE_STRING, + ]; + } + // 是否限购 + public static function getLimitDispayMap() + { + return [ + self::STATE_SALE_LIMIT => self::STATE_SALE_LIMIT_STRING, + self::STATE_SALE_NOT_LIMIT => self::STATE_SALE_NOT_LIMIT_STRING, + ]; + } + // 是否推荐 + public static function getRecommendDispayMap() + { + return [ + self::STATE_SALE_RECOMMEND => self::STATE_SALE_RECOMMEND_STRING, + self::STATE_SALE_NOT_RECOMMEND => self::STATE_SALE_NOT_RECOMMEND_STRING, + ]; + } + + // 是否新品 + public static function getNewDispayMap() + { + return [ + self::STATE_SALE_NEW => self::STATE_SALE_NEW_STRING, + self::STATE_SALE_NOT_NEW => self::STATE_SALE_NOT_NEW_STRING, + ]; + } + + // 是否是会员专属 + public static function getVipDispayMap() + { + return [ + self::STATE_VIP => self::STATE_VIP_STRING, + self::STATE_NOT_VIP => self::STATE_NOT_VIP_STRING, + ]; + } + + // 多图上传处理 + public function getListPicUrlAttribute($pictures) + { + if (is_string($pictures)) { + return json_decode($pictures, true); + } + + return $pictures; + } + + public function setListPicUrlAttribute($pictures) + { + if (is_array($pictures)) { + $this->attributes['list_pic_url'] = json_encode($pictures); + } + } + // 获取商品列表 + public static function getGoodsList($where= [],$pagesize='' ,$order='sort_order asc'){ + $model = static::where(array_merge([ + ['is_delete', '=', static::STATE_NOT_DELETE], + ['is_on_sale', '=', static::STATE_ON_SALE], + ], $where))->orderByRaw($order); + if($pagesize){ + return $model->paginate($pagesize); + } + return $model->get(); + } + + // 获取商品详情 + public static function getGoodsDetail($where){ + return static::where(array_merge([ + ['is_delete', '=', static::STATE_NOT_DELETE], + ['is_on_sale', '=', static::STATE_ON_SALE], + ], $where))->first(); + } +} diff --git a/app/Models/ShopGoodsAttribute.php b/app/Models/ShopGoodsAttribute.php new file mode 100644 index 0000000..8bd67cc --- /dev/null +++ b/app/Models/ShopGoodsAttribute.php @@ -0,0 +1,25 @@ +hasOne(ShopAttribute::class, 'id','attribute_id'); + } + + public static function getGoodsAttribute($where){ + return static::where($where)->get(); + } + +} diff --git a/app/Models/ShopGoodsIssue.php b/app/Models/ShopGoodsIssue.php new file mode 100644 index 0000000..de4ec34 --- /dev/null +++ b/app/Models/ShopGoodsIssue.php @@ -0,0 +1,16 @@ +get(); + } + +} diff --git a/app/Models/ShopGoodsSpecification.php b/app/Models/ShopGoodsSpecification.php new file mode 100644 index 0000000..bd84646 --- /dev/null +++ b/app/Models/ShopGoodsSpecification.php @@ -0,0 +1,12 @@ +hasOne(ShopGoods::class, 'id','goods_id'); + } + + // 是否上架 + public static function getSaleDispayMap() + { + return [ + self::STATE_ON_SALE => self::STATE_ON_SALE_STRING, + self::STATE_NOT_SALE => self::STATE_NOT_SALE_STRING, + ]; + } + +} diff --git a/app/Models/ShopOrder.php b/app/Models/ShopOrder.php new file mode 100644 index 0000000..d2716f7 --- /dev/null +++ b/app/Models/ShopOrder.php @@ -0,0 +1,103 @@ + self::STATUS_INVALID_STRING, + self::STATUS_WAIT_PAY => self::STATUS_WAIT_PAY_STRING, + self::STATUS_ALREADY_PAID => self::STATUS_ALREADY_PAID_STRING, + self::STATUS_DELIVERING => self::STATUS_DELIVERING_STRING, + self::STATUS_COMPLETED => self::STATUS_COMPLETED_STRING, + ]; + } + + // 关联订单商品 + public function orderGoods() + { + return $this->hasMany(ShopOrderGoods::class, 'order_id'); + } + + /** + * 获取订单 及 订单商品列表 + */ + public static function getOrderAndOrderGoodsList($condition) + { + return static::with('orderGoods')->where($condition)->orderBy('id', 'desc')->get(); + } + + /** + * 获取订单数量 + */ + public static function countOrder($condition) + { + $n = static::where($condition)->count(); + return $n ? $n : 0; + } + + public function getAddTimeAttribute($value) + { + return Carbon::createFromTimestamp(strtotime($value)) + // Leave this part off if you want to keep the property as + // a Carbon object rather than always just returning a string + ->toDateTimeString() + ; + } +} diff --git a/app/Models/ShopOrderExpress.php b/app/Models/ShopOrderExpress.php new file mode 100644 index 0000000..36d945b --- /dev/null +++ b/app/Models/ShopOrderExpress.php @@ -0,0 +1,11 @@ +hasMany(ShopGoodsSpecification::class, 'goods_id'); + } +} diff --git a/app/Models/ShopRegion.php b/app/Models/ShopRegion.php new file mode 100644 index 0000000..29d8b73 --- /dev/null +++ b/app/Models/ShopRegion.php @@ -0,0 +1,21 @@ +get(); + } + + static public function getOne($where){ + return static::select(['name','id','type'])->where($where)->first(); + } +} diff --git a/app/Models/ShopShipper.php b/app/Models/ShopShipper.php new file mode 100644 index 0000000..d704ada --- /dev/null +++ b/app/Models/ShopShipper.php @@ -0,0 +1,11 @@ + self::STATE_OFFSHOW_STRING, + self::STATE_SHOW => self::STATE_SHOW_STRING, + ]; + } + + + public function getItemPicUrlAttribute($pictures) + { + if (is_string($pictures)) { + return json_decode($pictures, true); + } + + return $pictures; + } + + public function setItemPicUrlAttribute($pictures) + { + if (is_array($pictures)) { + $this->attributes['item_pic_url'] = json_encode($pictures); + } + } + + // 获取topic分页列表 + static public function getTopicListByPage($where = [], $page = 10) + { + return static::where(array_merge([ + ['is_show', '=', static::STATE_SHOW], + ], $where))->orderBy('sort_order')->paginate(); + } + + // 获取topic详情 + static public function getTopicDetail($where = []) + { + return static::where(array_merge([ + ['is_show', '=', static::STATE_SHOW], + ], $where))->orderBy('sort_order')->first(); + } +} diff --git a/app/Models/ShopUserCoupon.php b/app/Models/ShopUserCoupon.php new file mode 100644 index 0000000..b433d12 --- /dev/null +++ b/app/Models/ShopUserCoupon.php @@ -0,0 +1,38 @@ +where([ + 'uid' => $uid, + 'use_status' => static::STATUS_CAN_USE + ])->get(); + } + + public static function getUseStatusMap() + { + return [ + self::STATUS_CAN_USE => self::STATUS_CAN_USE_STRING, + self::STATUS_USED => self::STATUS_USED_STRING, + ]; + } + + // 关联优惠模型 + public function getCoupon() + { + return $this->hasOne(ShopCoupon::class, 'id', 'coupon_id'); + } +} diff --git a/app/Models/Special.php b/app/Models/Special.php new file mode 100644 index 0000000..126065d --- /dev/null +++ b/app/Models/Special.php @@ -0,0 +1,50 @@ + self::IFSHOW_YES_STRING, + self::IFSHOW_NO => self::IFSHOW_NO_STRING, + ]; + } + + public static function getIfShowDisplayConfig() + { + return [ + 'on' => [ + 'value' => self::IFSHOW_YES, + 'text' => self::IFSHOW_YES_STRING, + ], + 'off' => [ + 'value' => self::IFSHOW_NO, + 'text' => self::IFSHOW_NO_STRING, + ], + + ]; + } + + /** + * 获取首页专题导航数据列表 + * @param array $where + * @return mixed + */ + static public function getSpecialList($where = []) + { + return SpecialResource::collection(static::select('id', 'class_id','special_title','icon','link_url')->where([ + ['if_show', '=', static::IFSHOW_YES] + ])->orderBy('sort', 'ASC')->get()); + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..1f591f7 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,30 @@ + 'App\Policies\ModelPolicy', + ]; + + /** + * Register any authentication / authorization services. + * + * @return void + */ + public function boot() + { + $this->registerPolicies(); + Passport::routes(); + // + } +} diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000..352cce4 --- /dev/null +++ b/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,21 @@ + [ + 'App\Listeners\EventListener', + ], + ]; + + /** + * Register any events for your application. + * + * @return void + */ + public function boot() + { + parent::boot(); + + // + } +} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..5ea48d3 --- /dev/null +++ b/app/Providers/RouteServiceProvider.php @@ -0,0 +1,73 @@ +mapApiRoutes(); + + $this->mapWebRoutes(); + + // + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + * + * @return void + */ + protected function mapWebRoutes() + { + Route::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + * + * @return void + */ + protected function mapApiRoutes() + { + Route::prefix('api') + ->middleware('api') + ->namespace($this->namespace) + ->group(base_path('routes/api.php')); + } +} diff --git a/app/User.php b/app/User.php new file mode 100644 index 0000000..3b318f5 --- /dev/null +++ b/app/User.php @@ -0,0 +1,63 @@ +belongsToMany(Dorm::class, 'service_range', 'delivery_uid', 'did'); + } + //修改电话信息 + public function userInfo() + { + $q = \Auth::user()->openid; + return User::where('openid', $q)->get(); + + } + + public static function getRoleDisplayMap() + { + return [ + // self::USER_ROLE_ZERO => self::USER_ROLE_ZERO_STRING, + self::USER_ROLE_NORMAL => self::USER_ROLE_NORMAL_STRING, + self::USER_ROLE_DELIVERY => self::USER_ROLE_DELIVERY_STRING, + ]; + } +} diff --git a/artisan b/artisan new file mode 100644 index 0000000..5c23e2e --- /dev/null +++ b/artisan @@ -0,0 +1,53 @@ +#!/usr/bin/env php +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..f2801ad --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a25177e --- /dev/null +++ b/composer.json @@ -0,0 +1,67 @@ +{ + "name": "laravel/laravel", + "description": "The Laravel Framework.", + "keywords": ["framework", "laravel"], + "license": "MIT", + "type": "project", + "require": { + "php": ">=7.0.0", + "doctrine/dbal": "^2.5", + "encore/laravel-admin": "1.5.*", + "fideloper/proxy": "~3.3", + "laravel/framework": "5.5.*", + "laravel/passport": "~4.0", + "laravel/tinker": "~1.0", + "overtrue/laravel-wechat": "~4.0", + "jacobcyl/ali-oss-storage": "^2.0", + "orangehill/iseed": "dev-master", + "xethron/migrations-generator":"^2.0" + }, + "require-dev": { + "filp/whoops": "~2.0", + "fzaninotto/faker": "~1.4", + "mockery/mockery": "~1.0", + "phpunit/phpunit": "~6.0", + "symfony/thanks": "^1.0" + }, + "autoload": { + "classmap": [ + "database/seeds", + "database/factories" + ], + "psr-4": { + "App\\": "app/" + }, + "files": [ + "app/Common/functions.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "extra": { + "laravel": { + "dont-discover": [ + ] + } + }, + "scripts": { + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate" + ], + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover" + ] + }, + "config": { + "preferred-install": "dist", + "sort-packages": true, + "optimize-autoloader": true + } +} diff --git a/config/admin.php b/config/admin.php new file mode 100644 index 0000000..9d15edd --- /dev/null +++ b/config/admin.php @@ -0,0 +1,156 @@ + 'minishop', + + /* + * Logo in admin panel header. + */ + 'logo' => 'minishop', + + /* + * Mini-logo in admin panel header. + */ + 'logo-mini' => 'mini', + + /* + * Route configuration. + */ + 'route' => [ + + 'prefix' => 'admin', + + 'namespace' => 'App\\Admin\\Controllers', + + 'middleware' => ['web', 'admin'], + ], + + /* + * Laravel-admin install directory. + */ + 'directory' => app_path('Admin'), + + /* + * Laravel-admin html title. + */ + 'title' => 'Admin', + + /* + * Use `https`. + */ + 'secure' => true, + + /* + * Laravel-admin auth setting. + */ + 'auth' => [ + 'guards' => [ + 'admin' => [ + 'driver' => 'session', + 'provider' => 'admin', + ], + ], + + 'providers' => [ + 'admin' => [ + 'driver' => 'eloquent', + 'model' => Encore\Admin\Auth\Database\Administrator::class, + ], + ], + ], + + /* + * Laravel-admin upload setting. + */ + 'upload' => [ + + 'disk' => 'oss', + + 'directory' => [ + 'image' => 'images', + 'file' => 'files', + ], + ], + + /* + * Laravel-admin database setting. + */ + 'database' => [ + + // Database connection for following tables. + 'connection' => '', + + // User tables and model. + 'users_table' => 'admin_users', + 'users_model' => Encore\Admin\Auth\Database\Administrator::class, + + // Role table and model. + 'roles_table' => 'admin_roles', + 'roles_model' => Encore\Admin\Auth\Database\Role::class, + + // Permission table and model. + 'permissions_table' => 'admin_permissions', + 'permissions_model' => Encore\Admin\Auth\Database\Permission::class, + + // Menu table and model. + 'menu_table' => 'admin_menu', + 'menu_model' => Encore\Admin\Auth\Database\Menu::class, + + // Pivot table for table above. + 'operation_log_table' => 'admin_operation_log', + 'user_permissions_table' => 'admin_user_permissions', + 'role_users_table' => 'admin_role_users', + 'role_permissions_table' => 'admin_role_permissions', + 'role_menu_table' => 'admin_role_menu', + ], + + /* + * By setting this option to open or close operation log in laravel-admin. + */ + 'operation_log' => [ + + 'enable' => true, + + /* + * Routes that will not log to database. + * + * All method to path like: admin/auth/logs + * or specific method to path like: get:admin/auth/logs + */ + 'except' => [ + 'admin/auth/logs*', + ], + ], + + /* + * @see https://adminlte.io/docs/2.4/layout + */ + 'skin' => 'skin-blue-light', + + /* + |---------------------------------------------------------| + |LAYOUT OPTIONS | fixed | + | | layout-boxed | + | | layout-top-nav | + | | sidebar-collapse | + | | sidebar-mini | + |---------------------------------------------------------| + */ + 'layout' => ['sidebar-mini', 'sidebar-collapse'], + + /* + * Version displayed in footer. + */ + 'version' => '1.5.x-dev', + + /* + * Settings for extensions. + */ + 'extensions' => [ + + ], +]; diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..b3749e6 --- /dev/null +++ b/config/app.php @@ -0,0 +1,239 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services your application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'zh-CN', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'zh_cn', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => env('APP_KEY'), + + 'cipher' => 'AES-256-CBC', + + /* + |-------------------------------------------------------------------------- + | Logging Configuration + |-------------------------------------------------------------------------- + | + | Here you may configure the log settings for your application. Out of + | the box, Laravel uses the Monolog PHP logging library. This gives + | you a variety of powerful log handlers / formatters to utilize. + | + | Available Settings: "single", "daily", "syslog", "errorlog" + | + */ + + 'log' => env('APP_LOG', 'single'), + + 'log_level' => env('APP_LOG_LEVEL', 'debug'), + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => [ + + /* + * Laravel Framework Service Providers... + */ + Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, + Illuminate\Bus\BusServiceProvider::class, + Illuminate\Cache\CacheServiceProvider::class, + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, + Illuminate\Cookie\CookieServiceProvider::class, + Illuminate\Database\DatabaseServiceProvider::class, + Illuminate\Encryption\EncryptionServiceProvider::class, + Illuminate\Filesystem\FilesystemServiceProvider::class, + Illuminate\Foundation\Providers\FoundationServiceProvider::class, + Illuminate\Hashing\HashServiceProvider::class, + Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, + Illuminate\Pagination\PaginationServiceProvider::class, + Illuminate\Pipeline\PipelineServiceProvider::class, + Illuminate\Queue\QueueServiceProvider::class, + Illuminate\Redis\RedisServiceProvider::class, + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, + Illuminate\Session\SessionServiceProvider::class, + Illuminate\Translation\TranslationServiceProvider::class, + Illuminate\Validation\ValidationServiceProvider::class, + Illuminate\View\ViewServiceProvider::class, + + /* + * Package Service Providers... + */ + Laravel\Passport\PassportServiceProvider::class, + Overtrue\LaravelWeChat\ServiceProvider::class, + Jacobcyl\AliOSS\AliOssServiceProvider::class, + + Way\Generators\GeneratorsServiceProvider::class, + Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class, + Orangehill\Iseed\IseedServiceProvider::class, + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + // App\Providers\BroadcastServiceProvider::class, + App\Providers\EventServiceProvider::class, + App\Providers\RouteServiceProvider::class, + + ], + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => [ + + 'App' => Illuminate\Support\Facades\App::class, + 'Artisan' => Illuminate\Support\Facades\Artisan::class, + 'Auth' => Illuminate\Support\Facades\Auth::class, + 'Blade' => Illuminate\Support\Facades\Blade::class, + 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, + 'Bus' => Illuminate\Support\Facades\Bus::class, + 'Cache' => Illuminate\Support\Facades\Cache::class, + 'Config' => Illuminate\Support\Facades\Config::class, + 'Cookie' => Illuminate\Support\Facades\Cookie::class, + 'Crypt' => Illuminate\Support\Facades\Crypt::class, + 'DB' => Illuminate\Support\Facades\DB::class, + 'Eloquent' => Illuminate\Database\Eloquent\Model::class, + 'Event' => Illuminate\Support\Facades\Event::class, + 'File' => Illuminate\Support\Facades\File::class, + 'Gate' => Illuminate\Support\Facades\Gate::class, + 'Hash' => Illuminate\Support\Facades\Hash::class, + 'Lang' => Illuminate\Support\Facades\Lang::class, + 'Log' => Illuminate\Support\Facades\Log::class, + 'Mail' => Illuminate\Support\Facades\Mail::class, + 'Notification' => Illuminate\Support\Facades\Notification::class, + 'Password' => Illuminate\Support\Facades\Password::class, + 'Queue' => Illuminate\Support\Facades\Queue::class, + 'Redirect' => Illuminate\Support\Facades\Redirect::class, + 'Redis' => Illuminate\Support\Facades\Redis::class, + 'Request' => Illuminate\Support\Facades\Request::class, + 'Response' => Illuminate\Support\Facades\Response::class, + 'Route' => Illuminate\Support\Facades\Route::class, + 'Schema' => Illuminate\Support\Facades\Schema::class, + 'Session' => Illuminate\Support\Facades\Session::class, + 'Storage' => Illuminate\Support\Facades\Storage::class, + 'URL' => Illuminate\Support\Facades\URL::class, + 'Validator' => Illuminate\Support\Facades\Validator::class, + 'View' => Illuminate\Support\Facades\View::class, + + 'EasyWeChat' => Overtrue\LaravelWeChat\Facade::class, + + ], + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..f8a1194 --- /dev/null +++ b/config/auth.php @@ -0,0 +1,102 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session", "token" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + + 'api' => [ + 'driver' => 'passport', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. + | + | The expire time is the number of minutes that the reset token should be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + ], + ], + +]; diff --git a/config/broadcasting.php b/config/broadcasting.php new file mode 100644 index 0000000..3ca45ea --- /dev/null +++ b/config/broadcasting.php @@ -0,0 +1,59 @@ + env('BROADCAST_DRIVER', 'null'), + + /* + |-------------------------------------------------------------------------- + | Broadcast Connections + |-------------------------------------------------------------------------- + | + | Here you may define all of the broadcast connections that will be used + | to broadcast events to other systems or over websockets. Samples of + | each available type of connection are provided inside this array. + | + */ + + 'connections' => [ + + 'pusher' => [ + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + 'cluster' => env('PUSHER_APP_CLUSTER'), + 'encrypted' => true, + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + 'log' => [ + 'driver' => 'log', + ], + + 'null' => [ + 'driver' => 'null', + ], + + ], + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..fa12e5e --- /dev/null +++ b/config/cache.php @@ -0,0 +1,94 @@ + env('CACHE_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing a RAM based store such as APC or Memcached, there might + | be other applications utilizing the same cache. So, we'll specify a + | value to get prefixed to all our keys so we can avoid collisions. + | + */ + + 'prefix' => env( + 'CACHE_PREFIX', + str_slug(env('APP_NAME', 'laravel'), '_').'_cache' + ), + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..cab5d06 --- /dev/null +++ b/config/database.php @@ -0,0 +1,120 @@ + env('DB_CONNECTION', 'mysql'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'strict' => true, + 'engine' => null, + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer set of commands than a typical key-value systems + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => [ + + 'client' => 'predis', + + 'default' => [ + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), + 'database' => 0, + ], + + ], + +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..f5d5a87 --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,86 @@ + env('FILESYSTEM_DRIVER', 'oss'), + + /* + |-------------------------------------------------------------------------- + | Default Cloud Filesystem Disk + |-------------------------------------------------------------------------- + | + | Many applications store files both locally and in the cloud. For this + | reason, you may specify a default "cloud" driver here. This driver + | will be bound as the Cloud disk implementation in the container. + | + */ + + 'cloud' => env('FILESYSTEM_CLOUD', 's3'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Here you may configure as many filesystem "disks" as you wish, and you + | may even configure multiple disks of the same driver. Defaults have + | been setup for each driver as an example of the required options. + | + | Supported Drivers: "local", "ftp", "s3", "rackspace" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + ], + + 'oss' => [ + 'driver' => 'oss', + 'access_id' => 'YREDxBwk3qMhHat5', + 'access_key' => 'sjAzFWe5ngFdU3e3hwb0d3UGJoXBoj', + 'bucket' => 'static', + 'endpoint' => 'oss-.aliyuncs.com', // OSS 外网节点或自定义外部域名 + //'endpoint_internal' => '', // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中) + //'cdnDomain' => '', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url,如果cdnDomain未设置,则使用endpoint来生成url,否则使用cdn +// 'debug' => true, + 'url' => 'https://oss.aliyuncs.com' + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + ], + + 'admin' => [ + 'driver' => 'local', + 'root' => public_path('uploads'), + 'visibility' => 'public', + 'url' => env('API_URL','').'/uploads', + ], + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..bb92224 --- /dev/null +++ b/config/mail.php @@ -0,0 +1,123 @@ + env('MAIL_DRIVER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | SMTP Host Address + |-------------------------------------------------------------------------- + | + | Here you may provide the host address of the SMTP server used by your + | applications. A default option is provided that is compatible with + | the Mailgun mail service which will provide reliable deliveries. + | + */ + + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + + /* + |-------------------------------------------------------------------------- + | SMTP Host Port + |-------------------------------------------------------------------------- + | + | This is the SMTP port used by your application to deliver e-mails to + | users of the application. Like the host we have set this value to + | stay compatible with the Mailgun e-mail application by default. + | + */ + + 'port' => env('MAIL_PORT', 587), + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | E-Mail Encryption Protocol + |-------------------------------------------------------------------------- + | + | Here you may specify the encryption protocol that should be used when + | the application send e-mail messages. A sensible default using the + | transport layer security protocol should provide great security. + | + */ + + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + + /* + |-------------------------------------------------------------------------- + | SMTP Server Username + |-------------------------------------------------------------------------- + | + | If your SMTP server requires a username for authentication, you should + | set it here. This will get used to authenticate with your server on + | connection. You may also set the "password" value below this one. + | + */ + + 'username' => env('MAIL_USERNAME'), + + 'password' => env('MAIL_PASSWORD'), + + /* + |-------------------------------------------------------------------------- + | Sendmail System Path + |-------------------------------------------------------------------------- + | + | When using the "sendmail" driver to send e-mails, we will need to know + | the path to where Sendmail lives on this server. A default path has + | been provided here, which will work well on most of your systems. + | + */ + + 'sendmail' => '/usr/sbin/sendmail -bs', + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..8c06fcc --- /dev/null +++ b/config/queue.php @@ -0,0 +1,85 @@ + env('QUEUE_DRIVER', 'sync'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('SQS_KEY', 'your-public-key'), + 'secret' => env('SQS_SECRET', 'your-secret-key'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'your-queue-name'), + 'region' => env('SQS_REGION', 'us-east-1'), + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => 'default', + 'retry_after' => 90, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => [ + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..4460f0e --- /dev/null +++ b/config/services.php @@ -0,0 +1,38 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + ], + + 'ses' => [ + 'key' => env('SES_KEY'), + 'secret' => env('SES_SECRET'), + 'region' => 'us-east-1', + ], + + 'sparkpost' => [ + 'secret' => env('SPARKPOST_SECRET'), + ], + + 'stripe' => [ + 'model' => App\User::class, + 'key' => env('STRIPE_KEY'), + 'secret' => env('STRIPE_SECRET'), + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..736fb3c --- /dev/null +++ b/config/session.php @@ -0,0 +1,197 @@ + env('SESSION_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it is stored. All encryption will be run + | automatically by Laravel and you can use the Session like normal. + | + */ + + 'encrypt' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => null, + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using the "apc" or "memcached" session drivers, you may specify a + | cache store that should be used for these sessions. This value must + | correspond with one of the application's configured cache stores. + | + */ + + 'store' => null, + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + str_slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => env('SESSION_DOMAIN', null), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you if it can not be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE', false), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | do not enable this as other CSRF protection services are in place. + | + | Supported: "lax", "strict" + | + */ + + 'same_site' => null, + +]; diff --git a/config/view.php b/config/view.php new file mode 100644 index 0000000..2acfd9c --- /dev/null +++ b/config/view.php @@ -0,0 +1,33 @@ + [ + resource_path('views'), + ], + + /* + |-------------------------------------------------------------------------- + | Compiled View Path + |-------------------------------------------------------------------------- + | + | This option determines where all the compiled Blade templates will be + | stored for your application. Typically, this is within the storage + | directory. However, as usual, you are free to change this value. + | + */ + + 'compiled' => realpath(storage_path('framework/views')), + +]; diff --git a/config/wechat.php b/config/wechat.php new file mode 100644 index 0000000..3a3d774 --- /dev/null +++ b/config/wechat.php @@ -0,0 +1,136 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +return [ + /* + * 默认配置,将会合并到各模块中 + */ + 'defaults' => [ + /* + * 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 + */ + 'response_type' => 'array', + + /* + * 使用 Laravel 的缓存系统 + */ + 'use_laravel_cache' => true, + + /* + * 日志配置 + * + * level: 日志级别,可选为: + * debug/info/notice/warning/error/critical/alert/emergency + * file:日志文件位置(绝对路径!!!),要求可写权限 + */ + 'log' => [ + 'level' => env('WECHAT_LOG_LEVEL', 'debug'), + 'file' => env('WECHAT_LOG_FILE', storage_path('logs/wechat.log')), + ], + ], + + /* + * 路由配置 + */ + 'route' => [ + /* + * 开放平台第三方平台路由配置 + */ + // 'open_platform' => [ + // 'uri' => 'serve', + // 'action' => Overtrue\LaravelWeChat\Controllers\OpenPlatformController::class, + // 'attributes' => [ + // 'prefix' => 'open-platform', + // 'middleware' => null, + // ], + // ], + ], + + /* + * 公众号 + */ + 'official_account' => [ + 'default' => [ + 'app_id' => env('WECHAT_OFFICIAL_ACCOUNT_APPID', ''), // AppID + 'secret' => env('WECHAT_OFFICIAL_ACCOUNT_SECRET', ''), // AppSecret + 'token' => env('WECHAT_OFFICIAL_ACCOUNT_TOKEN', 'token'), // Token + 'aes_key' => env('WECHAT_OFFICIAL_ACCOUNT_AES_KEY', ''), // EncodingAESKey + + /* + * OAuth 配置 + * + * scopes:公众平台(snsapi_userinfo / snsapi_base),开放平台:snsapi_login + * callback:OAuth授权完成后的回调页地址(如果使用中间件,则随便填写。。。) + */ + // 'oauth' => [ + // 'scopes' => array_map('trim', explode(',', env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_SCOPES', 'snsapi_userinfo'))), + // 'callback' => env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_CALLBACK', '/examples/oauth_callback.php'), + // ], + ], + ], + + /* + * 开放平台第三方平台 + */ + // 'open_platform' => [ + // 'default' => [ + // 'app_id' => env('WECHAT_OPEN_PLATFORM_APPID', ''), + // 'secret' => env('WECHAT_OPEN_PLATFORM_SECRET', ''), + // 'token' => env('WECHAT_OPEN_PLATFORM_TOKEN', ''), + // 'aes_key' => env('WECHAT_OPEN_PLATFORM_AES_KEY', ''), + // ], + // ], + + /* + * 小程序 + */ + 'mini_program' => [ + 'default' => [ + 'app_id' => env('WECHAT_MINI_PROGRAM_APPID', ''), + 'secret' => env('WECHAT_MINI_PROGRAM_SECRET', ''), + 'token' => env('WECHAT_MINI_PROGRAM_TOKEN', ''), + 'aes_key' => env('WECHAT_MINI_PROGRAM_AES_KEY', ''), + 'response_type' => 'array', + 'log' => [ + 'level' => 'debug', + 'file' => __DIR__ . '/storage/logs/mini_wechat.log', + ], + ], + ], + + /* + * 微信支付 + */ + 'payment' => [ + 'default' => [ +// 'sandbox' => env('WECHAT_PAYMENT_SANDBOX', false), + 'app_id' => env('WECHAT_PAYMENT_APPID', ''), + 'mch_id' => env('WECHAT_PAYMENT_MCH_ID', ''), + 'key' => env('WECHAT_PAYMENT_KEY', ''), +// 'cert_path' => env('WECHAT_PAYMENT_CERT_PATH', 'path/to/cert/apiclient_cert.pem'), // XXX: 绝对路径!!!! +// 'key_path' => env('WECHAT_PAYMENT_KEY_PATH', 'path/to/cert/apiclient_key.pem'), // XXX: 绝对路径!!!! + 'notify_url' => 'https://mp.fengyuexingzi.top/api/order-notify', // 默认支付结果通知地址 + ], + // ... + ], + + /* + * 企业微信 + */ + // 'work' => [ + // 'default' => [ + // 'corp_id' => 'xxxxxxxxxxxxxxxxx', + /// 'agent_id' => 100020, + // 'secret' => env('WECHAT_WORK_AGENT_CONTACTS_SECRET', ''), + // //... + // ], + // ], +]; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b1dffd --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..facf233 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,23 @@ +define(App\User::class, function (Faker $faker) { + return [ + 'name' => $faker->name, + 'email' => $faker->unique()->safeEmail, + 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret + 'remember_token' => str_random(10), + ]; +}); diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 0000000..689cbee --- /dev/null +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,35 @@ +increments('id'); + $table->string('name'); + $table->string('email')->unique(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('users'); + } +} diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php new file mode 100644 index 0000000..0d5cb84 --- /dev/null +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -0,0 +1,32 @@ +string('email')->index(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('password_resets'); + } +} diff --git a/database/migrations/2016_01_04_173148_create_admin_tables.php b/database/migrations/2016_01_04_173148_create_admin_tables.php new file mode 100644 index 0000000..9bf0797 --- /dev/null +++ b/database/migrations/2016_01_04_173148_create_admin_tables.php @@ -0,0 +1,113 @@ +create(config('admin.database.users_table'), function (Blueprint $table) { + $table->increments('id'); + $table->string('username', 190)->unique(); + $table->string('password', 60); + $table->string('name'); + $table->string('avatar')->nullable(); + $table->string('remember_token', 100)->nullable(); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.roles_table'), function (Blueprint $table) { + $table->increments('id'); + $table->string('name', 50)->unique(); + $table->string('slug', 50); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.permissions_table'), function (Blueprint $table) { + $table->increments('id'); + $table->string('name', 50)->unique(); + $table->string('slug', 50); + $table->string('http_method')->nullable(); + $table->text('http_path')->nullable(); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.menu_table'), function (Blueprint $table) { + $table->increments('id'); + $table->integer('parent_id')->default(0); + $table->integer('order')->default(0); + $table->string('title', 50); + $table->string('icon', 50); + $table->string('uri', 50)->nullable(); + + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.role_users_table'), function (Blueprint $table) { + $table->integer('role_id'); + $table->integer('user_id'); + $table->index(['role_id', 'user_id']); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.role_permissions_table'), function (Blueprint $table) { + $table->integer('role_id'); + $table->integer('permission_id'); + $table->index(['role_id', 'permission_id']); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.user_permissions_table'), function (Blueprint $table) { + $table->integer('user_id'); + $table->integer('permission_id'); + $table->index(['user_id', 'permission_id']); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.role_menu_table'), function (Blueprint $table) { + $table->integer('role_id'); + $table->integer('menu_id'); + $table->index(['role_id', 'menu_id']); + $table->timestamps(); + }); + + Schema::connection($connection)->create(config('admin.database.operation_log_table'), function (Blueprint $table) { + $table->increments('id'); + $table->integer('user_id'); + $table->string('path'); + $table->string('method', 10); + $table->string('ip', 15); + $table->text('input'); + $table->index('user_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $connection = config('admin.database.connection') ?: config('database.default'); + + Schema::connection($connection)->dropIfExists(config('admin.database.users_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.roles_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.permissions_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.menu_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.user_permissions_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.role_users_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.role_permissions_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.role_menu_table')); + Schema::connection($connection)->dropIfExists(config('admin.database.operation_log_table')); + } +} diff --git a/database/migrations/2018_02_08_093611_add_column_to_users.php b/database/migrations/2018_02_08_093611_add_column_to_users.php new file mode 100644 index 0000000..84eca5d --- /dev/null +++ b/database/migrations/2018_02_08_093611_add_column_to_users.php @@ -0,0 +1,42 @@ +tinyInteger('role')->unsigned()->default(1)->comment('0 正常用户 >1 则为有角色用户'); + $table->tinyInteger('state')->unsigned()->default(1)->comment('会员状态 0 关闭 1开启'); + $table->string('unionid',40)->nullable()->comment('微信的unionid'); + $table->string('openid',40)->nullable()->comment('微信的openid'); + $table->string('nickname',60)->nullable()->comment('微信的昵称'); + $table->string('avatar',500)->nullable()->comment('会员头像'); + $table->string('picture',60)->nullable()->comment('会员大图'); + $table->string('login_time',30)->nullable()->comment('会员最近登录时间'); + $table->string('login_ip',18)->nullable()->comment('会员最近登录ip'); + }); + } + + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('school', function (Blueprint $table) { + // + }); + } +} diff --git a/database/migrations/2018_03_02_115751_create_classes_table.php b/database/migrations/2018_03_02_115751_create_classes_table.php new file mode 100644 index 0000000..1449493 --- /dev/null +++ b/database/migrations/2018_03_02_115751_create_classes_table.php @@ -0,0 +1,40 @@ +increments('id'); + $table->string('class_name', 100)->nullable(false)->default('')->comment('分类名称'); + $table->integer('class_pid')->nullable(false)->default(0)->comment('父分类ID'); + $table->tinyInteger('class_level')->unsigned()->nullable(false)->default(0)->comment('所属分类层级'); + $table->string('class_path', 100)->nullable(false)->default('')->comment('分类的全路径'); + $table->string('class_desc', 255)->nullable()->default('')->comment('分类描述'); + $table->tinyInteger('class_state')->unsigned()->nullable(false)->default(1)->comment('分类状态(0-禁用,1-正常)'); + $table->timestamps(); + }); + } + + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('classes'); + } +} diff --git a/database/migrations/2018_03_04_025119_create_carousel_table.php b/database/migrations/2018_03_04_025119_create_carousel_table.php new file mode 100644 index 0000000..09474d2 --- /dev/null +++ b/database/migrations/2018_03_04_025119_create_carousel_table.php @@ -0,0 +1,39 @@ +increments('id')->comment('轮播表ID'); + $table->tinyInteger('booth_type')->unsign()->default(1)->comment('展位类型 1是首页的 其他的待定义'); + $table->string('carousel_title', 100)->index()->default('')->comment('轮播标题'); + $table->string('carousel_img', 300)->nullable(false)->default('')->comment('轮播图片'); + $table->string('carousel_link', 200)->nullable(false)->default('')->comment('轮播链接'); + $table->string('carousel_info', 500)->nullable(false)->default('')->comment('轮播上显示内容'); + $table->tinyInteger('state')->default(1)->comment('轮播状态 0 禁用 1显示'); + $table->timestamps(); + }); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('carousel'); + } +} diff --git a/database/migrations/2018_03_04_025120_create_special _table.php b/database/migrations/2018_03_04_025120_create_special _table.php new file mode 100644 index 0000000..82c6463 --- /dev/null +++ b/database/migrations/2018_03_04_025120_create_special _table.php @@ -0,0 +1,40 @@ +increments('id')->comment('导航专题表ID'); + $table->tinyInteger('class_id')->unsign()->default(0)->comment('对应分类表中的id'); + $table->string('special_title', 100)->index()->default('')->comment('专题标题'); + $table->string('link_url', 300)->nullable(false)->default('')->comment('链接地址'); + $table->string('special_desc', 300)->nullable(false)->default('')->comment('专题描述'); + $table->string('remark', 300)->nullable(false)->default('')->comment('备注'); + $table->tinyInteger('sort')->unsigned()->default(255)->comment('排序'); + $table->tinyInteger('if_show')->default(1)->comment('状态 0禁用 1正常'); + $table->timestamps(); + }); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('carousel'); + } +} diff --git a/database/migrations/2018_03_05_103843_add_goods_id_to_carousel_table.php b/database/migrations/2018_03_05_103843_add_goods_id_to_carousel_table.php new file mode 100644 index 0000000..af88883 --- /dev/null +++ b/database/migrations/2018_03_05_103843_add_goods_id_to_carousel_table.php @@ -0,0 +1,40 @@ +dropColumn('carousel_link'); + $table->integer('goods_id')->default(0)->comment('商品ID'); + }); + } + // + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + if (Schema::hasColumn('carousel', 'goods_id')) { + Schema::table('carousel', function (Blueprint $table) { + $table->dropColumn('goods_id'); + $table->string('carousel_link', 200)->nullable(false)->default('')->comment('轮播链接'); + }); + } + } +} diff --git a/database/migrations/2018_03_06_134349_create_news_table.php b/database/migrations/2018_03_06_134349_create_news_table.php new file mode 100644 index 0000000..bfe1d6b --- /dev/null +++ b/database/migrations/2018_03_06_134349_create_news_table.php @@ -0,0 +1,38 @@ +increments('id'); + $table->string('news_title', 100)->nullable(false)->default('')->comment('新闻标题'); + $table->string('news_lable', 20)->nullable(false)->default('')->comment('新闻标签'); + $table->string('news_author', 20)->nullable(false)->default('')->comment('新闻发布作者'); + $table->string('news_content', 200)->nullable(false)->default('')->comment('新闻内容'); + $table->string('news_link', 200)->nullable(false)->default('')->comment('新闻链接'); + $table->string('news_comment', 200)->nullable(True)->default('')->comment('新闻用户评论'); + $table->tinyInteger('news_isRead')->unsigned()->nullable(false)->default(0)->comment('新闻阅读状态(0-未阅读,1-已阅读)'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('news'); + } +} diff --git a/database/migrations/2018_03_16_095404_create_errors_log_table.php b/database/migrations/2018_03_16_095404_create_errors_log_table.php new file mode 100644 index 0000000..0defd21 --- /dev/null +++ b/database/migrations/2018_03_16_095404_create_errors_log_table.php @@ -0,0 +1,38 @@ +increments('id'); + $table->string('type', 50)->default('')->comment('错误日志记录类型 如order'); + $table->string('node', 300)->default('')->comment('错误节点'); + $table->string('ip', 30)->default('')->comment('错误ip节点'); + $table->string('info', 300)->default('')->comment('错误日志记录说明'); + $table->text('msg')->comment('错误内容'); + $table->text('remark')->nullable()->comment('其他备注'); + $table->tinyInteger('error_level')->default(1)->comment('错误等级'); + $table->tinyInteger('result')->default(1)->comment('错误结果0 错误解决1错误'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('errors_log'); + } +} diff --git a/database/migrations/2018_05_05_103843_add_icon_to_special_table.php b/database/migrations/2018_05_05_103843_add_icon_to_special_table.php new file mode 100644 index 0000000..70fab7d --- /dev/null +++ b/database/migrations/2018_05_05_103843_add_icon_to_special_table.php @@ -0,0 +1,38 @@ +string('icon',150)->default(0)->comment('图标'); + }); + } + // + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + if (Schema::hasColumn('special', 'icon')) { + Schema::table('special', function (Blueprint $table) { + $table->dropColumn('icon'); + }); + } + } +} diff --git a/database/migrations/2018_05_17_031959_create_shop_address_table.php b/database/migrations/2018_05_17_031959_create_shop_address_table.php new file mode 100644 index 0000000..8ff43c0 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_address_table.php @@ -0,0 +1,52 @@ +increments('id')->comment('收货地址表id'); + $table->string('user_name', 50)->default('')->comment('收货人名称'); + $table->integer('uid')->unsigned()->default(0)->index('uid')->comment('用户id'); + $table->integer('country_id')->default(0)->comment('国家id'); + $table->string('country',50)->default('')->comment('国家'); + + $table->integer('province_id')->default(0)->comment('省市id'); + $table->string('province',50)->default('')->comment('省市'); + + $table->integer('city_id')->default(0)->comment('区县id'); + $table->string('city',50)->default('')->comment('区县/城市'); + + + $table->integer('district_id')->default(0)->comment('街道id'); + $table->string('district',50)->default('')->comment('街道'); + + $table->string('address', 120)->default('')->comment('详细地址'); + $table->string('mobile', 60)->default('')->comment('手机号'); + $table->tinyInteger('is_default')->default(0)->comment('是否默认'); + $table->tinyInteger('status')->default(1)->comment('状态 1无效 2有效'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_address'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_attribute_category_table.php b/database/migrations/2018_05_17_031959_create_shop_attribute_category_table.php new file mode 100644 index 0000000..b0a61f7 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_attribute_category_table.php @@ -0,0 +1,34 @@ +increments('id')->comment('属性分类表ID'); + $table->string('name', 60)->default('')->comment('属性分类名称'); + $table->tinyInteger('enabled')->unsigned()->default(1)->comment('是否可用'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_attribute_category'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_attribute_table.php b/database/migrations/2018_05_17_031959_create_shop_attribute_table.php new file mode 100644 index 0000000..026c750 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_attribute_table.php @@ -0,0 +1,37 @@ +increments('id')->comment('属性ID'); + $table->integer('attribute_category_id')->unsigned()->default(0)->index('cat_id')->comment('属性分类ID'); + $table->string('name', 60)->default('')->comment('属性名称'); + $table->tinyInteger('input_type')->unsigned()->default(1)->comment('属性类别 1代表商品'); + $table->text('values', 65535)->nullable(); + $table->tinyInteger('sort_order')->unsigned()->default(0)->comment('排序'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_attribute'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_brand_table.php b/database/migrations/2018_05_17_031959_create_shop_brand_table.php new file mode 100644 index 0000000..9a57823 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_brand_table.php @@ -0,0 +1,44 @@ +increments('id'); + $table->string('name')->default('')->comment('品牌名称'); + $table->string('list_pic_url')->default('')->comment('品牌列表展示图片'); + $table->string('simple_desc')->default('')->comment('品牌描述'); + $table->string('pic_url')->default('')->comment('品牌图片'); + $table->tinyInteger('sort_order')->unsigned()->default(50)->comment('展示排序'); + $table->tinyInteger('is_show')->default(1)->index('is_show')->comment('品牌上下架 1:显示 0:下架'); + $table->decimal('floor_price', 10)->default(0.00)->comment('品牌显示的最低价'); + $table->boolean('is_new')->default(0)->comment('是否是新增品牌'); + $table->string('new_pic_url')->default('')->comment('新增展示图片'); + $table->tinyInteger('new_sort_order')->unsigned()->default(10)->comment('新增逻辑下的排序'); + $table->timestamps(); + $table->comment = '商城品牌表'; + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_brand'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_cart_table.php b/database/migrations/2018_05_17_031959_create_shop_cart_table.php new file mode 100644 index 0000000..003c5bf --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_cart_table.php @@ -0,0 +1,45 @@ + increments('id')->comment('购物车表'); + $table->integer('uid')->unsigned()->default(0)->comment('用户id'); + $table->char('session_id', 32)->default('')->index('session_id')->comment('session_id'); + $table->integer('goods_id')->unsigned()->default(0)->comment('商品'); + $table->string('goods_sn', 60)->default('')->comment('商品sn'); + $table->integer('product_id')->unsigned()->default(0)->comment('主sku id'); + $table->string('goods_name', 120)->default('')->comment('商品名称'); + $table->decimal('market_price', 10)->unsigned()->default(0.00)->comment('市场价格'); + $table->decimal('retail_price', 10)->default(0.00)->comment('商品单价'); + $table->smallInteger('number')->unsigned()->default(0)->comment('购买数量'); + $table->text('goods_specifition_name_value', 65535)->nullable()->comment('规格属性组成的字符串,用来显示用'); + $table->string('goods_specifition_ids', 60)->default('')->comment('product表对应的goods_specifition_ids'); + $table->boolean('checked')->default(1)->comment('是否选中'); + $table->string('list_pic_url')->default('')->comment('商品列表图'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_cart'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_category_table.php b/database/migrations/2018_05_17_031959_create_shop_category_table.php new file mode 100644 index 0000000..6703fd1 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_category_table.php @@ -0,0 +1,48 @@ +increments('id'); + $table->string('name', 90)->default('')->comment('分类名称'); + $table->string('keywords')->default('')->comment('关键词'); + $table->string('front_desc')->default('')->comment('贴心描述'); + $table->integer('parent_id')->unsigned()->default(0)->index('parent_id')->comment('父级分类id'); + $table->tinyInteger('sort_order')->unsigned()->default(50)->comment('分类排序'); + $table->tinyInteger('show_index')->default(0)->comment('展示索引'); + $table->tinyInteger('is_show')->default(1)->comment('是否展示'); + $table->string('banner_url')->default('')->comment('banner图片url'); + $table->string('icon_url')->comment('分类图标'); + $table->string('img_url')->nullable()->comment('图片地址'); + $table->string('wap_banner_url')->default('')->comment('baner图片'); + $table->tinyInteger('level')->default(0)->comment('分类层级'); + $table->integer('type')->default(0)->comment('类别'); + $table->string('front_name')->default('')->comment('分类别名'); + $table->comment = '商城商品分类表'; + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_category'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_collect_table.php b/database/migrations/2018_05_17_031959_create_shop_collect_table.php new file mode 100644 index 0000000..4d43a6c --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_collect_table.php @@ -0,0 +1,37 @@ +increments('id')->comment('关注收藏表id'); + $table->integer('user_id')->unsigned()->default(0)->index('user_id')->comment('用户id'); + $table->integer('value_id')->unsigned()->default(0)->index('goods_id')->comment('收藏对象id'); + $table->integer('add_time')->unsigned()->default(0)->comment('添加时间'); + $table->boolean('is_attention')->default(0)->index('is_attention')->comment('是否是关注'); + $table->integer('type_id')->unsigned()->default(0)->comment('关注类型 0代表商品'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_collect'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_comment_picture_table.php b/database/migrations/2018_05_17_031959_create_shop_comment_picture_table.php new file mode 100644 index 0000000..2c35bb5 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_comment_picture_table.php @@ -0,0 +1,36 @@ +increments('id')->comment('评论表图片表id'); + $table->integer('comment_id')->unsigned()->default(0)->comment('评论表id'); + $table->string('pic_url',500)->default('')->comment('图片地址'); + $table->tinyInteger('sort_order')->unsigned()->default(255)->comment('排序'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_comment_picture'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_comment_table.php b/database/migrations/2018_05_17_031959_create_shop_comment_table.php new file mode 100644 index 0000000..4bf0c57 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_comment_table.php @@ -0,0 +1,41 @@ +increments('id')->comment('评论表id'); + $table->boolean('type_id')->default(0)->comment('评论类型 0代表商品'); + $table->integer('value_id')->unsigned()->default(0)->index('id_value')->comment('评论对象id'); + $table->string('content', 6550)->comment('储存为base64编码'); + $table->timestamp('add_time')->comment('添加时间'); + $table->tinyInteger('status')->default(1)->comment('评论状态'); + $table->integer('user_id')->unsigned()->default(0)->comment('用户uid'); + $table->string('new_content', 6550)->default('')->comment('备用'); + $table->tinyInteger('sort_order')->unsigned()->default(255)->comment('排序'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_comment'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_coupon_table.php b/database/migrations/2018_05_17_031959_create_shop_coupon_table.php new file mode 100644 index 0000000..1b147f0 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_coupon_table.php @@ -0,0 +1,43 @@ +increments('id')->unsigned()->comment('优惠券id'); + $table->string('name', 60)->default('')->comment('优惠券名称'); + $table->decimal('type_money', 10)->default(0.00)->comment('减免金额'); + $table->tinyInteger('send_type')->default(0)->comment('优惠券发放类型'); + $table->decimal('min_amount', 10)->unsigned()->default(0.00)->comment('优惠使用最小金额'); + $table->decimal('max_amount', 10)->unsigned()->default(0.00)->comment('优惠使用最大金额'); + $table->timestamp('send_start_date')->default('2018-01-01 00:00:00')->comment('优惠券发放开始时间'); + $table->timestamp('send_end_date')->default('2018-01-01 00:00:00')->comment('优惠券发放截止时间'); + $table->timestamp('use_start_date')->default('2018-01-01 00:00:00')->comment('使用开始时间'); + $table->timestamp('use_end_date')->default('2018-01-01 00:00:00')->comment('使用截止时间'); + $table->decimal('min_goods_amount', 10)->unsigned()->default(0.00)->comment('优惠使用商品的最小金额'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_coupon'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_goods_attribute_table.php b/database/migrations/2018_05_17_031959_create_shop_goods_attribute_table.php new file mode 100644 index 0000000..a267994 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_goods_attribute_table.php @@ -0,0 +1,36 @@ +increments('id'); + $table->integer('goods_id')->unsigned()->default(0)->index('goods_id'); + $table->integer('attribute_id')->unsigned()->default(0)->index('attr_id'); + $table->text('value', 65535); + $table->comment = '商城商品属性表'; + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_goods_attribute'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_goods_gallery_table.php b/database/migrations/2018_05_17_031959_create_shop_goods_gallery_table.php new file mode 100644 index 0000000..a122301 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_goods_gallery_table.php @@ -0,0 +1,36 @@ +increments('id'); + $table->integer('goods_id')->unsigned()->default(0)->index('goods_id'); + $table->string('img_url')->default(''); + $table->string('img_desc')->default(''); + $table->integer('sort_order')->unsigned()->default(5); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_goods_gallery'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_goods_issue_table.php b/database/migrations/2018_05_17_031959_create_shop_goods_issue_table.php new file mode 100644 index 0000000..c89c43a --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_goods_issue_table.php @@ -0,0 +1,37 @@ +integer('id', true); + $table->text('goods_id', 65535)->nullable(); + $table->string('question')->nullable(); + $table->string('answer', 45)->nullable(); + $table->timestamps(); + $table->comment = '商城问题表'; + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_goods_issue'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_goods_specification_table.php b/database/migrations/2018_05_17_031959_create_shop_goods_specification_table.php new file mode 100644 index 0000000..cc7e31f --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_goods_specification_table.php @@ -0,0 +1,36 @@ +increments('id'); + $table->integer('goods_id')->unsigned()->default(0)->index('goods_id'); + $table->integer('specification_id')->unsigned()->default(0)->index('specification_id'); + $table->string('value', 50)->default(''); + $table->string('pic_url')->default(''); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_goods_specification'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_goods_table.php b/database/migrations/2018_05_17_031959_create_shop_goods_table.php new file mode 100644 index 0000000..b13ba1d --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_goods_table.php @@ -0,0 +1,63 @@ +increments('id'); + $table->integer('category_id')->unsigned()->default(0)->index('cat_id')->comment('分类id'); + $table->string('goods_sn', 60)->default('')->index('goods_sn')->comment('商品编号'); + $table->string('goods_name', 120)->default('')->comment('商品名称'); + $table->integer('brand_id')->unsigned()->default(0)->index('brand_id')->comment('品牌id'); + $table->integer('goods_number')->unsigned()->default(0)->index('goods_number')->comment('商品库存量'); + $table->string('keywords')->default('')->comment('商品关键词'); + $table->string('goods_brief')->default('')->comment('商品摘要'); + $table->longText('goods_desc')->nullable()->comment('商品描述'); + $table->boolean('is_on_sale')->default(1)->comment('是否上架'); + $table->smallInteger('sort_order')->unsigned()->default(100)->index('sort_order')->comment('商品排序'); + $table->boolean('is_delete')->default(0)->comment('商品删除状态 0 正常 1已删除'); + $table->integer('attribute_category')->unsigned()->default(0)->comment('商品属性分类'); + $table->decimal('counter_price', 10)->unsigned()->default(0.00)->comment('专柜价格'); + $table->decimal('extra_price', 10)->unsigned()->default(0.00)->comment('附加价格'); + $table->decimal('freight_price', 10)->unsigned()->default(0.00)->comment('运费'); + $table->boolean('is_new')->default(0); + $table->string('goods_unit', 45)->default('')->comment('商品单位'); + $table->string('primary_pic_url')->default('')->comment('商品主图'); + $table->string('list_pic_url',500)->default('')->comment('商品列表图'); + $table->decimal('retail_price', 10)->unsigned()->default(0.00)->comment('零售价格'); + $table->integer('sell_volume')->unsigned()->default(0)->comment('销售量'); + $table->integer('primary_product_id')->unsigned()->default(0)->comment('主sku product_id'); + $table->decimal('unit_price', 10)->unsigned()->default(0.00)->comment('单位价格,单价'); + $table->string('promotion_desc')->comment('促销描述'); + $table->string('promotion_tag', 45)->comment('促销标签'); + $table->decimal('vip_exclusive_price', 10)->unsigned()->comment('会员专享价'); + $table->boolean('is_vip_exclusive')->comment('是否是会员专属'); + $table->boolean('is_limited')->comment('是否限购'); + $table->boolean('is_hot')->default(0)->comment('是否推荐'); + $table->comment = '商城商品表'; + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_goods'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_order_express_table.php b/database/migrations/2018_05_17_031959_create_shop_order_express_table.php new file mode 100644 index 0000000..c8b44fa --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_order_express_table.php @@ -0,0 +1,43 @@ +increments('id'); + $table->integer('order_id')->unsigned()->default(0)->index('order_id'); + $table->integer('shipper_id')->unsigned()->default(0); + $table->string('shipper_name', 120)->default('')->comment('物流公司名称'); + $table->string('shipper_code', 60)->default('')->comment('物流公司代码'); + $table->string('logistic_code', 20)->default('')->comment('快递单号'); + $table->string('traces', 2000)->default('')->comment('物流跟踪信息'); + $table->tinyInteger('is_finish')->default(0); + $table->integer('request_count')->nullable()->default(0)->comment('总查询次数'); + $table->timestamp('request_time')->nullable()->default('2018-01-01 00:00:00')->comment('最近一次向第三方查询物流信息时间'); + $table->timestamp('add_time')->default('2018-01-01 00:00:00')->comment('添加时间'); + $table->timestamp('update_time')->default('2018-01-01 00:00:00')->comment('更新时间'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_order_express'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_order_goods_table.php b/database/migrations/2018_05_17_031959_create_shop_order_goods_table.php new file mode 100644 index 0000000..0b76c4b --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_order_goods_table.php @@ -0,0 +1,42 @@ +increments('id')->comment('订单商品表id'); + $table->integer('order_id')->unsigned()->default(0)->index('order_id')->comment('订单id'); + $table->integer('goods_id')->unsigned()->default(0)->index('goods_id')->comment('商品id'); + $table->string('goods_name', 120)->default('')->comment('商品名称'); + $table->smallInteger('number')->unsigned()->default(1)->comment('购买数量'); + $table->decimal('market_price', 10)->default(0.00)->comment('市场价格'); + $table->decimal('retail_price', 10)->default(0.00)->comment('单价'); + $table->text('goods_specifition_name_value', 65535)->nullable()->comment('规格信息说明'); + $table->tinyInteger('is_real')->default(1)->comment('商品类型 0代表虚拟商品 1代表实体商品'); + $table->string('list_pic_url')->default('')->comment('列表图片'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_order_goods'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_order_table.php b/database/migrations/2018_05_17_031959_create_shop_order_table.php new file mode 100644 index 0000000..2e3bb3e --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_order_table.php @@ -0,0 +1,63 @@ +increments('id')->comment('优惠券id'); + $table->string('order_sn', 30)->default('')->unique('order_sn')->comment('优惠券id'); + $table->string('trade_no', 60)->default('')->comment('支付宝微信交易号,用于退款'); + $table->integer('uid')->unsigned()->default(0)->index('user_id')->comment('用户ID'); + $table->tinyInteger('order_status')->default(0)->index('order_status')->comment('订单状态,默认是0-订单关闭或无效,用户取消也置 10-待支付 22-支付完成 32-确认发货 40-订单完成'); + $table->tinyInteger('shipping_status')->default(0)->index('shipping_status')->comment('物流状态 0 带发货 10已发货 20已收货'); + $table->tinyInteger('pay_status')->default(0)->index('pay_status')->comment('支付状态0-异常订单 1-已下单 2-支付校验通过'); + $table->string('consignee', 60)->default('')->comment('收件人'); + $table->integer('country')->unsigned()->default(1)->comment('国家id'); + $table->integer('province')->unsigned()->default(0)->comment('省市id'); + $table->integer('city')->unsigned()->default(0)->comment('区县id'); + $table->integer('district')->unsigned()->default(0)->comment('街道id'); + $table->string('address')->default('')->comment('详细地址'); + $table->string('mobile', 60)->default('')->comment('手机号'); + $table->string('postscript')->default('')->comment('附言'); + $table->decimal('shipping_fee', 10)->default(0.00)->comment('运费'); + $table->string('pay_name', 120)->default('')->comment('支付方式名称'); + $table->tinyInteger('pay_id')->default(0)->index('pay_id')->comment('支付方式id'); + $table->decimal('actual_price', 10)->default(0.00)->comment('实际需要支付的金额'); + $table->integer('integral')->unsigned()->default(0)->comment('使用积分量'); + $table->decimal('integral_money', 10)->default(0.00)->comment('使用的积分量对应的金额'); + $table->decimal('order_price', 10)->default(0.00)->comment('订单总价'); + $table->decimal('goods_price', 10)->default(0.00)->comment('商品总价'); + $table->timestamp('add_time')->default('1970-01-01 08:00:01')->comment('订单生成时间'); + $table->timestamp('confirm_time')->default('1970-01-01 08:00:01')->comment('下单确认时间'); + $table->integer('pay_time')->unsigned()->default(0)->comment('支付时间'); + $table->integer('freight_price')->unsigned()->default(0)->comment('配送费用'); + $table->integer('coupon_id')->unsigned()->default(0)->comment('使用的优惠券id'); + $table->integer('parent_id')->unsigned()->default(0)->comment('代理人id'); + $table->decimal('coupon_price', 10)->default(0.00)->comment('优惠金额'); + $table->tinyInteger('callback_status')->default('0')->comment('支付回调状态'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_order'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_product_table.php b/database/migrations/2018_05_17_031959_create_shop_product_table.php new file mode 100644 index 0000000..d03bcdc --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_product_table.php @@ -0,0 +1,37 @@ +increments('id')->comment('多规格商品id'); + $table->integer('goods_id')->unsigned()->default(0)->comment('基础商品id'); + $table->string('goods_specification_ids', 50)->default('')->comment('所含规格'); + $table->string('goods_sn', 60)->default('')->comment('商品sn'); + $table->integer('goods_number')->unsigned()->default(0)->comment('库存'); + $table->decimal('retail_price', 10)->unsigned()->default(0.00)->comment('单价'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_product'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_region_table.php b/database/migrations/2018_05_17_031959_create_shop_region_table.php new file mode 100644 index 0000000..5b76e3c --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_region_table.php @@ -0,0 +1,38 @@ +increments('id', true)->unsigned(); + $table->integer('parent_id')->unsigned()->default(0)->index('parent_id'); + $table->string('name', 120)->default(''); + $table->tinyInteger('type')->default(2)->index('region_type'); + $table->decimal('lng', 10,4)->unsigned()->default(0.0000)->comment('经度'); + $table->decimal('lat', 10,4)->unsigned()->default(0.0000)->comment('维度'); + $table->integer('agency_id')->unsigned()->default(0)->index('agency_id'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_region'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_shipper_table.php b/database/migrations/2018_05_17_031959_create_shop_shipper_table.php new file mode 100644 index 0000000..bfa1520 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_shipper_table.php @@ -0,0 +1,35 @@ +integer('id', true); + $table->string('name', 20)->default('')->comment('快递公司名称'); + $table->string('code', 10)->default('')->comment('快递公司代码'); + $table->integer('sort_order')->default(10)->comment('排序'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_shipper'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_specification_table.php b/database/migrations/2018_05_17_031959_create_shop_specification_table.php new file mode 100644 index 0000000..45be9af --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_specification_table.php @@ -0,0 +1,34 @@ +increments('id')->comment('规格表ID'); + $table->string('name', 60)->default('')->comment('规格名称'); + $table->tinyInteger('sort_order')->unsigned()->default(50)->comment('规格排序'); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_specification'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_topic_category_table.php b/database/migrations/2018_05_17_031959_create_shop_topic_category_table.php new file mode 100644 index 0000000..3fb9b64 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_topic_category_table.php @@ -0,0 +1,35 @@ +increments('id')->comment('主题专题分类表id'); + $table->string('title')->default('')->comment('主题专题分类标题'); + $table->string('pic_url')->default('')->comment('主题专题分类图片'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_topic_category'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_topic_table.php b/database/migrations/2018_05_17_031959_create_shop_topic_table.php new file mode 100644 index 0000000..ae7ee1f --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_topic_table.php @@ -0,0 +1,44 @@ +increments('id')->comment('主题专题表id'); + $table->string('title')->default('')->comment('主题标题'); + $table->longText('content')->nullable()->comment('主题表述'); + $table->string('avatar')->nullable()->default('')->comment('主题图片'); + $table->string('item_pic_url')->nullable()->default('')->comment('元素图片'); + $table->string('subtitle')->default('')->comment('短标题'); + $table->integer('topic_category_id')->unsigned()->default(0)->comment('主题分类id'); + $table->decimal('price_info', 10)->unsigned()->default(0.00)->comment('价格信息'); + $table->string('read_count')->default('0')->comment('阅读量'); + $table->string('scene_pic_url')->default('')->comment('展示图片'); + $table->tinyInteger('sort_order')->unsigned()->default(100)->comment('主题排序'); + $table->boolean('is_show')->default(1)->comment('是否展示'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_topic'); + } + +} diff --git a/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php b/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php new file mode 100644 index 0000000..58f72e1 --- /dev/null +++ b/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php @@ -0,0 +1,40 @@ +increments('id')->comment('用户优惠表id'); + $table->integer('coupon_id')->default(0)->comment('优惠券id'); + $table->string('coupon_number', 20)->default('')->comment('优惠劵数量'); + $table->integer('uid')->unsigned()->default(0)->index('uid')->comment('用户uid'); + $table->timestamp('used_time')->default('2018-01-01 00:00:00')->comment('最后使用时间'); + $table->timestamp('reward_time')->default('2018-01-01 00:00:00')->comment('优惠领取时间'); + $table->tinyInteger('use_status')->unsigned()->default(10)->comment('状态 10 可以使用 20已使用'); + $table->integer('order_id')->unsigned()->default(0)->comment('订单id'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_user_coupon'); + } + +} diff --git a/database/migrations/2018_11_28_091105_create_project_model_table.php b/database/migrations/2018_11_28_091105_create_project_model_table.php new file mode 100644 index 0000000..03b78de --- /dev/null +++ b/database/migrations/2018_11_28_091105_create_project_model_table.php @@ -0,0 +1,37 @@ +increments('id'); + $table->integer('functype_id')->default(0)->unsigned()->comment('所属功能分类id 0代表全部'); // 所属功能分类id + $table->integer('type_id')->default(0)->unsigned()->comment('所属功能分类id 0代表全部'); // 项目类型id(做的冗余数据 方便查询) + $table->string('model_name')->default('')->comment('模块名'); // 模块名 + $table->string('model_desc')->default('')->comment('模块描述'); // 模块描述 + $table->tinyInteger('sort')->unsigned()->default(255)->comment('排序'); + $table->tinyInteger('status')->default(1)->comment('状态 0禁用 1正常'); + $table->index(['type_id','functype_id']); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('project_model'); + } +} diff --git a/database/migrations/2018_12_12_132024_create_project_type_table.php b/database/migrations/2018_12_12_132024_create_project_type_table.php new file mode 100644 index 0000000..7271e12 --- /dev/null +++ b/database/migrations/2018_12_12_132024_create_project_type_table.php @@ -0,0 +1,38 @@ +increments('id'); + $table->string('type_name', 80)->default('')->comment('项目类型名'); + $table->text('type_desc')->nullable()->comment('项目类型描述 '); + $table->string('type_img', 100)->default('')->comment('类型的图片'); + $table->integer('class_id')->default(0)->comment('技术领域类型'); + $table->tinyInteger('sort')->unsigned()->default(255)->comment('排序'); + $table->tinyInteger('status')->default(1)->comment('状态 0禁用 1正常'); + $table->decimal('basal_price', 10, 2)->default(0)->comment('该类项目的基础价格'); + $table->index('class_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('project_type'); + } +} diff --git a/database/migrations/2018_12_12_132116_create_project_functype_table.php b/database/migrations/2018_12_12_132116_create_project_functype_table.php new file mode 100644 index 0000000..4c20933 --- /dev/null +++ b/database/migrations/2018_12_12_132116_create_project_functype_table.php @@ -0,0 +1,36 @@ +increments('id'); + $table->integer('type_id')->default(0)->comment('所属项目类型id 0代表全部'); + $table->string('functype_name', 80)->default('')->comment('功能分类名 '); + $table->text('functype_desc')->nullable()->comment('功能分类描述 '); + $table->tinyInteger('sort')->unsigned()->default(255)->comment('排序'); + $table->tinyInteger('status')->default(1)->comment('状态 0禁用 1正常'); + $table->index('type_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('project_functype'); + } +} diff --git a/database/migrations/2018_12_12_143843_add_field_to_project_type_table.php b/database/migrations/2018_12_12_143843_add_field_to_project_type_table.php new file mode 100644 index 0000000..2d5d6f4 --- /dev/null +++ b/database/migrations/2018_12_12_143843_add_field_to_project_type_table.php @@ -0,0 +1,41 @@ +string('carousel_imgs',500)->default('')->comment('轮播图片'); + $table->text('description')->nullable()->comment('详情描述'); + $table->tinyInteger('salenum')->default(10)->comment('下单量'); + }); + + // + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + Schema::table('project_type', function (Blueprint $table) { + $table->dropColumn('carousel_imgs'); + $table->dropColumn('description'); + $table->dropColumn('salenum'); + }); + + } +} diff --git a/database/migrations/2018_12_21_071138_create_project_funcdot.php b/database/migrations/2018_12_21_071138_create_project_funcdot.php new file mode 100644 index 0000000..881a2d3 --- /dev/null +++ b/database/migrations/2018_12_21_071138_create_project_funcdot.php @@ -0,0 +1,43 @@ +increments('id'); + $table->integer('type_id')->default(0)->unsigned()->comment('所属功能分类id 0代表全部'); // 项目类型id(做的冗余数据 方便查询) + $table->integer('functype_id')->default(0)->unsigned()->comment('所属功能分类id 0代表全部'); // 所属功能分类id + $table->integer('model_id')->default(0)->unsigned()->comment('所属功能模块id 0代表全部'); // 所属功能模块id + $table->string('funcdot_name')->comment('功能点名'); // 功能点名 + $table->text('funcdot_desc')->comment('功能点描述'); // 功能点描述 + $table->integer('bottom_time')->comment('最低周期(h)'); // 最低周期(h) + $table->integer('time')->comment('周期(h)'); // 周期(h) + $table->decimal('discount_price')->comment('该功能的折扣价格'); // 该功能的基础价格 + $table->integer('price')->comment('市场价格'); // 花费(¥) + $table->tinyInteger('sort')->unsigned()->default(255)->comment('排序'); + $table->tinyInteger('status')->default(1)->comment('状态 0禁用 1正常'); + $table->index(['type_id','functype_id']); + $table->index('model_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('project_funcdot'); + } +} diff --git a/database/migrations/2018_12_22_031959_create_shop_goods_technology_table.php b/database/migrations/2018_12_22_031959_create_shop_goods_technology_table.php new file mode 100644 index 0000000..1aa82a7 --- /dev/null +++ b/database/migrations/2018_12_22_031959_create_shop_goods_technology_table.php @@ -0,0 +1,37 @@ +increments('id'); + $table->integer('goods_id')->unsigned()->default(0)->index('id_goods')->comment('对应商品表的id'); + $table->integer('uid')->unsigned()->default(0)->index('uid')->comment('用户的uid'); + $table->tinyInteger('is_on_sale')->default(1)->comment('状态 0禁用 1正常'); + $table->comment = '技术商品和商品对应表'; + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_goods_technology'); + } + +} diff --git a/database/migrations/2018_12_23_103843_add_brand_to_project_type_table.php b/database/migrations/2018_12_23_103843_add_brand_to_project_type_table.php new file mode 100644 index 0000000..1c4d5e1 --- /dev/null +++ b/database/migrations/2018_12_23_103843_add_brand_to_project_type_table.php @@ -0,0 +1,34 @@ +integer('brand_id')->unsigned()->default(0)->index('brand_id')->comment('品牌id'); + }); + // + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + Schema::table('project_type', function (Blueprint $table) { + $table->dropColumn('brand_id'); + }); + } +} diff --git a/database/migrations/2018_12_24_031959_create_shop_feedback_table.php b/database/migrations/2018_12_24_031959_create_shop_feedback_table.php new file mode 100644 index 0000000..23adb60 --- /dev/null +++ b/database/migrations/2018_12_24_031959_create_shop_feedback_table.php @@ -0,0 +1,41 @@ +increments('id')->comment('反馈表id'); + $table->integer('uid')->unsigned()->default(0)->index('uid')->comment('用户uid'); + $table->string('user_name', 60)->default('')->comment('用户昵称'); + $table->string('user_contact', 60)->default('')->comment('反馈用户联系方式'); + $table->string('msg_title', 200)->default('')->comment('反馈标题'); + $table->tinyInteger('msg_type')->default(0)->comment('反馈类型'); + $table->tinyInteger('msg_status')->default(1)->comment('反馈状态 0 失效 1正常 2采纳'); + $table->string('msg_content', 600)->comment('反馈内容'); + $table->string('message_img',200)->default('')->comment('反馈附加图片'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_feedback'); + } + +} diff --git a/database/migrations/2018_12_25_031959_create_shop_footprint_table.php b/database/migrations/2018_12_25_031959_create_shop_footprint_table.php new file mode 100644 index 0000000..2fbfaef --- /dev/null +++ b/database/migrations/2018_12_25_031959_create_shop_footprint_table.php @@ -0,0 +1,36 @@ +increments('id')->comment('足迹表id'); + $table->integer('uid')->unsigned()->default(0)->index('uid')->comment('用户uid'); + $table->integer('goods_id')->unsigned()->default(0)->comment('商品id'); + $table->timestamp('add_time')->default(null)->comment('浏览时间'); + $table->timestamps(); + }); + } + + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('shop_footprint'); + } + +} diff --git a/database/seeds/AdminMenuTableSeeder.php b/database/seeds/AdminMenuTableSeeder.php new file mode 100644 index 0000000..45df7fb --- /dev/null +++ b/database/seeds/AdminMenuTableSeeder.php @@ -0,0 +1,332 @@ +delete(); + + \DB::table('admin_menu')->insert(array ( + 0 => + array ( + 'id' => 1, + 'parent_id' => 0, + 'order' => 1, + 'title' => 'Index', + 'icon' => 'fa-bar-chart', + 'uri' => '/', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'parent_id' => 0, + 'order' => 2, + 'title' => '后台基础管理', + 'icon' => 'fa-tasks', + 'uri' => NULL, + 'created_at' => NULL, + 'updated_at' => '2018-05-07 08:17:18', + ), + 2 => + array ( + 'id' => 3, + 'parent_id' => 2, + 'order' => 3, + 'title' => '后台用户管理', + 'icon' => 'fa-users', + 'uri' => 'auth/users', + 'created_at' => NULL, + 'updated_at' => '2018-05-07 08:16:27', + ), + 3 => + array ( + 'id' => 4, + 'parent_id' => 2, + 'order' => 4, + 'title' => '角色管理', + 'icon' => 'fa-user', + 'uri' => 'auth/roles', + 'created_at' => NULL, + 'updated_at' => '2018-05-07 08:16:36', + ), + 4 => + array ( + 'id' => 5, + 'parent_id' => 2, + 'order' => 5, + 'title' => '权限管理', + 'icon' => 'fa-ban', + 'uri' => 'auth/permissions', + 'created_at' => NULL, + 'updated_at' => '2018-05-07 08:16:45', + ), + 5 => + array ( + 'id' => 6, + 'parent_id' => 2, + 'order' => 6, + 'title' => '菜单管理', + 'icon' => 'fa-bars', + 'uri' => 'auth/menu', + 'created_at' => NULL, + 'updated_at' => '2018-05-07 08:16:57', + ), + 6 => + array ( + 'id' => 7, + 'parent_id' => 2, + 'order' => 7, + 'title' => '操作日志', + 'icon' => 'fa-history', + 'uri' => 'auth/logs', + 'created_at' => NULL, + 'updated_at' => '2018-05-07 08:17:06', + ), + 7 => + array ( + 'id' => 8, + 'parent_id' => 0, + 'order' => 8, + 'title' => '定制科技项目商品板块', + 'icon' => 'fa-diamond', + 'uri' => NULL, + 'created_at' => '2018-05-07 08:18:24', + 'updated_at' => '2018-07-11 09:31:51', + ), + 8 => + array ( + 'id' => 9, + 'parent_id' => 0, + 'order' => 13, + 'title' => '网站管理', + 'icon' => 'fa-archive', + 'uri' => NULL, + 'created_at' => '2018-05-07 08:18:56', + 'updated_at' => '2018-05-09 07:52:01', + ), + 9 => + array ( + 'id' => 10, + 'parent_id' => 9, + 'order' => 14, + 'title' => '前端用户管理', + 'icon' => 'fa-user-md', + 'uri' => 'User', + 'created_at' => '2018-05-07 08:20:37', + 'updated_at' => '2018-05-09 07:52:01', + ), + 10 => + array ( + 'id' => 11, + 'parent_id' => 8, + 'order' => 9, + 'title' => '项目类型管理', + 'icon' => 'fa-product-hunt', + 'uri' => 'project-type', + 'created_at' => '2018-05-07 08:24:34', + 'updated_at' => '2018-05-09 07:52:01', + ), + 11 => + array ( + 'id' => 12, + 'parent_id' => 8, + 'order' => 10, + 'title' => '项目功能分类管理', + 'icon' => 'fa-ellipsis-v', + 'uri' => 'project-func-type', + 'created_at' => '2018-05-07 08:25:47', + 'updated_at' => '2018-05-09 07:52:01', + ), + 12 => + array ( + 'id' => 13, + 'parent_id' => 8, + 'order' => 11, + 'title' => '功能模块管理', + 'icon' => 'fa-tachometer', + 'uri' => 'project-model', + 'created_at' => '2018-05-07 08:27:17', + 'updated_at' => '2018-05-09 07:52:01', + ), + 13 => + array ( + 'id' => 14, + 'parent_id' => 8, + 'order' => 12, + 'title' => '功能点管理', + 'icon' => 'fa-tint', + 'uri' => 'project-dot', + 'created_at' => '2018-05-07 12:51:35', + 'updated_at' => '2018-05-09 07:52:01', + ), + 14 => + array ( + 'id' => 15, + 'parent_id' => 9, + 'order' => 15, + 'title' => '首页轮播图管理', + 'icon' => 'fa-image', + 'uri' => 'carousel', + 'created_at' => '2018-05-09 07:50:55', + 'updated_at' => '2018-05-09 07:52:01', + ), + 15 => + array ( + 'id' => 16, + 'parent_id' => 9, + 'order' => 16, + 'title' => '专题管理', + 'icon' => 'fa-th-list', + 'uri' => 'special', + 'created_at' => '2018-05-09 07:51:31', + 'updated_at' => '2018-05-09 07:52:01', + ), + 16 => + array ( + 'id' => 17, + 'parent_id' => 9, + 'order' => 0, + 'title' => '分类管理', + 'icon' => 'fa-clone', + 'uri' => 'classes', + 'created_at' => '2018-05-09 07:57:07', + 'updated_at' => '2018-05-09 07:57:07', + ), + 17 => + array ( + 'id' => 19, + 'parent_id' => 0, + 'order' => 0, + 'title' => '商城管理', + 'icon' => 'fa-shopping-bag', + 'uri' => NULL, + 'created_at' => '2018-05-29 09:24:10', + 'updated_at' => '2018-05-29 09:24:10', + ), + 18 => + array ( + 'id' => 20, + 'parent_id' => 19, + 'order' => 0, + 'title' => '商城商品分类管理', + 'icon' => 'fa-bars', + 'uri' => 'shop-category', + 'created_at' => '2018-05-29 09:24:26', + 'updated_at' => '2018-05-29 09:24:26', + ), + 19 => + array ( + 'id' => 21, + 'parent_id' => 19, + 'order' => 0, + 'title' => '品牌管理', + 'icon' => 'fa-umbrella', + 'uri' => 'shop-brand', + 'created_at' => '2018-05-29 09:26:28', + 'updated_at' => '2018-05-29 09:26:28', + ), + 20 => + array ( + 'id' => 22, + 'parent_id' => 19, + 'order' => 0, + 'title' => '商城商品管理', + 'icon' => 'fa-google', + 'uri' => 'shop-goods', + 'created_at' => '2018-05-31 01:53:31', + 'updated_at' => '2018-05-31 01:53:31', + ), + 21 => + array ( + 'id' => 23, + 'parent_id' => 19, + 'order' => 0, + 'title' => '商城主题&专题管理', + 'icon' => 'fa-compass', + 'uri' => 'shop-topics', + 'created_at' => '2018-05-31 05:48:40', + 'updated_at' => '2018-05-31 05:48:40', + ), + 22 => + array ( + 'id' => 24, + 'parent_id' => 19, + 'order' => 0, + 'title' => '商品规格管理', + 'icon' => 'fa-object-ungroup', + 'uri' => 'shop-specification', + 'created_at' => '2018-06-01 08:28:40', + 'updated_at' => '2018-06-01 08:28:40', + ), + 23 => + array ( + 'id' => 25, + 'parent_id' => 19, + 'order' => 0, + 'title' => '属性管理', + 'icon' => 'fa-paperclip', + 'uri' => NULL, + 'created_at' => '2018-06-03 02:53:35', + 'updated_at' => '2018-06-03 02:53:35', + ), + 24 => + array ( + 'id' => 26, + 'parent_id' => 25, + 'order' => 0, + 'title' => '属性类别管理', + 'icon' => 'fa-certificate', + 'uri' => 'shop-attribute-category', + 'created_at' => '2018-06-03 02:54:11', + 'updated_at' => '2018-06-03 02:54:11', + ), + 25 => + array ( + 'id' => 27, + 'parent_id' => 25, + 'order' => 0, + 'title' => '属性条目管理', + 'icon' => 'fa-sitemap', + 'uri' => 'shop-attribute', + 'created_at' => '2018-06-03 02:54:48', + 'updated_at' => '2018-06-03 02:54:48', + ), + 26 => + array ( + 'id' => 28, + 'parent_id' => 19, + 'order' => 0, + 'title' => '商城订单管理', + 'icon' => 'fa-rmb', + 'uri' => 'shop-order', + 'created_at' => '2018-07-10 07:22:58', + 'updated_at' => '2018-07-10 07:22:58', + ), + 27 => + array ( + 'id' => 29, + 'parent_id' => 19, + 'order' => 0, + 'title' => '用户反馈管理', + 'icon' => 'fa-gittip', + 'uri' => 'shop-feedback', + 'created_at' => '2018-07-16 08:56:20', + 'updated_at' => '2018-07-16 08:56:20', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/CarouselTableSeeder.php b/database/seeds/CarouselTableSeeder.php new file mode 100644 index 0000000..f85452c --- /dev/null +++ b/database/seeds/CarouselTableSeeder.php @@ -0,0 +1,108 @@ +delete(); + + \DB::table('carousel')->insert(array ( + 0 => + array ( + 'id' => 1, + 'booth_type' => 1, + 'carousel_title' => '轮播测试1', + 'carousel_img' => 'images/910e5135017a0c881fc66e53e7d638c8.jpg', + 'carousel_info' => '轮播测试1', + 'state' => 1, + 'created_at' => '2018-05-09 09:16:24', + 'updated_at' => '2018-06-22 08:47:24', + 'goods_id' => 1, + ), + 1 => + array ( + 'id' => 2, + 'booth_type' => 1, + 'carousel_title' => '轮播测试2', + 'carousel_img' => 'images/3ffb207af32313fa38baa4ae35708886.jpg', + 'carousel_info' => '轮播测试2', + 'state' => 1, + 'created_at' => '2018-05-10 08:50:05', + 'updated_at' => '2018-06-22 08:48:10', + 'goods_id' => 1, + ), + 2 => + array ( + 'id' => 3, + 'booth_type' => 2, + 'carousel_title' => '哈哈哈', + 'carousel_img' => 'images/6adf6eee8e83405c8caae80c42a53ffc.jpg', + 'carousel_info' => '2说弟弟撒', + 'state' => 1, + 'created_at' => '2018-06-15 03:48:46', + 'updated_at' => '2018-06-15 03:48:46', + 'goods_id' => 0, + ), + 3 => + array ( + 'id' => 4, + 'booth_type' => 3, + 'carousel_title' => '新增哈哈哈', + 'carousel_img' => 'images/565c97e18f7c69fd766193a7cf6e0341.jpg', + 'carousel_info' => '新增新增', + 'state' => 1, + 'created_at' => '2018-06-15 03:51:18', + 'updated_at' => '2018-06-15 03:51:18', + 'goods_id' => 0, + ), + 4 => + array ( + 'id' => 5, + 'booth_type' => 1, + 'carousel_title' => '轮播测试3', + 'carousel_img' => 'images/1d00d00b476c1697f961bc9dbc7d53c7.jpg', + 'carousel_info' => '轮播测试3', + 'state' => 1, + 'created_at' => '2018-06-22 08:48:30', + 'updated_at' => '2018-06-22 08:48:30', + 'goods_id' => 0, + ), + 5 => + array ( + 'id' => 6, + 'booth_type' => 1, + 'carousel_title' => '轮播测试4', + 'carousel_img' => 'images/76a9f07349c4eed2cddaec5c1a762d84.jpg', + 'carousel_info' => '轮播测试4', + 'state' => 1, + 'created_at' => '2018-06-22 08:48:48', + 'updated_at' => '2018-06-22 08:48:48', + 'goods_id' => 0, + ), + 6 => + array ( + 'id' => 7, + 'booth_type' => 1, + 'carousel_title' => '轮播测试5', + 'carousel_img' => 'images/bf2f2bf9a3ca51ef10fc577c6baf5429.jpg', + 'carousel_info' => '轮播测试5', + 'state' => 1, + 'created_at' => '2018-06-22 08:49:08', + 'updated_at' => '2018-06-22 08:49:08', + 'goods_id' => 0, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ClassesTableSeeder.php b/database/seeds/ClassesTableSeeder.php new file mode 100644 index 0000000..4f8414e --- /dev/null +++ b/database/seeds/ClassesTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php new file mode 100644 index 0000000..e10faa5 --- /dev/null +++ b/database/seeds/DatabaseSeeder.php @@ -0,0 +1,49 @@ +call(UserTableSeeder::class); + $this->call(AdminMenuTableSeeder::class); + $this->call(CarouselTableSeeder::class); + $this->call(ClassesTableSeeder::class); + $this->call(NewsTableSeeder::class); + $this->call(ProjectFuncdotTableSeeder::class); + $this->call(ProjectFunctypeTableSeeder::class); + $this->call(ProjectModelTableSeeder::class); + $this->call(ProjectTypeTableSeeder::class); + $this->call(ShopAddressTableSeeder::class); + $this->call(ShopAttributeTableSeeder::class); + $this->call(ShopAttributeCategoryTableSeeder::class); + $this->call(ShopCollectTableSeeder::class); + $this->call(ShopCommentTableSeeder::class); + $this->call(ShopCommentPictureTableSeeder::class); + $this->call(ShopCouponTableSeeder::class); + $this->call(ShopGoodsTableSeeder::class); + $this->call(ShopGoodsAttributeTableSeeder::class); + $this->call(ShopGoodsGalleryTableSeeder::class); + $this->call(ShopGoodsIssueTableSeeder::class); + $this->call(ShopGoodsSpecificationTableSeeder::class); + $this->call(ShopOrderTableSeeder::class); + $this->call(ShopOrderExpressTableSeeder::class); + $this->call(ShopOrderGoodsTableSeeder::class); + $this->call(ShopProductTableSeeder::class); + $this->call(ShopRegionTableSeeder::class); + $this->call(ShopShipperTableSeeder::class); + $this->call(ShopSpecificationTableSeeder::class); + $this->call(ShopTopicTableSeeder::class); + $this->call(ShopTopicCategoryTableSeeder::class); + $this->call(ShopUserCouponTableSeeder::class); + $this->call(SpecialTableSeeder::class); + $this->call(ShopCategoryTableSeeder::class); + $this->call(ShopBrandTableSeeder::class); + } +} diff --git a/database/seeds/NewsTableSeeder.php b/database/seeds/NewsTableSeeder.php new file mode 100644 index 0000000..46aa40b --- /dev/null +++ b/database/seeds/NewsTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ProjectFuncdotTableSeeder.php b/database/seeds/ProjectFuncdotTableSeeder.php new file mode 100644 index 0000000..ef7e6a6 --- /dev/null +++ b/database/seeds/ProjectFuncdotTableSeeder.php @@ -0,0 +1,449 @@ +delete(); + + \DB::table('project_funcdot')->insert(array ( + 0 => + array ( + 'id' => 1, + 'type_id' => 0, + 'functype_id' => 1, + 'model_id' => 13, + 'funcdot_name' => '基本聊天', + 'funcdot_desc' => '小功能点', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '300.00', + 'price' => 300, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-05-08 06:05:21', + 'updated_at' => '2018-07-12 06:53:53', + ), + 1 => + array ( + 'id' => 2, + 'type_id' => 0, + 'functype_id' => 1, + 'model_id' => 13, + 'funcdot_name' => '视频聊天', + 'funcdot_desc' => '小功能点', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '2000.00', + 'price' => 2000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-05-11 06:12:41', + 'updated_at' => '2018-07-12 06:54:21', + ), + 2 => + array ( + 'id' => 3, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 5, + 'funcdot_name' => '邮箱注册登录', + 'funcdot_desc' => '邮箱注册登录', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '800.00', + 'price' => 1000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:32:31', + 'updated_at' => '2018-07-12 02:32:31', + ), + 3 => + array ( + 'id' => 4, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 5, + 'funcdot_name' => '手机号登陆注册', + 'funcdot_desc' => '手机号登陆注册', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '600.00', + 'price' => 800, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:33:18', + 'updated_at' => '2018-07-12 02:33:18', + ), + 4 => + array ( + 'id' => 5, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 5, + 'funcdot_name' => '密码找回', + 'funcdot_desc' => '密码找回', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '100.00', + 'price' => 200, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:34:01', + 'updated_at' => '2018-07-12 02:34:01', + ), + 5 => + array ( + 'id' => 6, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 6, + 'funcdot_name' => '微信授权登陆', + 'funcdot_desc' => '微信授权登陆', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '500.00', + 'price' => 500, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:34:33', + 'updated_at' => '2018-07-12 02:34:33', + ), + 6 => + array ( + 'id' => 7, + 'type_id' => 1, + 'functype_id' => 2, + 'model_id' => 7, + 'funcdot_name' => '会员首页', + 'funcdot_desc' => '会员首页', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '300.00', + 'price' => 300, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:41:30', + 'updated_at' => '2018-07-12 03:41:30', + ), + 7 => + array ( + 'id' => 8, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 7, + 'funcdot_name' => '用户资料修改更新', + 'funcdot_desc' => '用户资料修改更新', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '200.00', + 'price' => 200, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:42:10', + 'updated_at' => '2018-07-12 03:42:10', + ), + 8 => + array ( + 'id' => 9, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 7, + 'funcdot_name' => '第三方登录管理', + 'funcdot_desc' => '第三方登录管理', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '200.00', + 'price' => 200, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:46:58', + 'updated_at' => '2018-07-12 06:46:58', + ), + 9 => + array ( + 'id' => 10, + 'type_id' => 0, + 'functype_id' => 2, + 'model_id' => 7, + 'funcdot_name' => '通知提醒列表/详情展示', + 'funcdot_desc' => '消息通知', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '200.00', + 'price' => 200, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:48:14', + 'updated_at' => '2018-07-12 06:48:14', + ), + 10 => + array ( + 'id' => 11, + 'type_id' => 0, + 'functype_id' => 3, + 'model_id' => 8, + 'funcdot_name' => '短信通知', + 'funcdot_desc' => '短信', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '1000.00', + 'price' => 1000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:55:25', + 'updated_at' => '2018-07-12 06:55:25', + ), + 11 => + array ( + 'id' => 12, + 'type_id' => 0, + 'functype_id' => 3, + 'model_id' => 8, + 'funcdot_name' => '邮箱通知', + 'funcdot_desc' => '邮箱', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '800.00', + 'price' => 800, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:55:49', + 'updated_at' => '2018-07-12 06:55:49', + ), + 12 => + array ( + 'id' => 13, + 'type_id' => 0, + 'functype_id' => 3, + 'model_id' => 9, + 'funcdot_name' => '算法搜索', + 'funcdot_desc' => '算法', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '2000.00', + 'price' => 2000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:56:16', + 'updated_at' => '2018-07-12 06:56:16', + ), + 13 => + array ( + 'id' => 14, + 'type_id' => 0, + 'functype_id' => 3, + 'model_id' => 9, + 'funcdot_name' => '条件筛选', + 'funcdot_desc' => '条件', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '1100.00', + 'price' => 1100, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:56:44', + 'updated_at' => '2018-07-12 06:56:44', + ), + 14 => + array ( + 'id' => 15, + 'type_id' => 0, + 'functype_id' => 3, + 'model_id' => 9, + 'funcdot_name' => '智能算法推荐', + 'funcdot_desc' => '智能', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '5000.00', + 'price' => 5000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:57:24', + 'updated_at' => '2018-07-12 06:57:24', + ), + 15 => + array ( + 'id' => 16, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 12, + 'funcdot_name' => '微信支付', + 'funcdot_desc' => '微信', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '3000.00', + 'price' => 3000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:57:55', + 'updated_at' => '2018-07-12 06:57:55', + ), + 16 => + array ( + 'id' => 17, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 12, + 'funcdot_name' => '支付宝支付', + 'funcdot_desc' => '支付宝', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '3000.00', + 'price' => 3000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:58:22', + 'updated_at' => '2018-07-12 06:58:22', + ), + 17 => + array ( + 'id' => 18, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 12, + 'funcdot_name' => '其他支付', + 'funcdot_desc' => '银联等', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '5000.00', + 'price' => 5000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:58:49', + 'updated_at' => '2018-07-12 06:58:49', + ), + 18 => + array ( + 'id' => 19, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 10, + 'funcdot_name' => '商品展示', + 'funcdot_desc' => '展示', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '1500.00', + 'price' => 1500, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 06:59:31', + 'updated_at' => '2018-07-12 06:59:31', + ), + 19 => + array ( + 'id' => 20, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 10, + 'funcdot_name' => '城市切换', + 'funcdot_desc' => '城市', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '1000.00', + 'price' => 1000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 07:00:09', + 'updated_at' => '2018-07-12 07:00:09', + ), + 20 => + array ( + 'id' => 21, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 11, + 'funcdot_name' => '订单列表/详情', + 'funcdot_desc' => '订单', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '3000.00', + 'price' => 3000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 07:00:43', + 'updated_at' => '2018-07-12 07:00:43', + ), + 21 => + array ( + 'id' => 22, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 11, + 'funcdot_name' => '订单流程', + 'funcdot_desc' => '流程和操作', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '2000.00', + 'price' => 2000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 07:01:12', + 'updated_at' => '2018-07-12 07:01:12', + ), + 22 => + array ( + 'id' => 23, + 'type_id' => 0, + 'functype_id' => 4, + 'model_id' => 11, + 'funcdot_name' => '收货标记', + 'funcdot_desc' => '自动收货等', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '1000.00', + 'price' => 1000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 07:01:41', + 'updated_at' => '2018-07-12 07:01:41', + ), + 23 => + array ( + 'id' => 24, + 'type_id' => 0, + 'functype_id' => 5, + 'model_id' => 14, + 'funcdot_name' => '普通设计', + 'funcdot_desc' => '对界面美观要求不严格的', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '5000.00', + 'price' => 5000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 07:02:25', + 'updated_at' => '2018-07-12 07:02:25', + ), + 24 => + array ( + 'id' => 25, + 'type_id' => 0, + 'functype_id' => 5, + 'model_id' => 14, + 'funcdot_name' => '高级设计', + 'funcdot_desc' => '要求界面等用户交互设计优雅美观', + 'bottom_time' => 4, + 'time' => 6, + 'discount_price' => '8000.00', + 'price' => 8000, + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 07:03:08', + 'updated_at' => '2018-07-12 07:03:08', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ProjectFunctypeTableSeeder.php b/database/seeds/ProjectFunctypeTableSeeder.php new file mode 100644 index 0000000..4907412 --- /dev/null +++ b/database/seeds/ProjectFunctypeTableSeeder.php @@ -0,0 +1,79 @@ +delete(); + + \DB::table('project_functype')->insert(array ( + 0 => + array ( + 'id' => 1, + 'type_id' => 0, + 'functype_name' => '社交功能', + 'functype_desc' => '包括留言、文字及语音聊天、视频聊天等功能', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-05-07 11:26:37', + 'updated_at' => '2018-07-12 02:16:49', + ), + 1 => + array ( + 'id' => 2, + 'type_id' => 1, + 'functype_name' => '基础功能', + 'functype_desc' => '基础功能建设', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-05-07 12:27:44', + 'updated_at' => '2018-05-11 06:44:48', + ), + 2 => + array ( + 'id' => 3, + 'type_id' => 0, + 'functype_name' => '高级功能', + 'functype_desc' => '包括市场常见如高级搜索等高级类功能', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:18:56', + 'updated_at' => '2018-07-12 02:18:56', + ), + 3 => + array ( + 'id' => 4, + 'type_id' => 0, + 'functype_name' => '电商功能', + 'functype_desc' => '主要包括购物、积分、营销工具等功能', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:19:42', + 'updated_at' => '2018-07-12 02:19:42', + ), + 4 => + array ( + 'id' => 5, + 'type_id' => 0, + 'functype_name' => '其他功能', + 'functype_desc' => '主要是一些需求定制类的服务,如UI设计等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:20:41', + 'updated_at' => '2018-07-12 02:20:41', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ProjectModelTableSeeder.php b/database/seeds/ProjectModelTableSeeder.php new file mode 100644 index 0000000..41e9477 --- /dev/null +++ b/database/seeds/ProjectModelTableSeeder.php @@ -0,0 +1,156 @@ +delete(); + + \DB::table('project_model')->insert(array ( + 0 => + array ( + 'id' => 4, + 'functype_id' => 2, + 'type_id' => 0, + 'model_name' => '基础功能测试模块', + 'model_desc' => '基础功能测试模块', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-05-11 06:11:19', + 'updated_at' => '2018-05-11 06:11:19', + ), + 1 => + array ( + 'id' => 5, + 'functype_id' => 2, + 'type_id' => 0, + 'model_name' => '注册登录', + 'model_desc' => '包括邮箱注册登录、手机号注册登录和密码找回等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:26:35', + 'updated_at' => '2018-07-12 02:26:35', + ), + 2 => + array ( + 'id' => 6, + 'functype_id' => 2, + 'type_id' => 0, + 'model_name' => '第三方登录', + 'model_desc' => '微信登录、qq登录、微博登录等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:27:15', + 'updated_at' => '2018-07-12 02:27:15', + ), + 3 => + array ( + 'id' => 7, + 'functype_id' => 2, + 'type_id' => 0, + 'model_name' => '用户中心', + 'model_desc' => '会员首页、用户资料修改更新、第三方登录管理、修改密码、消息中心等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:28:30', + 'updated_at' => '2018-07-12 02:28:30', + ), + 4 => + array ( + 'id' => 8, + 'functype_id' => 3, + 'type_id' => 0, + 'model_name' => '通知及推送消息', + 'model_desc' => '邮件通知、短信通知', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:29:22', + 'updated_at' => '2018-07-12 02:29:22', + ), + 5 => + array ( + 'id' => 9, + 'functype_id' => 3, + 'type_id' => 0, + 'model_name' => '高级搜索', + 'model_desc' => '算法搜索、条件筛选、只能算法推荐', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 02:30:02', + 'updated_at' => '2018-07-12 02:30:02', + ), + 6 => + array ( + 'id' => 10, + 'functype_id' => 4, + 'type_id' => 0, + 'model_name' => '商品相关', + 'model_desc' => '包括商品展示、城市切换等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:34:47', + 'updated_at' => '2018-07-12 03:34:47', + ), + 7 => + array ( + 'id' => 11, + 'functype_id' => 4, + 'type_id' => 0, + 'model_name' => '订单系统', + 'model_desc' => '包括订单列表、订单详情、订单流程、收货标记等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:36:01', + 'updated_at' => '2018-07-12 03:36:01', + ), + 8 => + array ( + 'id' => 12, + 'functype_id' => 4, + 'type_id' => 0, + 'model_name' => '支付', + 'model_desc' => '微信支付、支付宝支付、其他类型', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:36:47', + 'updated_at' => '2018-07-12 03:36:47', + ), + 9 => + array ( + 'id' => 13, + 'functype_id' => 1, + 'type_id' => 0, + 'model_name' => '即时通讯', + 'model_desc' => '包括基本聊天、语音聊天、视频聊天等', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:38:45', + 'updated_at' => '2018-07-12 03:38:45', + ), + 10 => + array ( + 'id' => 14, + 'functype_id' => 5, + 'type_id' => 0, + 'model_name' => 'UI设计/产品设计', + 'model_desc' => '包括普通设计、和高级设计', + 'sort' => 255, + 'status' => 1, + 'created_at' => '2018-07-12 03:39:33', + 'updated_at' => '2018-07-12 03:39:33', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ProjectTypeTableSeeder.php b/database/seeds/ProjectTypeTableSeeder.php new file mode 100644 index 0000000..1c8ccfe --- /dev/null +++ b/database/seeds/ProjectTypeTableSeeder.php @@ -0,0 +1,58 @@ +delete(); + + \DB::table('project_type')->insert(array ( + 0 => + array ( + 'id' => 1, + 'type_name' => 'web开发', + 'type_desc' => 'web开发', + 'type_img' => 'images/0e11fc45f9b1e46e71d46468a358e9f5.jpg', + 'class_id' => 0, + 'sort' => 255, + 'status' => 1, + 'basal_price' => '999.00', + 'created_at' => NULL, + 'updated_at' => '2018-07-12 02:35:12', + 'carousel_imgs' => '["images\\/beebd3335612985d91f7226e5006ec8d.jpg","images\\/d22f4a870fb2ff05a96fa5a57551c1d0.jpg"]', + 'description' => NULL, + 'salenum' => 10, + 'brand_id' => 4, + ), + 1 => + array ( + 'id' => 2, + 'type_name' => 'IOS开发', + 'type_desc' => 'IOS开发', + 'type_img' => 'images/4b7bf0d6335f496d4b220604140fd831.jpg', + 'class_id' => 0, + 'sort' => 255, + 'status' => 1, + 'basal_price' => '2999.00', + 'created_at' => '2018-05-10 11:31:01', + 'updated_at' => '2018-07-12 02:35:04', + 'carousel_imgs' => '["images\\/aad131da9bf36ac552d6f5e380023a4a.jpg","images\\/6097ed28d1adb27504d1469b9ac47569.jpg"]', + 'description' => NULL, + 'salenum' => 10, + 'brand_id' => 4, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopAddressTableSeeder.php b/database/seeds/ShopAddressTableSeeder.php new file mode 100644 index 0000000..14675e3 --- /dev/null +++ b/database/seeds/ShopAddressTableSeeder.php @@ -0,0 +1,64 @@ +delete(); + + \DB::table('shop_address')->insert(array ( + 0 => + array ( + 'id' => 1, + 'user_name' => '史庆闯', + 'uid' => 0, + 'country_id' => 1, + 'country' => '中国', + 'province_id' => 2, + 'province' => '北京', + 'city_id' => 37, + 'city' => '北京市', + 'district_id' => 407, + 'district' => '朝阳区', + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'is_default' => 0, + 'status' => 2, + 'created_at' => '2018-06-21 02:06:33', + 'updated_at' => '2018-06-21 03:25:27', + ), + 1 => + array ( + 'id' => 3, + 'user_name' => '史庆闯', + 'uid' => 3, + 'country_id' => 1, + 'country' => '中国', + 'province_id' => 2, + 'province' => '北京', + 'city_id' => 37, + 'city' => '北京市', + 'district_id' => 407, + 'district' => '朝阳区', + 'address' => '都发到撒多多撒大所', + 'mobile' => '13717674036', + 'is_default' => 1, + 'status' => 2, + 'created_at' => '2018-06-22 02:13:51', + 'updated_at' => '2018-06-22 02:13:51', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopAttributeCategoryTableSeeder.php b/database/seeds/ShopAttributeCategoryTableSeeder.php new file mode 100644 index 0000000..06bad21 --- /dev/null +++ b/database/seeds/ShopAttributeCategoryTableSeeder.php @@ -0,0 +1,30 @@ +delete(); + + \DB::table('shop_attribute_category')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => '电商系统', + 'enabled' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopAttributeTableSeeder.php b/database/seeds/ShopAttributeTableSeeder.php new file mode 100644 index 0000000..1288809 --- /dev/null +++ b/database/seeds/ShopAttributeTableSeeder.php @@ -0,0 +1,78 @@ +delete(); + + \DB::table('shop_attribute')->insert(array ( + 0 => + array ( + 'id' => 1, + 'attribute_category_id' => 1, + 'name' => '基础功能', + 'input_type' => 1, + 'values' => NULL, + 'sort_order' => 255, + ), + 1 => + array ( + 'id' => 2, + 'attribute_category_id' => 1, + 'name' => '高级功能', + 'input_type' => 1, + 'values' => NULL, + 'sort_order' => 255, + ), + 2 => + array ( + 'id' => 3, + 'attribute_category_id' => 1, + 'name' => '搜索功能', + 'input_type' => 1, + 'values' => NULL, + 'sort_order' => 255, + ), + 3 => + array ( + 'id' => 4, + 'attribute_category_id' => 1, + 'name' => '会员积分', + 'input_type' => 1, + 'values' => NULL, + 'sort_order' => 255, + ), + 4 => + array ( + 'id' => 5, + 'attribute_category_id' => 1, + 'name' => '促销系统', + 'input_type' => 1, + 'values' => NULL, + 'sort_order' => 255, + ), + 5 => + array ( + 'id' => 6, + 'attribute_category_id' => 1, + 'name' => '支付系统', + 'input_type' => 1, + 'values' => NULL, + 'sort_order' => 255, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopBrandTableSeeder.php b/database/seeds/ShopBrandTableSeeder.php new file mode 100644 index 0000000..099ff0e --- /dev/null +++ b/database/seeds/ShopBrandTableSeeder.php @@ -0,0 +1,88 @@ +delete(); + + \DB::table('shop_brand')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => '史庆闯', + 'list_pic_url' => 'images/6eb61ec474226c057d61fcecd01de9c7.png', + 'simple_desc' => '232131', + 'pic_url' => 'images/50bdfda30d161366b51fee4d5745a22e.png', + 'sort_order' => 127, + 'is_show' => 1, + 'floor_price' => '0.00', + 'is_new' => 1, + 'new_pic_url' => 'images/50bdfda30d161366b51fee4d5745a22e.png', + 'new_sort_order' => 127, + 'created_at' => '2018-05-29 09:30:11', + 'updated_at' => '2018-05-29 09:30:11', + ), + 1 => + array ( + 'id' => 3, + 'name' => '121', + 'list_pic_url' => '', + 'simple_desc' => '122123', + 'pic_url' => 'images/2b107b927a595d7e5929cacf7e0b9484.png', + 'sort_order' => 255, + 'is_show' => 1, + 'floor_price' => '0.00', + 'is_new' => 0, + 'new_pic_url' => 'images/570185ba0905af9f55fc42904668d732.png', + 'new_sort_order' => 10, + 'created_at' => '2018-05-29 09:48:40', + 'updated_at' => '2018-05-29 09:48:40', + ), + 2 => + array ( + 'id' => 4, + 'name' => '小T科技', + 'list_pic_url' => '["images\\/da10cbd5a2ca02d7e298ff4088476478.png","images\\/78231e16422642d4d79ac0e8b4e44981.png"]', + 'simple_desc' => '小T科技', + 'pic_url' => 'images/5b683e6f94f44bf48eb10fbb720d3d67.png', + 'sort_order' => 255, + 'is_show' => 1, + 'floor_price' => '0.00', + 'is_new' => 1, + 'new_pic_url' => 'images/7d1d5398f43d812d3d6865d95367c122.jpg', + 'new_sort_order' => 1, + 'created_at' => '2018-05-29 09:52:57', + 'updated_at' => '2018-05-29 09:52:57', + ), + 3 => + array ( + 'id' => 5, + 'name' => '易修产品', + 'list_pic_url' => '["images\\/timg (9).jpg"]', + 'simple_desc' => '易修', + 'pic_url' => 'images/timg (13).jpg', + 'sort_order' => 255, + 'is_show' => 1, + 'floor_price' => '0.00', + 'is_new' => 1, + 'new_pic_url' => 'images/d2c5f3de5943ecf47919e3cf5dca84df.jpg', + 'new_sort_order' => 255, + 'created_at' => '2018-06-16 02:26:59', + 'updated_at' => '2018-06-16 02:26:59', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopCategoryTableSeeder.php b/database/seeds/ShopCategoryTableSeeder.php new file mode 100644 index 0000000..b49d39b --- /dev/null +++ b/database/seeds/ShopCategoryTableSeeder.php @@ -0,0 +1,204 @@ +delete(); + + \DB::table('shop_category')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => '技术开发', + 'keywords' => '1212', + 'front_desc' => '21121', + 'parent_id' => 0, + 'sort_order' => 1, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/timg (8).jpg', + 'icon_url' => 'images/ico-add-addr.png', + 'img_url' => 'images/b948390920521b777113776a3f0aab07.jpg', + 'wap_banner_url' => '', + 'level' => 0, + 'type' => 0, + 'front_name' => '技术改变世界', + 'created_at' => '2018-05-29 08:17:04', + 'updated_at' => '2018-06-22 07:51:51', + ), + 1 => + array ( + 'id' => 2, + 'name' => 'web系统', + 'keywords' => 'web系统及相关开发', + 'front_desc' => 'web相关的系统,包含微信公众开发,网站开发等', + 'parent_id' => 1, + 'sort_order' => 0, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/b5c85b3275d13abd030830531ca1fa31.jpg', + 'icon_url' => 'images/66afeabe3ebf49504a43db8706145046.png', + 'img_url' => 'images/web.png', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => 'web系统及相关开发', + 'created_at' => '2018-05-29 08:28:27', + 'updated_at' => '2018-06-22 07:52:11', + ), + 2 => + array ( + 'id' => 3, + 'name' => '小程序', + 'keywords' => '哈哈哈哈', + 'front_desc' => '微信小程序系统、微信小程序开发', + 'parent_id' => 1, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/u=85293311,808189361&fm=27&gp=0.jpg', + 'icon_url' => 'images/d298e92c3cb675a553af8029a26eedea.png', + 'img_url' => 'images/3.png', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => '小程序系统', + 'created_at' => '2018-06-01 06:50:23', + 'updated_at' => '2018-07-11 10:19:41', + ), + 3 => + array ( + 'id' => 4, + 'name' => '精选生鲜', + 'keywords' => '生鲜', + 'front_desc' => '精选生鲜', + 'parent_id' => 0, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/timg.jpg', + 'icon_url' => 'images/5ad87bf0N66c5db7c.png', + 'img_url' => 'images/timg (1).jpg', + 'wap_banner_url' => '', + 'level' => 0, + 'type' => 0, + 'front_name' => '精挑细选_新鲜直达', + 'created_at' => '2018-06-15 10:58:44', + 'updated_at' => '2018-06-15 10:58:44', + ), + 4 => + array ( + 'id' => 5, + 'name' => '水果', + 'keywords' => '水果', + 'front_desc' => '水果', + 'parent_id' => 4, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/c096fd9f2a8d5f5b0ef5efa94bd87dbd.jpg', + 'icon_url' => 'images/be03467a5a28b3eeb6511c1996b54f81.png', + 'img_url' => 'images/b23e752c12ebfc232991a90aa2bc0055.jpg', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => '水果', + 'created_at' => '2018-06-15 10:59:29', + 'updated_at' => '2018-06-15 10:59:29', + ), + 5 => + array ( + 'id' => 6, + 'name' => '熟食', + 'keywords' => '熟食', + 'front_desc' => '熟食', + 'parent_id' => 4, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/ffca28172d8ee2cc397ba419577dfa38.jpg', + 'icon_url' => 'images/7.jpg', + 'img_url' => 'images/b4d92f33d83b5227f47ad789a7bdd2b6.jpg', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => '熟食', + 'created_at' => '2018-06-16 02:36:33', + 'updated_at' => '2018-06-16 02:36:33', + ), + 6 => + array ( + 'id' => 7, + 'name' => '运维服务', + 'keywords' => '服务器升级及日常运维', + 'front_desc' => '服务器升级及日常运维', + 'parent_id' => 1, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/ChMkJljZxEqIGDjxAAJjQwPlkCMAAbHRAE-xqYAAmNb414.jpg', + 'icon_url' => 'images/yunwei.png', + 'img_url' => 'images/c00583305d37d84002ae3167d3378324.png', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => '服务器升级及日常运维', + 'created_at' => '2018-06-22 07:57:28', + 'updated_at' => '2018-06-22 07:57:28', + ), + 7 => + array ( + 'id' => 8, + 'name' => '微信公众号', + 'keywords' => '微信公众号开发和系统售卖', + 'front_desc' => '微信公众号开发和系统售卖', + 'parent_id' => 1, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/timg (11).jpg', + 'icon_url' => 'images/gongzhonghao.png', + 'img_url' => 'images/eb33dae22c76d70fb606faf648360817.png', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => '微信公众号开发和系统售卖', + 'created_at' => '2018-06-22 08:02:23', + 'updated_at' => '2018-06-22 08:02:23', + ), + 8 => + array ( + 'id' => 9, + 'name' => 'APP', + 'keywords' => 'APP系统的开发', + 'front_desc' => 'APP系统的开发', + 'parent_id' => 1, + 'sort_order' => 127, + 'show_index' => 0, + 'is_show' => 1, + 'banner_url' => 'images/timg (12).jpg', + 'icon_url' => 'images/apple.png', + 'img_url' => 'images/2b61ccb2d9d368c7c167c630319d77bb.png', + 'wap_banner_url' => '', + 'level' => 1, + 'type' => 0, + 'front_name' => 'APP系统的开发', + 'created_at' => '2018-06-22 08:05:07', + 'updated_at' => '2018-06-22 08:05:07', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopCollectTableSeeder.php b/database/seeds/ShopCollectTableSeeder.php new file mode 100644 index 0000000..9e908cd --- /dev/null +++ b/database/seeds/ShopCollectTableSeeder.php @@ -0,0 +1,33 @@ +delete(); + + \DB::table('shop_collect')->insert(array ( + 0 => + array ( + 'id' => 1, + 'user_id' => 0, + 'value_id' => 1, + 'add_time' => 0, + 'is_attention' => 1, + 'type_id' => 0, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopCommentPictureTableSeeder.php b/database/seeds/ShopCommentPictureTableSeeder.php new file mode 100644 index 0000000..f2d80e5 --- /dev/null +++ b/database/seeds/ShopCommentPictureTableSeeder.php @@ -0,0 +1,33 @@ +delete(); + + \DB::table('shop_comment_picture')->insert(array ( + 0 => + array ( + 'id' => 1, + 'comment_id' => 1, + 'pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'sort_order' => 255, + 'created_at' => NULL, + 'updated_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopCommentTableSeeder.php b/database/seeds/ShopCommentTableSeeder.php new file mode 100644 index 0000000..f294c48 --- /dev/null +++ b/database/seeds/ShopCommentTableSeeder.php @@ -0,0 +1,66 @@ +delete(); + + \DB::table('shop_comment')->insert(array ( + 0 => + array ( + 'id' => 1, + 'type_id' => 0, + 'value_id' => 1, + 'content' => 'abc', + 'add_time' => '2018-06-14 20:18:59', + 'status' => 1, + 'user_id' => 0, + 'new_content' => '', + 'sort_order' => 255, + 'created_at' => '2018-06-14 20:18:59', + 'updated_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'type_id' => 0, + 'value_id' => 1, + 'content' => 'asdfs', + 'add_time' => '2018-06-14 20:18:59', + 'status' => 1, + 'user_id' => 0, + 'new_content' => '', + 'sort_order' => 255, + 'created_at' => '2018-06-14 20:19:02', + 'updated_at' => '2018-06-14 20:19:02', + ), + 2 => + array ( + 'id' => 3, + 'type_id' => 0, + 'value_id' => 1, + 'content' => 'fds', + 'add_time' => '2018-06-14 20:18:59', + 'status' => 1, + 'user_id' => 0, + 'new_content' => '', + 'sort_order' => 255, + 'created_at' => '2018-06-14 20:19:06', + 'updated_at' => '2018-06-14 20:19:02', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopCouponTableSeeder.php b/database/seeds/ShopCouponTableSeeder.php new file mode 100644 index 0000000..a072f2b --- /dev/null +++ b/database/seeds/ShopCouponTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopGoodsAttributeTableSeeder.php b/database/seeds/ShopGoodsAttributeTableSeeder.php new file mode 100644 index 0000000..2f3706a --- /dev/null +++ b/database/seeds/ShopGoodsAttributeTableSeeder.php @@ -0,0 +1,80 @@ +delete(); + + \DB::table('shop_goods_attribute')->insert(array ( + 0 => + array ( + 'id' => 1, + 'goods_id' => 1, + 'attribute_id' => 1, + 'value' => '商品管理、分类管理、广告管理、注册登录等', + ), + 1 => + array ( + 'id' => 2, + 'goods_id' => 3, + 'attribute_id' => 1, + 'value' => '测试商品', + ), + 2 => + array ( + 'id' => 3, + 'goods_id' => 4, + 'attribute_id' => 1, + 'value' => '测试', + ), + 3 => + array ( + 'id' => 4, + 'goods_id' => 1, + 'attribute_id' => 2, + 'value' => '搜索功能、专题功能等', + ), + 4 => + array ( + 'id' => 5, + 'goods_id' => 1, + 'attribute_id' => 4, + 'value' => '积分成长、积分抵扣等', + ), + 5 => + array ( + 'id' => 6, + 'goods_id' => 1, + 'attribute_id' => 3, + 'value' => '商品搜索', + ), + 6 => + array ( + 'id' => 7, + 'goods_id' => 1, + 'attribute_id' => 6, + 'value' => '微信支付、支付宝支付等', + ), + 7 => + array ( + 'id' => 8, + 'goods_id' => 1, + 'attribute_id' => 5, + 'value' => '优惠券系统、折扣券系统等', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopGoodsGalleryTableSeeder.php b/database/seeds/ShopGoodsGalleryTableSeeder.php new file mode 100644 index 0000000..f96c0fb --- /dev/null +++ b/database/seeds/ShopGoodsGalleryTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopGoodsIssueTableSeeder.php b/database/seeds/ShopGoodsIssueTableSeeder.php new file mode 100644 index 0000000..1168d9f --- /dev/null +++ b/database/seeds/ShopGoodsIssueTableSeeder.php @@ -0,0 +1,33 @@ +delete(); + + \DB::table('shop_goods_issue')->insert(array ( + 0 => + array ( + 'id' => 1, + 'goods_id' => '1', + 'question' => '商品咋样', + 'answer' => '很好很好', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopGoodsSpecificationTableSeeder.php b/database/seeds/ShopGoodsSpecificationTableSeeder.php new file mode 100644 index 0000000..b75cf45 --- /dev/null +++ b/database/seeds/ShopGoodsSpecificationTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopGoodsTableSeeder.php b/database/seeds/ShopGoodsTableSeeder.php new file mode 100644 index 0000000..4612dfa --- /dev/null +++ b/database/seeds/ShopGoodsTableSeeder.php @@ -0,0 +1,339 @@ +delete(); + + \DB::table('shop_goods')->insert(array ( + 0 => + array ( + 'id' => 1, + 'category_id' => 2, + 'goods_sn' => '12121', + 'goods_name' => '全站设计样例-简洁电商', + 'brand_id' => 4, + 'goods_number' => 102, + 'keywords' => '从产品设计、界面设计到功能开发的代码编写,全部由小T技术团队完成', + 'goods_brief' => '从产品设计、界面设计到功能开发的代码编写,全部由小T技术团队完成', + 'goods_desc' => '





    ', + 'is_on_sale' => 1, + 'sort_order' => 100, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '8000.00', + 'freight_price' => '0.00', + 'extra_price' => '2000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/cca06d0bb04b32409e6ac2fa56f9d274.png', + 'list_pic_url' => '["images\\/d63f58ba8e1c9a00bf098ab32e0329fc.jpg","images\\/09230cd1b817e3ac12119ab1f90184c5.jpg","images\\/2ff74fc85e18b477aeef9cb1915646c9.jpg"]', + 'retail_price' => '10000.00', + 'sell_volume' => 9, + 'primary_product_id' => 0, + 'unit_price' => '10000.00', + 'promotion_desc' => '限时折扣', + 'promotion_tag' => '限时折扣', + 'vip_exclusive_price' => '121.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 1, + 'is_hot' => 0, + 'created_at' => NULL, + 'updated_at' => '2018-06-23 09:51:07', + ), + 1 => + array ( + 'id' => 2, + 'category_id' => 2, + 'goods_sn' => '', + 'goods_name' => '智能硬件系统', + 'brand_id' => 4, + 'goods_number' => 11, + 'keywords' => '智能硬件项目,专门针对小型智能硬件厂商提供OEM和ODM服务', + 'goods_brief' => '智能硬件项目,专门针对小型智能硬件厂商提供OEM和ODM服务', + 'goods_desc' => '













    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '12000.00', + 'freight_price' => '0.00', + 'extra_price' => '3000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/d1ba64334a79e45a2c7c61a2805efefa.png', + 'list_pic_url' => '["images\\/1d50355df1589db671bcfedd813939e5.jpg","images\\/99c85b546472d075b31e678b0483de62.jpg","images\\/01e1636376384e56ca7e84027d2d93e3.jpg","images\\/ca75f5dbb626114d6bf064e5997fcb05.jpg","images\\/00d8e2d61852480e35ffb3d730833a8e.jpg"]', + 'retail_price' => '15000.00', + 'sell_volume' => 9, + 'primary_product_id' => 0, + 'unit_price' => '15000.00', + 'promotion_desc' => '暂无优惠', + 'promotion_tag' => '暂无优惠', + 'vip_exclusive_price' => '11111.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 1, + 'created_at' => '2018-06-05 09:37:01', + 'updated_at' => '2018-06-23 09:41:09', + ), + 2 => + array ( + 'id' => 3, + 'category_id' => 5, + 'goods_sn' => '', + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'brand_id' => 4, + 'goods_number' => 2, + 'keywords' => '果肉更足,享受饱满的甜蜜诱惑!红果富含花青素,天然抗氧化营养库!', + 'goods_brief' => '【越南直采 精选大果】果肉更足,享受饱满的甜蜜诱惑!红果富含花青素,天然抗氧化营养库!', + 'goods_desc' => '


    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '44.00', + 'freight_price' => '0.00', + 'extra_price' => '44.00', + 'is_new' => 0, + 'goods_unit' => '', + 'primary_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'list_pic_url' => '["images\\/b46d3c10ec815cf5eee262ecb43691db.jpg","images\\/0ec1530d5a80c860a403aa35be87d1ae.jpg"]', + 'retail_price' => '44.00', + 'sell_volume' => 12, + 'primary_product_id' => 0, + 'unit_price' => '44.00', + 'promotion_desc' => '泰国金枕榴莲火爆促销中,点我直达,萨瓦迪卡。', + 'promotion_tag' => 'sad', + 'vip_exclusive_price' => '11.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 1, + 'created_at' => '2018-06-16 02:14:38', + 'updated_at' => '2018-06-22 02:14:40', + ), + 3 => + array ( + 'id' => 4, + 'category_id' => 6, + 'goods_sn' => '', + 'goods_name' => '麻辣小龙虾1.5kg 4-6钱/25-32只', + 'brand_id' => 5, + 'goods_number' => 11, + 'keywords' => '海鲜年中大放价~满199立减50!', + 'goods_brief' => '海鲜年中大放价~满199立减50!', + 'goods_desc' => '





    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '21.00', + 'freight_price' => '0.00', + 'extra_price' => '121.00', + 'is_new' => 0, + 'goods_unit' => '', + 'primary_pic_url' => 'images/815388791fef8d7deda3c98d0e084be5.jpg', + 'list_pic_url' => '["images\\/e485912f9d593995341cd5fd9f856efb.jpg","images\\/0f10a83c456f525507bb7c1478b70c23.jpg","images\\/acf43356e2506faedd12c8bdbe11ca2e.jpg"]', + 'retail_price' => '121.00', + 'sell_volume' => 0, + 'primary_product_id' => 0, + 'unit_price' => '343.00', + 'promotion_desc' => '海鲜年中大放价~满199立减50!', + 'promotion_tag' => '满199立减50', + 'vip_exclusive_price' => '213.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 1, + 'created_at' => '2018-06-16 02:41:00', + 'updated_at' => '2018-06-16 02:43:51', + ), + 4 => + array ( + 'id' => 5, + 'category_id' => 0, + 'goods_sn' => '', + 'goods_name' => '联想大连未来城项目', + 'brand_id' => 4, + 'goods_number' => 12, + 'keywords' => '大连未来城塑造全新官网', + 'goods_brief' => '采用“滚动视差”进行设计,多层背景以不同的速度移动,形成立体的运动效果,从不同的空间角度为用户带来非常惊艳的视觉体验', + 'goods_desc' => '


    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '20000.00', + 'freight_price' => '0.00', + 'extra_price' => '20000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/0f5b746b3e22b97431815864412db461.jpg', + 'list_pic_url' => '["images\\/5853d0e097916ed38672af1743f4669b.jpg"]', + 'retail_price' => '40000.00', + 'sell_volume' => 0, + 'primary_product_id' => 0, + 'unit_price' => '40000.00', + 'promotion_desc' => '暂无优惠', + 'promotion_tag' => '暂无优惠', + 'vip_exclusive_price' => '20000.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 0, + 'created_at' => '2018-06-23 03:58:30', + 'updated_at' => '2018-06-23 09:54:08', + ), + 5 => + array ( + 'id' => 6, + 'category_id' => 9, + 'goods_sn' => '', + 'goods_name' => '仿游戏平台', + 'brand_id' => 4, + 'goods_number' => 11, + 'keywords' => '仿游戏平台,让爱玩游戏的朋友通过做游戏任务获得相应利益。', + 'goods_brief' => '仿游戏平台,让爱玩游戏的朋友通过做游戏任务获得相应利益。', + 'goods_desc' => '




    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '20000.00', + 'freight_price' => '0.00', + 'extra_price' => '10000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/a58a626dfa884e7a078510c0a5bdd4d9.jpg', + 'list_pic_url' => '["images\\/d1a1a08014cc0e203fa6e2513f015b4f.jpg"]', + 'retail_price' => '30000.00', + 'sell_volume' => 0, + 'primary_product_id' => 0, + 'unit_price' => '30000.00', + 'promotion_desc' => '暂无优惠', + 'promotion_tag' => '暂无优惠', + 'vip_exclusive_price' => '0.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 0, + 'created_at' => '2018-06-23 05:14:21', + 'updated_at' => '2018-06-23 10:00:33', + ), + 6 => + array ( + 'id' => 7, + 'category_id' => 9, + 'goods_sn' => '', + 'goods_name' => '仿医疗APP', + 'brand_id' => 4, + 'goods_number' => 100, + 'keywords' => '医疗APP系统', + 'goods_brief' => '医疗APP系统', + 'goods_desc' => '




    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '20000.00', + 'freight_price' => '0.00', + 'extra_price' => '10000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/e9d575f23f53ebb162ad2614ae3594a6.png', + 'list_pic_url' => '["images\\/b5c71efb6e8c2d351fb8999144455f9f.jpg"]', + 'retail_price' => '30000.00', + 'sell_volume' => 10, + 'primary_product_id' => 0, + 'unit_price' => '30000.00', + 'promotion_desc' => '暂无优惠', + 'promotion_tag' => '暂无优惠', + 'vip_exclusive_price' => '0.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 0, + 'created_at' => '2018-06-23 10:09:39', + 'updated_at' => '2018-06-23 10:12:33', + ), + 7 => + array ( + 'id' => 8, + 'category_id' => 3, + 'goods_sn' => '', + 'goods_name' => '旅游类项目1', + 'brand_id' => 4, + 'goods_number' => 10, + 'keywords' => '旅游类APP和微信小程序系统', + 'goods_brief' => '旅游类APP和微信小程序系统', + 'goods_desc' => '


    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '40000.00', + 'freight_price' => '0.00', + 'extra_price' => '10000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/104735724f1cf95d1aa019b5a8eb5751.png', + 'list_pic_url' => '["images\\/407d489d4ccf6ced57d6eacdf4e5fd2f.png"]', + 'retail_price' => '50000.00', + 'sell_volume' => 1, + 'primary_product_id' => 0, + 'unit_price' => '50000.00', + 'promotion_desc' => '暂无', + 'promotion_tag' => '暂无', + 'vip_exclusive_price' => '0.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 0, + 'created_at' => '2018-06-23 10:20:35', + 'updated_at' => '2018-06-23 10:20:35', + ), + 8 => + array ( + 'id' => 9, + 'category_id' => 3, + 'goods_sn' => '', + 'goods_name' => '旅游相关项目2', + 'brand_id' => 4, + 'goods_number' => 10, + 'keywords' => '旅游相关app和微信小程序系统', + 'goods_brief' => '旅游相关app和微信小程序系统', + 'goods_desc' => '


    ', + 'is_on_sale' => 1, + 'sort_order' => 255, + 'is_delete' => 0, + 'attribute_category' => 0, + 'counter_price' => '50000.00', + 'freight_price' => '0.00', + 'extra_price' => '10000.00', + 'is_new' => 1, + 'goods_unit' => '', + 'primary_pic_url' => 'images/82a32a00480f24425c3313373c24ab3a.png', + 'list_pic_url' => '["images\\/31968030c7065ddecdbb8cbce666f4e3.png","images\\/944ff15cbfdb436a8efeb7c92d655b53.png"]', + 'retail_price' => '60000.00', + 'sell_volume' => 0, + 'primary_product_id' => 0, + 'unit_price' => '60000.00', + 'promotion_desc' => '暂无', + 'promotion_tag' => '暂无', + 'vip_exclusive_price' => '0.00', + 'is_vip_exclusive' => 0, + 'is_limited' => 0, + 'is_hot' => 1, + 'created_at' => '2018-06-23 10:28:34', + 'updated_at' => '2018-06-23 10:28:34', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopOrderExpressTableSeeder.php b/database/seeds/ShopOrderExpressTableSeeder.php new file mode 100644 index 0000000..3180cdf --- /dev/null +++ b/database/seeds/ShopOrderExpressTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopOrderGoodsTableSeeder.php b/database/seeds/ShopOrderGoodsTableSeeder.php new file mode 100644 index 0000000..96f956d --- /dev/null +++ b/database/seeds/ShopOrderGoodsTableSeeder.php @@ -0,0 +1,384 @@ +delete(); + + \DB::table('shop_order_goods')->insert(array ( + 0 => + array ( + 'id' => 4, + 'order_id' => 6, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 1 => + array ( + 'id' => 5, + 'order_id' => 6, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 2 => + array ( + 'id' => 6, + 'order_id' => 6, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 3 => + array ( + 'id' => 7, + 'order_id' => 7, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 4 => + array ( + 'id' => 8, + 'order_id' => 7, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 5 => + array ( + 'id' => 9, + 'order_id' => 7, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 6 => + array ( + 'id' => 10, + 'order_id' => 8, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 7 => + array ( + 'id' => 11, + 'order_id' => 8, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 8 => + array ( + 'id' => 12, + 'order_id' => 8, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 9 => + array ( + 'id' => 13, + 'order_id' => 9, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 10 => + array ( + 'id' => 14, + 'order_id' => 9, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 11 => + array ( + 'id' => 15, + 'order_id' => 9, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 12 => + array ( + 'id' => 16, + 'order_id' => 21, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 13 => + array ( + 'id' => 17, + 'order_id' => 21, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 14 => + array ( + 'id' => 18, + 'order_id' => 21, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 15 => + array ( + 'id' => 19, + 'order_id' => 22, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 16 => + array ( + 'id' => 20, + 'order_id' => 22, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 17 => + array ( + 'id' => 21, + 'order_id' => 22, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 18 => + array ( + 'id' => 22, + 'order_id' => 23, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 2, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 19 => + array ( + 'id' => 23, + 'order_id' => 23, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 20 => + array ( + 'id' => 24, + 'order_id' => 23, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 1, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 21 => + array ( + 'id' => 25, + 'order_id' => 24, + 'goods_id' => 2, + 'goods_name' => '测试', + 'number' => 1, + 'market_price' => '1.00', + 'retail_price' => '11.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/9d15c8f5dd600fe186f51ad1d51e095f.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 22 => + array ( + 'id' => 26, + 'order_id' => 24, + 'goods_id' => 3, + 'goods_name' => '越南进口红心火龙果 3个装 大果', + 'number' => 4, + 'market_price' => '44.00', + 'retail_price' => '44.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/a204d50e68dea8f2797b0ea29dc0bc2d.jpg', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + 23 => + array ( + 'id' => 27, + 'order_id' => 24, + 'goods_id' => 1, + 'goods_name' => '打算范德萨', + 'number' => 3, + 'market_price' => '12.00', + 'retail_price' => '213.00', + 'goods_specifition_name_value' => NULL, + 'is_real' => 1, + 'list_pic_url' => 'images/c82d319abd7a28d87f43b7af149750f3.png', + 'created_at' => NULL, + 'updated_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopOrderTableSeeder.php b/database/seeds/ShopOrderTableSeeder.php new file mode 100644 index 0000000..8075a44 --- /dev/null +++ b/database/seeds/ShopOrderTableSeeder.php @@ -0,0 +1,312 @@ +delete(); + + \DB::table('shop_order')->insert(array ( + 0 => + array ( + 'id' => 6, + 'order_sn' => '191058291485698700001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 08:47:36', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 08:47:36', + 'updated_at' => '2018-06-21 08:47:36', + ), + 1 => + array ( + 'id' => 7, + 'order_sn' => '124058291487275500001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 08:47:52', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 08:47:52', + 'updated_at' => '2018-06-21 08:47:52', + ), + 2 => + array ( + 'id' => 8, + 'order_sn' => '159058291497453200001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 08:49:34', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 08:49:34', + 'updated_at' => '2018-06-21 08:49:34', + ), + 3 => + array ( + 'id' => 9, + 'order_sn' => '150058291504125900001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 08:50:41', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 08:50:41', + 'updated_at' => '2018-06-21 08:50:41', + ), + 4 => + array ( + 'id' => 21, + 'order_sn' => '188058291604682400001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 09:07:26', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 09:07:26', + 'updated_at' => '2018-06-21 09:07:26', + ), + 5 => + array ( + 'id' => 22, + 'order_sn' => '166058291886492600001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 09:54:24', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 09:54:24', + 'updated_at' => '2018-06-21 09:54:24', + ), + 6 => + array ( + 'id' => 23, + 'order_sn' => '122058291930124500001', + 'trade_no' => '', + 'uid' => 0, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '打卡发放山东矿机阿范德萨发卡仕达', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-21 10:01:41', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-21 10:01:41', + 'updated_at' => '2018-06-21 10:01:41', + ), + 7 => + array ( + 'id' => 24, + 'order_sn' => '119058297768038000301', + 'trade_no' => '', + 'uid' => 3, + 'order_status' => 10, + 'shipping_status' => 0, + 'pay_status' => 0, + 'consignee' => '史庆闯', + 'country' => 1, + 'province' => 2, + 'city' => 37, + 'district' => 407, + 'address' => '都发到撒多多撒大所', + 'mobile' => '13717674036', + 'postscript' => '用户无留言', + 'shipping_fee' => '0.00', + 'pay_name' => '微信支付', + 'pay_id' => 1, + 'actual_price' => '268.00', + 'integral' => 0, + 'integral_money' => '0.00', + 'order_price' => '268.00', + 'goods_price' => '268.00', + 'add_time' => '2018-06-22 02:14:40', + 'confirm_time' => '1970-01-01 08:00:01', + 'pay_time' => 0, + 'freight_price' => 0, + 'coupon_id' => 0, + 'parent_id' => 0, + 'coupon_price' => '0.00', + 'callback_status' => 0, + 'created_at' => '2018-06-22 02:14:40', + 'updated_at' => '2018-06-22 02:14:40', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopProductTableSeeder.php b/database/seeds/ShopProductTableSeeder.php new file mode 100644 index 0000000..23a3338 --- /dev/null +++ b/database/seeds/ShopProductTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopRegionTableSeeder.php b/database/seeds/ShopRegionTableSeeder.php new file mode 100644 index 0000000..fa9f1fb --- /dev/null +++ b/database/seeds/ShopRegionTableSeeder.php @@ -0,0 +1,40470 @@ +delete(); + + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 1, + 'parent_id' => 0, + 'name' => '中国', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 0, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 2, + 'parent_id' => 1, + 'name' => '北京', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 3, + 'parent_id' => 1, + 'name' => '天津', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 4, + 'parent_id' => 1, + 'name' => '河北省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 5, + 'parent_id' => 1, + 'name' => '山西省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 6, + 'parent_id' => 1, + 'name' => '内蒙古自治区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 7, + 'parent_id' => 1, + 'name' => '辽宁省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 8, + 'parent_id' => 1, + 'name' => '吉林省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 9, + 'parent_id' => 1, + 'name' => '黑龙江省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 10, + 'parent_id' => 1, + 'name' => '上海', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 11, + 'parent_id' => 1, + 'name' => '江苏省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 12, + 'parent_id' => 1, + 'name' => '浙江省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 13, + 'parent_id' => 1, + 'name' => '安徽省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 14, + 'parent_id' => 1, + 'name' => '福建省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 15, + 'parent_id' => 1, + 'name' => '江西省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 16, + 'parent_id' => 1, + 'name' => '山东省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 17, + 'parent_id' => 1, + 'name' => '河南省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 18, + 'parent_id' => 1, + 'name' => '湖北省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 19, + 'parent_id' => 1, + 'name' => '湖南省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 20, + 'parent_id' => 1, + 'name' => '广东省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 21, + 'parent_id' => 1, + 'name' => '广西壮族自治区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 22, + 'parent_id' => 1, + 'name' => '海南省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 23, + 'parent_id' => 1, + 'name' => '重庆', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 24, + 'parent_id' => 1, + 'name' => '四川省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 25, + 'parent_id' => 1, + 'name' => '贵州省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 26, + 'parent_id' => 1, + 'name' => '云南省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 27, + 'parent_id' => 1, + 'name' => '西藏自治区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 28, + 'parent_id' => 1, + 'name' => '陕西省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 29, + 'parent_id' => 1, + 'name' => '甘肃省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 30, + 'parent_id' => 1, + 'name' => '青海省', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 31, + 'parent_id' => 1, + 'name' => '宁夏回族自治区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 32, + 'parent_id' => 1, + 'name' => '新疆维吾尔自治区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 33, + 'parent_id' => 1, + 'name' => '台湾', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 34, + 'parent_id' => 1, + 'name' => '香港特别行政区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 35, + 'parent_id' => 1, + 'name' => '澳门特别行政区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 36, + 'parent_id' => 1, + 'name' => '海外', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 1, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 37, + 'parent_id' => 2, + 'name' => '北京市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 38, + 'parent_id' => 3, + 'name' => '天津市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 39, + 'parent_id' => 4, + 'name' => '石家庄市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 40, + 'parent_id' => 4, + 'name' => '唐山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 41, + 'parent_id' => 4, + 'name' => '秦皇岛市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 42, + 'parent_id' => 4, + 'name' => '邯郸市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 43, + 'parent_id' => 4, + 'name' => '邢台市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 44, + 'parent_id' => 4, + 'name' => '保定市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 45, + 'parent_id' => 4, + 'name' => '张家口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 46, + 'parent_id' => 4, + 'name' => '承德市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 47, + 'parent_id' => 4, + 'name' => '沧州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 48, + 'parent_id' => 4, + 'name' => '廊坊市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 49, + 'parent_id' => 4, + 'name' => '衡水市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 50, + 'parent_id' => 5, + 'name' => '太原市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 51, + 'parent_id' => 5, + 'name' => '大同市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 52, + 'parent_id' => 5, + 'name' => '阳泉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 53, + 'parent_id' => 5, + 'name' => '长治市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 54, + 'parent_id' => 5, + 'name' => '晋城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 55, + 'parent_id' => 5, + 'name' => '朔州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 56, + 'parent_id' => 5, + 'name' => '晋中市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 57, + 'parent_id' => 5, + 'name' => '运城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 58, + 'parent_id' => 5, + 'name' => '忻州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 59, + 'parent_id' => 5, + 'name' => '临汾市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 60, + 'parent_id' => 5, + 'name' => '吕梁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 61, + 'parent_id' => 6, + 'name' => '呼和浩特市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 62, + 'parent_id' => 6, + 'name' => '包头市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 63, + 'parent_id' => 6, + 'name' => '乌海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 64, + 'parent_id' => 6, + 'name' => '赤峰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 65, + 'parent_id' => 6, + 'name' => '通辽市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 66, + 'parent_id' => 6, + 'name' => '鄂尔多斯市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 67, + 'parent_id' => 6, + 'name' => '呼伦贝尔市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 68, + 'parent_id' => 6, + 'name' => '巴彦淖尔市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 69, + 'parent_id' => 6, + 'name' => '乌兰察布市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 70, + 'parent_id' => 6, + 'name' => '兴安盟', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 71, + 'parent_id' => 6, + 'name' => '锡林郭勒盟', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 72, + 'parent_id' => 6, + 'name' => '阿拉善盟', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 73, + 'parent_id' => 7, + 'name' => '沈阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 74, + 'parent_id' => 7, + 'name' => '大连市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 75, + 'parent_id' => 7, + 'name' => '鞍山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 76, + 'parent_id' => 7, + 'name' => '抚顺市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 77, + 'parent_id' => 7, + 'name' => '本溪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 78, + 'parent_id' => 7, + 'name' => '丹东市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 79, + 'parent_id' => 7, + 'name' => '锦州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 80, + 'parent_id' => 7, + 'name' => '营口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 81, + 'parent_id' => 7, + 'name' => '阜新市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 82, + 'parent_id' => 7, + 'name' => '辽阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 83, + 'parent_id' => 7, + 'name' => '盘锦市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 84, + 'parent_id' => 7, + 'name' => '铁岭市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 85, + 'parent_id' => 7, + 'name' => '朝阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 86, + 'parent_id' => 7, + 'name' => '葫芦岛市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 87, + 'parent_id' => 8, + 'name' => '长春市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 88, + 'parent_id' => 8, + 'name' => '吉林市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 89, + 'parent_id' => 8, + 'name' => '四平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 90, + 'parent_id' => 8, + 'name' => '辽源市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 91, + 'parent_id' => 8, + 'name' => '通化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 92, + 'parent_id' => 8, + 'name' => '白山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 93, + 'parent_id' => 8, + 'name' => '松原市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 94, + 'parent_id' => 8, + 'name' => '白城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 95, + 'parent_id' => 8, + 'name' => '延边朝鲜族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 96, + 'parent_id' => 9, + 'name' => '哈尔滨市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 97, + 'parent_id' => 9, + 'name' => '齐齐哈尔市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 98, + 'parent_id' => 9, + 'name' => '鸡西市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 99, + 'parent_id' => 9, + 'name' => '鹤岗市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 100, + 'parent_id' => 9, + 'name' => '双鸭山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 101, + 'parent_id' => 9, + 'name' => '大庆市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 102, + 'parent_id' => 9, + 'name' => '伊春市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 103, + 'parent_id' => 9, + 'name' => '佳木斯市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 104, + 'parent_id' => 9, + 'name' => '七台河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 105, + 'parent_id' => 9, + 'name' => '牡丹江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 106, + 'parent_id' => 9, + 'name' => '黑河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 107, + 'parent_id' => 9, + 'name' => '绥化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 108, + 'parent_id' => 9, + 'name' => '大兴安岭地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 109, + 'parent_id' => 10, + 'name' => '上海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 110, + 'parent_id' => 11, + 'name' => '南京市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 111, + 'parent_id' => 11, + 'name' => '无锡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 112, + 'parent_id' => 11, + 'name' => '徐州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 113, + 'parent_id' => 11, + 'name' => '常州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 114, + 'parent_id' => 11, + 'name' => '苏州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 115, + 'parent_id' => 11, + 'name' => '南通市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 116, + 'parent_id' => 11, + 'name' => '连云港市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 117, + 'parent_id' => 11, + 'name' => '淮安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 118, + 'parent_id' => 11, + 'name' => '盐城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 119, + 'parent_id' => 11, + 'name' => '扬州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 120, + 'parent_id' => 11, + 'name' => '镇江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 121, + 'parent_id' => 11, + 'name' => '泰州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 122, + 'parent_id' => 11, + 'name' => '宿迁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 123, + 'parent_id' => 12, + 'name' => '杭州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 124, + 'parent_id' => 12, + 'name' => '宁波市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 125, + 'parent_id' => 12, + 'name' => '温州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 126, + 'parent_id' => 12, + 'name' => '嘉兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 127, + 'parent_id' => 12, + 'name' => '湖州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 128, + 'parent_id' => 12, + 'name' => '绍兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 129, + 'parent_id' => 12, + 'name' => '金华市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 130, + 'parent_id' => 12, + 'name' => '衢州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 131, + 'parent_id' => 12, + 'name' => '舟山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 132, + 'parent_id' => 12, + 'name' => '台州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 133, + 'parent_id' => 12, + 'name' => '丽水市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 134, + 'parent_id' => 13, + 'name' => '合肥市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 135, + 'parent_id' => 13, + 'name' => '芜湖市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 136, + 'parent_id' => 13, + 'name' => '蚌埠市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 137, + 'parent_id' => 13, + 'name' => '淮南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 138, + 'parent_id' => 13, + 'name' => '马鞍山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 139, + 'parent_id' => 13, + 'name' => '淮北市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 140, + 'parent_id' => 13, + 'name' => '铜陵市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 141, + 'parent_id' => 13, + 'name' => '安庆市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 142, + 'parent_id' => 13, + 'name' => '黄山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 143, + 'parent_id' => 13, + 'name' => '滁州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 144, + 'parent_id' => 13, + 'name' => '阜阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 145, + 'parent_id' => 13, + 'name' => '宿州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 146, + 'parent_id' => 13, + 'name' => '六安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 147, + 'parent_id' => 13, + 'name' => '亳州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 148, + 'parent_id' => 13, + 'name' => '池州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 149, + 'parent_id' => 13, + 'name' => '宣城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 150, + 'parent_id' => 14, + 'name' => '福州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 151, + 'parent_id' => 14, + 'name' => '厦门市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 152, + 'parent_id' => 14, + 'name' => '莆田市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 153, + 'parent_id' => 14, + 'name' => '三明市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 154, + 'parent_id' => 14, + 'name' => '泉州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 155, + 'parent_id' => 14, + 'name' => '漳州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 156, + 'parent_id' => 14, + 'name' => '南平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 157, + 'parent_id' => 14, + 'name' => '龙岩市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 158, + 'parent_id' => 14, + 'name' => '宁德市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 159, + 'parent_id' => 15, + 'name' => '南昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 160, + 'parent_id' => 15, + 'name' => '景德镇市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 161, + 'parent_id' => 15, + 'name' => '萍乡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 162, + 'parent_id' => 15, + 'name' => '九江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 163, + 'parent_id' => 15, + 'name' => '新余市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 164, + 'parent_id' => 15, + 'name' => '鹰潭市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 165, + 'parent_id' => 15, + 'name' => '赣州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 166, + 'parent_id' => 15, + 'name' => '吉安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 167, + 'parent_id' => 15, + 'name' => '宜春市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 168, + 'parent_id' => 15, + 'name' => '抚州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 169, + 'parent_id' => 15, + 'name' => '上饶市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 170, + 'parent_id' => 16, + 'name' => '济南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 171, + 'parent_id' => 16, + 'name' => '青岛市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 172, + 'parent_id' => 16, + 'name' => '淄博市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 173, + 'parent_id' => 16, + 'name' => '枣庄市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 174, + 'parent_id' => 16, + 'name' => '东营市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 175, + 'parent_id' => 16, + 'name' => '烟台市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 176, + 'parent_id' => 16, + 'name' => '潍坊市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 177, + 'parent_id' => 16, + 'name' => '济宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 178, + 'parent_id' => 16, + 'name' => '泰安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 179, + 'parent_id' => 16, + 'name' => '威海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 180, + 'parent_id' => 16, + 'name' => '日照市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 181, + 'parent_id' => 16, + 'name' => '莱芜市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 182, + 'parent_id' => 16, + 'name' => '临沂市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 183, + 'parent_id' => 16, + 'name' => '德州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 184, + 'parent_id' => 16, + 'name' => '聊城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 185, + 'parent_id' => 16, + 'name' => '滨州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 186, + 'parent_id' => 16, + 'name' => '菏泽市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 187, + 'parent_id' => 17, + 'name' => '郑州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 188, + 'parent_id' => 17, + 'name' => '开封市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 189, + 'parent_id' => 17, + 'name' => '洛阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 190, + 'parent_id' => 17, + 'name' => '平顶山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 191, + 'parent_id' => 17, + 'name' => '安阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 192, + 'parent_id' => 17, + 'name' => '鹤壁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 193, + 'parent_id' => 17, + 'name' => '新乡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 194, + 'parent_id' => 17, + 'name' => '焦作市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 195, + 'parent_id' => 17, + 'name' => '濮阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 196, + 'parent_id' => 17, + 'name' => '许昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 197, + 'parent_id' => 17, + 'name' => '漯河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 198, + 'parent_id' => 17, + 'name' => '三门峡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 199, + 'parent_id' => 17, + 'name' => '南阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 200, + 'parent_id' => 17, + 'name' => '商丘市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 201, + 'parent_id' => 17, + 'name' => '信阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 202, + 'parent_id' => 17, + 'name' => '周口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 203, + 'parent_id' => 17, + 'name' => '驻马店市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 204, + 'parent_id' => 18, + 'name' => '武汉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 205, + 'parent_id' => 18, + 'name' => '黄石市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 206, + 'parent_id' => 18, + 'name' => '十堰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 207, + 'parent_id' => 18, + 'name' => '宜昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 208, + 'parent_id' => 18, + 'name' => '襄阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 209, + 'parent_id' => 18, + 'name' => '鄂州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 210, + 'parent_id' => 18, + 'name' => '荆门市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 211, + 'parent_id' => 18, + 'name' => '孝感市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 212, + 'parent_id' => 18, + 'name' => '荆州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 213, + 'parent_id' => 18, + 'name' => '黄冈市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 214, + 'parent_id' => 18, + 'name' => '咸宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 215, + 'parent_id' => 18, + 'name' => '随州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 216, + 'parent_id' => 18, + 'name' => '恩施土家族苗族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 217, + 'parent_id' => 19, + 'name' => '长沙市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 218, + 'parent_id' => 19, + 'name' => '株洲市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 219, + 'parent_id' => 19, + 'name' => '湘潭市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 220, + 'parent_id' => 19, + 'name' => '衡阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 221, + 'parent_id' => 19, + 'name' => '邵阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 222, + 'parent_id' => 19, + 'name' => '岳阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 223, + 'parent_id' => 19, + 'name' => '常德市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 224, + 'parent_id' => 19, + 'name' => '张家界市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 225, + 'parent_id' => 19, + 'name' => '益阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 226, + 'parent_id' => 19, + 'name' => '郴州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 227, + 'parent_id' => 19, + 'name' => '永州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 228, + 'parent_id' => 19, + 'name' => '怀化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 229, + 'parent_id' => 19, + 'name' => '娄底市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 230, + 'parent_id' => 19, + 'name' => '湘西土家族苗族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 231, + 'parent_id' => 20, + 'name' => '广州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 232, + 'parent_id' => 20, + 'name' => '韶关市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 233, + 'parent_id' => 20, + 'name' => '深圳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 234, + 'parent_id' => 20, + 'name' => '珠海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 235, + 'parent_id' => 20, + 'name' => '汕头市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 236, + 'parent_id' => 20, + 'name' => '佛山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 237, + 'parent_id' => 20, + 'name' => '江门市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 238, + 'parent_id' => 20, + 'name' => '湛江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 239, + 'parent_id' => 20, + 'name' => '茂名市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 240, + 'parent_id' => 20, + 'name' => '肇庆市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 241, + 'parent_id' => 20, + 'name' => '惠州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 242, + 'parent_id' => 20, + 'name' => '梅州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 243, + 'parent_id' => 20, + 'name' => '汕尾市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 244, + 'parent_id' => 20, + 'name' => '河源市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 245, + 'parent_id' => 20, + 'name' => '阳江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 246, + 'parent_id' => 20, + 'name' => '清远市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 247, + 'parent_id' => 20, + 'name' => '东莞市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 248, + 'parent_id' => 20, + 'name' => '中山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 249, + 'parent_id' => 20, + 'name' => '东沙群岛', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 250, + 'parent_id' => 20, + 'name' => '潮州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 251, + 'parent_id' => 20, + 'name' => '揭阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 252, + 'parent_id' => 20, + 'name' => '云浮市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 253, + 'parent_id' => 21, + 'name' => '南宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 254, + 'parent_id' => 21, + 'name' => '柳州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 255, + 'parent_id' => 21, + 'name' => '桂林市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 256, + 'parent_id' => 21, + 'name' => '梧州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 257, + 'parent_id' => 21, + 'name' => '北海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 258, + 'parent_id' => 21, + 'name' => '防城港市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 259, + 'parent_id' => 21, + 'name' => '钦州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 260, + 'parent_id' => 21, + 'name' => '贵港市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 261, + 'parent_id' => 21, + 'name' => '玉林市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 262, + 'parent_id' => 21, + 'name' => '百色市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 263, + 'parent_id' => 21, + 'name' => '贺州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 264, + 'parent_id' => 21, + 'name' => '河池市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 265, + 'parent_id' => 21, + 'name' => '来宾市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 266, + 'parent_id' => 21, + 'name' => '崇左市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 267, + 'parent_id' => 22, + 'name' => '海口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 268, + 'parent_id' => 22, + 'name' => '三亚市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 269, + 'parent_id' => 22, + 'name' => '三沙市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 270, + 'parent_id' => 23, + 'name' => '重庆市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 271, + 'parent_id' => 24, + 'name' => '成都市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 272, + 'parent_id' => 24, + 'name' => '自贡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 273, + 'parent_id' => 24, + 'name' => '攀枝花市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 274, + 'parent_id' => 24, + 'name' => '泸州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 275, + 'parent_id' => 24, + 'name' => '德阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 276, + 'parent_id' => 24, + 'name' => '绵阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 277, + 'parent_id' => 24, + 'name' => '广元市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 278, + 'parent_id' => 24, + 'name' => '遂宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 279, + 'parent_id' => 24, + 'name' => '内江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 280, + 'parent_id' => 24, + 'name' => '乐山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 281, + 'parent_id' => 24, + 'name' => '南充市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 282, + 'parent_id' => 24, + 'name' => '眉山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 283, + 'parent_id' => 24, + 'name' => '宜宾市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 284, + 'parent_id' => 24, + 'name' => '广安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 285, + 'parent_id' => 24, + 'name' => '达州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 286, + 'parent_id' => 24, + 'name' => '雅安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 287, + 'parent_id' => 24, + 'name' => '巴中市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 288, + 'parent_id' => 24, + 'name' => '资阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 289, + 'parent_id' => 24, + 'name' => '阿坝藏族羌族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 290, + 'parent_id' => 24, + 'name' => '甘孜藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 291, + 'parent_id' => 24, + 'name' => '凉山彝族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 292, + 'parent_id' => 25, + 'name' => '贵阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 293, + 'parent_id' => 25, + 'name' => '六盘水市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 294, + 'parent_id' => 25, + 'name' => '遵义市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 295, + 'parent_id' => 25, + 'name' => '安顺市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 296, + 'parent_id' => 25, + 'name' => '铜仁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 297, + 'parent_id' => 25, + 'name' => '黔西南布依族苗族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 298, + 'parent_id' => 25, + 'name' => '毕节市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 299, + 'parent_id' => 25, + 'name' => '黔东南苗族侗族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 300, + 'parent_id' => 25, + 'name' => '黔南布依族苗族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 301, + 'parent_id' => 26, + 'name' => '昆明市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 302, + 'parent_id' => 26, + 'name' => '曲靖市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 303, + 'parent_id' => 26, + 'name' => '玉溪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 304, + 'parent_id' => 26, + 'name' => '保山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 305, + 'parent_id' => 26, + 'name' => '昭通市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 306, + 'parent_id' => 26, + 'name' => '丽江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 307, + 'parent_id' => 26, + 'name' => '普洱市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 308, + 'parent_id' => 26, + 'name' => '临沧市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 309, + 'parent_id' => 26, + 'name' => '楚雄彝族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 310, + 'parent_id' => 26, + 'name' => '红河哈尼族彝族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 311, + 'parent_id' => 26, + 'name' => '文山壮族苗族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 312, + 'parent_id' => 26, + 'name' => '西双版纳傣族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 313, + 'parent_id' => 26, + 'name' => '大理白族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 314, + 'parent_id' => 26, + 'name' => '德宏傣族景颇族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 315, + 'parent_id' => 26, + 'name' => '怒江傈僳族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 316, + 'parent_id' => 26, + 'name' => '迪庆藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 317, + 'parent_id' => 27, + 'name' => '拉萨市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 318, + 'parent_id' => 27, + 'name' => '昌都市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 319, + 'parent_id' => 27, + 'name' => '山南地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 320, + 'parent_id' => 27, + 'name' => '日喀则市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 321, + 'parent_id' => 27, + 'name' => '那曲地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 322, + 'parent_id' => 27, + 'name' => '阿里地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 323, + 'parent_id' => 27, + 'name' => '林芝市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 324, + 'parent_id' => 28, + 'name' => '西安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 325, + 'parent_id' => 28, + 'name' => '铜川市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 326, + 'parent_id' => 28, + 'name' => '宝鸡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 327, + 'parent_id' => 28, + 'name' => '咸阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 328, + 'parent_id' => 28, + 'name' => '渭南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 329, + 'parent_id' => 28, + 'name' => '延安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 330, + 'parent_id' => 28, + 'name' => '汉中市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 331, + 'parent_id' => 28, + 'name' => '榆林市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 332, + 'parent_id' => 28, + 'name' => '安康市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 333, + 'parent_id' => 28, + 'name' => '商洛市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 334, + 'parent_id' => 29, + 'name' => '兰州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 335, + 'parent_id' => 29, + 'name' => '嘉峪关市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 336, + 'parent_id' => 29, + 'name' => '金昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 337, + 'parent_id' => 29, + 'name' => '白银市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 338, + 'parent_id' => 29, + 'name' => '天水市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 339, + 'parent_id' => 29, + 'name' => '武威市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 340, + 'parent_id' => 29, + 'name' => '张掖市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 341, + 'parent_id' => 29, + 'name' => '平凉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 342, + 'parent_id' => 29, + 'name' => '酒泉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 343, + 'parent_id' => 29, + 'name' => '庆阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 344, + 'parent_id' => 29, + 'name' => '定西市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 345, + 'parent_id' => 29, + 'name' => '陇南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 346, + 'parent_id' => 29, + 'name' => '临夏回族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 347, + 'parent_id' => 29, + 'name' => '甘南藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 348, + 'parent_id' => 30, + 'name' => '西宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 349, + 'parent_id' => 30, + 'name' => '海东市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 350, + 'parent_id' => 30, + 'name' => '海北藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 351, + 'parent_id' => 30, + 'name' => '黄南藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 352, + 'parent_id' => 30, + 'name' => '海南藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 353, + 'parent_id' => 30, + 'name' => '果洛藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 354, + 'parent_id' => 30, + 'name' => '玉树藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 355, + 'parent_id' => 30, + 'name' => '海西蒙古族藏族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 356, + 'parent_id' => 31, + 'name' => '银川市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 357, + 'parent_id' => 31, + 'name' => '石嘴山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 358, + 'parent_id' => 31, + 'name' => '吴忠市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 359, + 'parent_id' => 31, + 'name' => '固原市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 360, + 'parent_id' => 31, + 'name' => '中卫市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 361, + 'parent_id' => 32, + 'name' => '乌鲁木齐市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 362, + 'parent_id' => 32, + 'name' => '克拉玛依市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 363, + 'parent_id' => 32, + 'name' => '吐鲁番市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 364, + 'parent_id' => 32, + 'name' => '哈密地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 365, + 'parent_id' => 32, + 'name' => '昌吉回族自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 366, + 'parent_id' => 32, + 'name' => '博尔塔拉蒙古自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 367, + 'parent_id' => 32, + 'name' => '巴音郭楞蒙古自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 368, + 'parent_id' => 32, + 'name' => '阿克苏地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 369, + 'parent_id' => 32, + 'name' => '克孜勒苏柯尔克孜自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 370, + 'parent_id' => 32, + 'name' => '喀什地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 371, + 'parent_id' => 32, + 'name' => '和田地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 372, + 'parent_id' => 32, + 'name' => '伊犁哈萨克自治州', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 373, + 'parent_id' => 32, + 'name' => '塔城地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 374, + 'parent_id' => 32, + 'name' => '阿勒泰地区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 375, + 'parent_id' => 33, + 'name' => '台北市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 376, + 'parent_id' => 33, + 'name' => '高雄市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 377, + 'parent_id' => 33, + 'name' => '台南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 378, + 'parent_id' => 33, + 'name' => '台中市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 379, + 'parent_id' => 33, + 'name' => '金门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 380, + 'parent_id' => 33, + 'name' => '南投县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 381, + 'parent_id' => 33, + 'name' => '基隆市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 382, + 'parent_id' => 33, + 'name' => '新竹市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 383, + 'parent_id' => 33, + 'name' => '嘉义市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 384, + 'parent_id' => 33, + 'name' => '新北市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 385, + 'parent_id' => 33, + 'name' => '宜兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 386, + 'parent_id' => 33, + 'name' => '新竹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 387, + 'parent_id' => 33, + 'name' => '桃园县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 388, + 'parent_id' => 33, + 'name' => '苗栗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 389, + 'parent_id' => 33, + 'name' => '彰化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 390, + 'parent_id' => 33, + 'name' => '嘉义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 391, + 'parent_id' => 33, + 'name' => '云林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 392, + 'parent_id' => 33, + 'name' => '屏东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 393, + 'parent_id' => 33, + 'name' => '台东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 394, + 'parent_id' => 33, + 'name' => '花莲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 395, + 'parent_id' => 33, + 'name' => '澎湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 396, + 'parent_id' => 33, + 'name' => '连江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 397, + 'parent_id' => 34, + 'name' => '香港岛', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 398, + 'parent_id' => 34, + 'name' => '九龙', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 399, + 'parent_id' => 34, + 'name' => '新界', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 400, + 'parent_id' => 35, + 'name' => '澳门半岛', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 401, + 'parent_id' => 35, + 'name' => '离岛', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 402, + 'parent_id' => 36, + 'name' => '海外', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 2, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 403, + 'parent_id' => 37, + 'name' => '东城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 404, + 'parent_id' => 37, + 'name' => '西城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 405, + 'parent_id' => 37, + 'name' => '崇文区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 406, + 'parent_id' => 37, + 'name' => '宣武区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 407, + 'parent_id' => 37, + 'name' => '朝阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 408, + 'parent_id' => 37, + 'name' => '丰台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 409, + 'parent_id' => 37, + 'name' => '石景山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 410, + 'parent_id' => 37, + 'name' => '海淀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 411, + 'parent_id' => 37, + 'name' => '门头沟区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 412, + 'parent_id' => 37, + 'name' => '房山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 413, + 'parent_id' => 37, + 'name' => '通州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 414, + 'parent_id' => 37, + 'name' => '顺义区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 415, + 'parent_id' => 37, + 'name' => '昌平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 416, + 'parent_id' => 37, + 'name' => '大兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 417, + 'parent_id' => 37, + 'name' => '怀柔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 418, + 'parent_id' => 37, + 'name' => '平谷区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 419, + 'parent_id' => 37, + 'name' => '密云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 420, + 'parent_id' => 37, + 'name' => '延庆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 421, + 'parent_id' => 37, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 422, + 'parent_id' => 38, + 'name' => '和平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 423, + 'parent_id' => 38, + 'name' => '河东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 424, + 'parent_id' => 38, + 'name' => '河西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 425, + 'parent_id' => 38, + 'name' => '南开区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 426, + 'parent_id' => 38, + 'name' => '河北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 427, + 'parent_id' => 38, + 'name' => '红桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 428, + 'parent_id' => 38, + 'name' => '塘沽区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 429, + 'parent_id' => 38, + 'name' => '汉沽区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 430, + 'parent_id' => 38, + 'name' => '大港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 431, + 'parent_id' => 38, + 'name' => '东丽区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 432, + 'parent_id' => 38, + 'name' => '西青区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 433, + 'parent_id' => 38, + 'name' => '津南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 434, + 'parent_id' => 38, + 'name' => '北辰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 435, + 'parent_id' => 38, + 'name' => '武清区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 436, + 'parent_id' => 38, + 'name' => '宝坻区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 437, + 'parent_id' => 38, + 'name' => '滨海新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 438, + 'parent_id' => 38, + 'name' => '宁河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 439, + 'parent_id' => 38, + 'name' => '静海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 440, + 'parent_id' => 38, + 'name' => '蓟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 441, + 'parent_id' => 38, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 442, + 'parent_id' => 39, + 'name' => '长安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 443, + 'parent_id' => 39, + 'name' => '桥东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 444, + 'parent_id' => 39, + 'name' => '桥西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 445, + 'parent_id' => 39, + 'name' => '新华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 446, + 'parent_id' => 39, + 'name' => '井陉矿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 447, + 'parent_id' => 39, + 'name' => '裕华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 448, + 'parent_id' => 39, + 'name' => '井陉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 449, + 'parent_id' => 39, + 'name' => '正定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 450, + 'parent_id' => 39, + 'name' => '栾城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 451, + 'parent_id' => 39, + 'name' => '行唐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 452, + 'parent_id' => 39, + 'name' => '灵寿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 453, + 'parent_id' => 39, + 'name' => '高邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 454, + 'parent_id' => 39, + 'name' => '深泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 455, + 'parent_id' => 39, + 'name' => '赞皇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 456, + 'parent_id' => 39, + 'name' => '无极县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 457, + 'parent_id' => 39, + 'name' => '平山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 458, + 'parent_id' => 39, + 'name' => '元氏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 459, + 'parent_id' => 39, + 'name' => '赵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 460, + 'parent_id' => 39, + 'name' => '辛集市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 461, + 'parent_id' => 39, + 'name' => '藁城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 462, + 'parent_id' => 39, + 'name' => '晋州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 463, + 'parent_id' => 39, + 'name' => '新乐市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 464, + 'parent_id' => 39, + 'name' => '鹿泉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 465, + 'parent_id' => 39, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 466, + 'parent_id' => 40, + 'name' => '路南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 467, + 'parent_id' => 40, + 'name' => '路北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 468, + 'parent_id' => 40, + 'name' => '古冶区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 469, + 'parent_id' => 40, + 'name' => '开平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 470, + 'parent_id' => 40, + 'name' => '丰南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 471, + 'parent_id' => 40, + 'name' => '丰润区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 472, + 'parent_id' => 40, + 'name' => '滦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 473, + 'parent_id' => 40, + 'name' => '滦南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 474, + 'parent_id' => 40, + 'name' => '乐亭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 475, + 'parent_id' => 40, + 'name' => '迁西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 476, + 'parent_id' => 40, + 'name' => '玉田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 477, + 'parent_id' => 40, + 'name' => '曹妃甸区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 478, + 'parent_id' => 40, + 'name' => '遵化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 479, + 'parent_id' => 40, + 'name' => '迁安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 480, + 'parent_id' => 40, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 481, + 'parent_id' => 41, + 'name' => '海港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 482, + 'parent_id' => 41, + 'name' => '山海关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 483, + 'parent_id' => 41, + 'name' => '北戴河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 484, + 'parent_id' => 41, + 'name' => '青龙满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 485, + 'parent_id' => 41, + 'name' => '昌黎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 486, + 'parent_id' => 41, + 'name' => '抚宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 487, + 'parent_id' => 41, + 'name' => '卢龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 488, + 'parent_id' => 41, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 489, + 'parent_id' => 41, + 'name' => '经济技术开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 490, + 'parent_id' => 42, + 'name' => '邯山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 491, + 'parent_id' => 42, + 'name' => '丛台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 492, + 'parent_id' => 42, + 'name' => '复兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 493, + 'parent_id' => 42, + 'name' => '峰峰矿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 494, + 'parent_id' => 42, + 'name' => '邯郸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 495, + 'parent_id' => 42, + 'name' => '临漳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 496, + 'parent_id' => 42, + 'name' => '成安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 497, + 'parent_id' => 42, + 'name' => '大名县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 498, + 'parent_id' => 42, + 'name' => '涉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 499, + 'parent_id' => 42, + 'name' => '磁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 500, + 'parent_id' => 42, + 'name' => '肥乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 501, + 'parent_id' => 42, + 'name' => '永年县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 502, + 'parent_id' => 42, + 'name' => '邱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 503, + 'parent_id' => 42, + 'name' => '鸡泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 504, + 'parent_id' => 42, + 'name' => '广平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 505, + 'parent_id' => 42, + 'name' => '馆陶县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 506, + 'parent_id' => 42, + 'name' => '魏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 507, + 'parent_id' => 42, + 'name' => '曲周县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 508, + 'parent_id' => 42, + 'name' => '武安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 509, + 'parent_id' => 42, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 510, + 'parent_id' => 43, + 'name' => '桥东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 511, + 'parent_id' => 43, + 'name' => '桥西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 512, + 'parent_id' => 43, + 'name' => '邢台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 513, + 'parent_id' => 43, + 'name' => '临城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 514, + 'parent_id' => 43, + 'name' => '内丘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 515, + 'parent_id' => 43, + 'name' => '柏乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 516, + 'parent_id' => 43, + 'name' => '隆尧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 517, + 'parent_id' => 43, + 'name' => '任县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 518, + 'parent_id' => 43, + 'name' => '南和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 519, + 'parent_id' => 43, + 'name' => '宁晋县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 520, + 'parent_id' => 43, + 'name' => '巨鹿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 521, + 'parent_id' => 43, + 'name' => '新河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 522, + 'parent_id' => 43, + 'name' => '广宗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 523, + 'parent_id' => 43, + 'name' => '平乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 524, + 'parent_id' => 43, + 'name' => '威县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 525, + 'parent_id' => 43, + 'name' => '清河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 526, + 'parent_id' => 43, + 'name' => '临西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 527, + 'parent_id' => 43, + 'name' => '南宫市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 528, + 'parent_id' => 43, + 'name' => '沙河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 529, + 'parent_id' => 43, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 530, + 'parent_id' => 44, + 'name' => '新市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 531, + 'parent_id' => 44, + 'name' => '北市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 532, + 'parent_id' => 44, + 'name' => '南市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 533, + 'parent_id' => 44, + 'name' => '满城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 534, + 'parent_id' => 44, + 'name' => '清苑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 535, + 'parent_id' => 44, + 'name' => '涞水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 536, + 'parent_id' => 44, + 'name' => '阜平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 537, + 'parent_id' => 44, + 'name' => '徐水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 538, + 'parent_id' => 44, + 'name' => '定兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 539, + 'parent_id' => 44, + 'name' => '唐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 540, + 'parent_id' => 44, + 'name' => '高阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 541, + 'parent_id' => 44, + 'name' => '容城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 542, + 'parent_id' => 44, + 'name' => '涞源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 543, + 'parent_id' => 44, + 'name' => '望都县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 544, + 'parent_id' => 44, + 'name' => '安新县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 545, + 'parent_id' => 44, + 'name' => '易县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 546, + 'parent_id' => 44, + 'name' => '曲阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 547, + 'parent_id' => 44, + 'name' => '蠡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 548, + 'parent_id' => 44, + 'name' => '顺平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 549, + 'parent_id' => 44, + 'name' => '博野县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 550, + 'parent_id' => 44, + 'name' => '雄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 551, + 'parent_id' => 44, + 'name' => '涿州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 552, + 'parent_id' => 44, + 'name' => '定州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 553, + 'parent_id' => 44, + 'name' => '安国市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 554, + 'parent_id' => 44, + 'name' => '高碑店市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 555, + 'parent_id' => 44, + 'name' => '高开区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 556, + 'parent_id' => 44, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 557, + 'parent_id' => 45, + 'name' => '桥东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 558, + 'parent_id' => 45, + 'name' => '桥西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 559, + 'parent_id' => 45, + 'name' => '宣化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 560, + 'parent_id' => 45, + 'name' => '下花园区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 561, + 'parent_id' => 45, + 'name' => '宣化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 562, + 'parent_id' => 45, + 'name' => '张北县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 563, + 'parent_id' => 45, + 'name' => '康保县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 564, + 'parent_id' => 45, + 'name' => '沽源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 565, + 'parent_id' => 45, + 'name' => '尚义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 566, + 'parent_id' => 45, + 'name' => '蔚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 567, + 'parent_id' => 45, + 'name' => '阳原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 568, + 'parent_id' => 45, + 'name' => '怀安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 569, + 'parent_id' => 45, + 'name' => '万全县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 570, + 'parent_id' => 45, + 'name' => '怀来县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 571, + 'parent_id' => 45, + 'name' => '涿鹿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 572, + 'parent_id' => 45, + 'name' => '赤城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 573, + 'parent_id' => 45, + 'name' => '崇礼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 574, + 'parent_id' => 45, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 575, + 'parent_id' => 46, + 'name' => '双桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 576, + 'parent_id' => 46, + 'name' => '双滦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 577, + 'parent_id' => 46, + 'name' => '鹰手营子矿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 578, + 'parent_id' => 46, + 'name' => '承德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 579, + 'parent_id' => 46, + 'name' => '兴隆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 580, + 'parent_id' => 46, + 'name' => '平泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 581, + 'parent_id' => 46, + 'name' => '滦平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 582, + 'parent_id' => 46, + 'name' => '隆化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 583, + 'parent_id' => 46, + 'name' => '丰宁满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 584, + 'parent_id' => 46, + 'name' => '宽城满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 585, + 'parent_id' => 46, + 'name' => '围场满族蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 586, + 'parent_id' => 46, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 587, + 'parent_id' => 47, + 'name' => '新华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 588, + 'parent_id' => 47, + 'name' => '运河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 589, + 'parent_id' => 47, + 'name' => '沧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 590, + 'parent_id' => 47, + 'name' => '青县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 591, + 'parent_id' => 47, + 'name' => '东光县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 592, + 'parent_id' => 47, + 'name' => '海兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 593, + 'parent_id' => 47, + 'name' => '盐山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 594, + 'parent_id' => 47, + 'name' => '肃宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 595, + 'parent_id' => 47, + 'name' => '南皮县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 596, + 'parent_id' => 47, + 'name' => '吴桥县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 597, + 'parent_id' => 47, + 'name' => '献县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 598, + 'parent_id' => 47, + 'name' => '孟村回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 599, + 'parent_id' => 47, + 'name' => '泊头市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 600, + 'parent_id' => 47, + 'name' => '任丘市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 601, + 'parent_id' => 47, + 'name' => '黄骅市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 602, + 'parent_id' => 47, + 'name' => '河间市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 603, + 'parent_id' => 47, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 604, + 'parent_id' => 48, + 'name' => '安次区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 605, + 'parent_id' => 48, + 'name' => '广阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 606, + 'parent_id' => 48, + 'name' => '固安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 607, + 'parent_id' => 48, + 'name' => '永清县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 608, + 'parent_id' => 48, + 'name' => '香河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 609, + 'parent_id' => 48, + 'name' => '大城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 610, + 'parent_id' => 48, + 'name' => '文安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 611, + 'parent_id' => 48, + 'name' => '大厂回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 612, + 'parent_id' => 48, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 613, + 'parent_id' => 48, + 'name' => '燕郊经济技术开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 614, + 'parent_id' => 48, + 'name' => '霸州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 615, + 'parent_id' => 48, + 'name' => '三河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 616, + 'parent_id' => 48, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 617, + 'parent_id' => 49, + 'name' => '桃城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 618, + 'parent_id' => 49, + 'name' => '枣强县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 619, + 'parent_id' => 49, + 'name' => '武邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 620, + 'parent_id' => 49, + 'name' => '武强县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 621, + 'parent_id' => 49, + 'name' => '饶阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 622, + 'parent_id' => 49, + 'name' => '安平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 623, + 'parent_id' => 49, + 'name' => '故城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 624, + 'parent_id' => 49, + 'name' => '景县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 625, + 'parent_id' => 49, + 'name' => '阜城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 626, + 'parent_id' => 49, + 'name' => '冀州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 627, + 'parent_id' => 49, + 'name' => '深州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 628, + 'parent_id' => 49, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 629, + 'parent_id' => 50, + 'name' => '小店区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 630, + 'parent_id' => 50, + 'name' => '迎泽区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 631, + 'parent_id' => 50, + 'name' => '杏花岭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 632, + 'parent_id' => 50, + 'name' => '尖草坪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 633, + 'parent_id' => 50, + 'name' => '万柏林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 634, + 'parent_id' => 50, + 'name' => '晋源区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 635, + 'parent_id' => 50, + 'name' => '清徐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 636, + 'parent_id' => 50, + 'name' => '阳曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 637, + 'parent_id' => 50, + 'name' => '娄烦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 638, + 'parent_id' => 50, + 'name' => '古交市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 639, + 'parent_id' => 50, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 640, + 'parent_id' => 51, + 'name' => '城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 641, + 'parent_id' => 51, + 'name' => '矿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 642, + 'parent_id' => 51, + 'name' => '南郊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 643, + 'parent_id' => 51, + 'name' => '新荣区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 644, + 'parent_id' => 51, + 'name' => '阳高县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 645, + 'parent_id' => 51, + 'name' => '天镇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 646, + 'parent_id' => 51, + 'name' => '广灵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 647, + 'parent_id' => 51, + 'name' => '灵丘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 648, + 'parent_id' => 51, + 'name' => '浑源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 649, + 'parent_id' => 51, + 'name' => '左云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 650, + 'parent_id' => 51, + 'name' => '大同县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 651, + 'parent_id' => 51, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 652, + 'parent_id' => 52, + 'name' => '城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 653, + 'parent_id' => 52, + 'name' => '矿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 654, + 'parent_id' => 52, + 'name' => '郊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 655, + 'parent_id' => 52, + 'name' => '平定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 656, + 'parent_id' => 52, + 'name' => '盂县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 657, + 'parent_id' => 52, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 658, + 'parent_id' => 53, + 'name' => '长治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 659, + 'parent_id' => 53, + 'name' => '襄垣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 660, + 'parent_id' => 53, + 'name' => '屯留县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 661, + 'parent_id' => 53, + 'name' => '平顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 662, + 'parent_id' => 53, + 'name' => '黎城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 663, + 'parent_id' => 53, + 'name' => '壶关县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 664, + 'parent_id' => 53, + 'name' => '长子县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 665, + 'parent_id' => 53, + 'name' => '武乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 666, + 'parent_id' => 53, + 'name' => '沁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 667, + 'parent_id' => 53, + 'name' => '沁源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 668, + 'parent_id' => 53, + 'name' => '潞城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 669, + 'parent_id' => 53, + 'name' => '城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 670, + 'parent_id' => 53, + 'name' => '郊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 671, + 'parent_id' => 53, + 'name' => '高新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 672, + 'parent_id' => 53, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 673, + 'parent_id' => 54, + 'name' => '城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 674, + 'parent_id' => 54, + 'name' => '沁水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 675, + 'parent_id' => 54, + 'name' => '阳城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 676, + 'parent_id' => 54, + 'name' => '陵川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 677, + 'parent_id' => 54, + 'name' => '泽州县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 678, + 'parent_id' => 54, + 'name' => '高平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 679, + 'parent_id' => 54, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 680, + 'parent_id' => 55, + 'name' => '朔城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 681, + 'parent_id' => 55, + 'name' => '平鲁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 682, + 'parent_id' => 55, + 'name' => '山阴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 683, + 'parent_id' => 55, + 'name' => '应县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 684, + 'parent_id' => 55, + 'name' => '右玉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 685, + 'parent_id' => 55, + 'name' => '怀仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 686, + 'parent_id' => 55, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 687, + 'parent_id' => 56, + 'name' => '榆次区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 688, + 'parent_id' => 56, + 'name' => '榆社县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 689, + 'parent_id' => 56, + 'name' => '左权县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 690, + 'parent_id' => 56, + 'name' => '和顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 691, + 'parent_id' => 56, + 'name' => '昔阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 692, + 'parent_id' => 56, + 'name' => '寿阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 693, + 'parent_id' => 56, + 'name' => '太谷县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 694, + 'parent_id' => 56, + 'name' => '祁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 695, + 'parent_id' => 56, + 'name' => '平遥县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 696, + 'parent_id' => 56, + 'name' => '灵石县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 697, + 'parent_id' => 56, + 'name' => '介休市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 698, + 'parent_id' => 56, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 699, + 'parent_id' => 57, + 'name' => '盐湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 700, + 'parent_id' => 57, + 'name' => '临猗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 701, + 'parent_id' => 57, + 'name' => '万荣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 702, + 'parent_id' => 57, + 'name' => '闻喜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 703, + 'parent_id' => 57, + 'name' => '稷山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 704, + 'parent_id' => 57, + 'name' => '新绛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 705, + 'parent_id' => 57, + 'name' => '绛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 706, + 'parent_id' => 57, + 'name' => '垣曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 707, + 'parent_id' => 57, + 'name' => '夏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 708, + 'parent_id' => 57, + 'name' => '平陆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 709, + 'parent_id' => 57, + 'name' => '芮城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 710, + 'parent_id' => 57, + 'name' => '永济市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 711, + 'parent_id' => 57, + 'name' => '河津市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 712, + 'parent_id' => 57, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 713, + 'parent_id' => 58, + 'name' => '忻府区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 714, + 'parent_id' => 58, + 'name' => '定襄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 715, + 'parent_id' => 58, + 'name' => '五台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 716, + 'parent_id' => 58, + 'name' => '代县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 717, + 'parent_id' => 58, + 'name' => '繁峙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 718, + 'parent_id' => 58, + 'name' => '宁武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 719, + 'parent_id' => 58, + 'name' => '静乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 720, + 'parent_id' => 58, + 'name' => '神池县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 721, + 'parent_id' => 58, + 'name' => '五寨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 722, + 'parent_id' => 58, + 'name' => '岢岚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 723, + 'parent_id' => 58, + 'name' => '河曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 724, + 'parent_id' => 58, + 'name' => '保德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 725, + 'parent_id' => 58, + 'name' => '偏关县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 726, + 'parent_id' => 58, + 'name' => '原平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 727, + 'parent_id' => 58, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 728, + 'parent_id' => 59, + 'name' => '尧都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 729, + 'parent_id' => 59, + 'name' => '曲沃县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 730, + 'parent_id' => 59, + 'name' => '翼城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 731, + 'parent_id' => 59, + 'name' => '襄汾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 732, + 'parent_id' => 59, + 'name' => '洪洞县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 733, + 'parent_id' => 59, + 'name' => '古县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 734, + 'parent_id' => 59, + 'name' => '安泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 735, + 'parent_id' => 59, + 'name' => '浮山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 736, + 'parent_id' => 59, + 'name' => '吉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 737, + 'parent_id' => 59, + 'name' => '乡宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 738, + 'parent_id' => 59, + 'name' => '大宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 739, + 'parent_id' => 59, + 'name' => '隰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 740, + 'parent_id' => 59, + 'name' => '永和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 741, + 'parent_id' => 59, + 'name' => '蒲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 742, + 'parent_id' => 59, + 'name' => '汾西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 743, + 'parent_id' => 59, + 'name' => '侯马市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 744, + 'parent_id' => 59, + 'name' => '霍州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 745, + 'parent_id' => 59, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 746, + 'parent_id' => 60, + 'name' => '离石区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 747, + 'parent_id' => 60, + 'name' => '文水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 748, + 'parent_id' => 60, + 'name' => '交城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 749, + 'parent_id' => 60, + 'name' => '兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 750, + 'parent_id' => 60, + 'name' => '临县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 751, + 'parent_id' => 60, + 'name' => '柳林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 752, + 'parent_id' => 60, + 'name' => '石楼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 753, + 'parent_id' => 60, + 'name' => '岚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 754, + 'parent_id' => 60, + 'name' => '方山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 755, + 'parent_id' => 60, + 'name' => '中阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 756, + 'parent_id' => 60, + 'name' => '交口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 757, + 'parent_id' => 60, + 'name' => '孝义市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 758, + 'parent_id' => 60, + 'name' => '汾阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 759, + 'parent_id' => 60, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 760, + 'parent_id' => 61, + 'name' => '新城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 761, + 'parent_id' => 61, + 'name' => '回民区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 762, + 'parent_id' => 61, + 'name' => '玉泉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 763, + 'parent_id' => 61, + 'name' => '赛罕区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 764, + 'parent_id' => 61, + 'name' => '土默特左旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 765, + 'parent_id' => 61, + 'name' => '托克托县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 766, + 'parent_id' => 61, + 'name' => '和林格尔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 767, + 'parent_id' => 61, + 'name' => '清水河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 768, + 'parent_id' => 61, + 'name' => '武川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 769, + 'parent_id' => 61, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 770, + 'parent_id' => 62, + 'name' => '东河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 771, + 'parent_id' => 62, + 'name' => '昆都仑区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 772, + 'parent_id' => 62, + 'name' => '青山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 773, + 'parent_id' => 62, + 'name' => '石拐区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 774, + 'parent_id' => 62, + 'name' => '白云鄂博矿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 775, + 'parent_id' => 62, + 'name' => '九原区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 776, + 'parent_id' => 62, + 'name' => '土默特右旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 777, + 'parent_id' => 62, + 'name' => '固阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 778, + 'parent_id' => 62, + 'name' => '达尔罕茂明安联合旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 779, + 'parent_id' => 62, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 780, + 'parent_id' => 63, + 'name' => '海勃湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 781, + 'parent_id' => 63, + 'name' => '海南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 782, + 'parent_id' => 63, + 'name' => '乌达区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 783, + 'parent_id' => 63, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 784, + 'parent_id' => 64, + 'name' => '红山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 785, + 'parent_id' => 64, + 'name' => '元宝山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 786, + 'parent_id' => 64, + 'name' => '松山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 787, + 'parent_id' => 64, + 'name' => '阿鲁科尔沁旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 788, + 'parent_id' => 64, + 'name' => '巴林左旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 789, + 'parent_id' => 64, + 'name' => '巴林右旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 790, + 'parent_id' => 64, + 'name' => '林西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 791, + 'parent_id' => 64, + 'name' => '克什克腾旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 792, + 'parent_id' => 64, + 'name' => '翁牛特旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 793, + 'parent_id' => 64, + 'name' => '喀喇沁旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 794, + 'parent_id' => 64, + 'name' => '宁城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 795, + 'parent_id' => 64, + 'name' => '敖汉旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 796, + 'parent_id' => 64, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 797, + 'parent_id' => 65, + 'name' => '科尔沁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 798, + 'parent_id' => 65, + 'name' => '科尔沁左翼中旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 799, + 'parent_id' => 65, + 'name' => '科尔沁左翼后旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 800, + 'parent_id' => 65, + 'name' => '开鲁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 801, + 'parent_id' => 65, + 'name' => '库伦旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 802, + 'parent_id' => 65, + 'name' => '奈曼旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 803, + 'parent_id' => 65, + 'name' => '扎鲁特旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 804, + 'parent_id' => 65, + 'name' => '霍林郭勒市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 805, + 'parent_id' => 65, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 806, + 'parent_id' => 66, + 'name' => '东胜区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 807, + 'parent_id' => 66, + 'name' => '达拉特旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 808, + 'parent_id' => 66, + 'name' => '准格尔旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 809, + 'parent_id' => 66, + 'name' => '鄂托克前旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 810, + 'parent_id' => 66, + 'name' => '鄂托克旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 811, + 'parent_id' => 66, + 'name' => '杭锦旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 812, + 'parent_id' => 66, + 'name' => '乌审旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 813, + 'parent_id' => 66, + 'name' => '伊金霍洛旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 814, + 'parent_id' => 66, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 815, + 'parent_id' => 67, + 'name' => '海拉尔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 816, + 'parent_id' => 67, + 'name' => '扎赉诺尔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 817, + 'parent_id' => 67, + 'name' => '阿荣旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 818, + 'parent_id' => 67, + 'name' => '莫力达瓦达斡尔族自治旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 819, + 'parent_id' => 67, + 'name' => '鄂伦春自治旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 820, + 'parent_id' => 67, + 'name' => '鄂温克族自治旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 821, + 'parent_id' => 67, + 'name' => '陈巴尔虎旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 822, + 'parent_id' => 67, + 'name' => '新巴尔虎左旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 823, + 'parent_id' => 67, + 'name' => '新巴尔虎右旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 824, + 'parent_id' => 67, + 'name' => '满洲里市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 825, + 'parent_id' => 67, + 'name' => '牙克石市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 826, + 'parent_id' => 67, + 'name' => '扎兰屯市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 827, + 'parent_id' => 67, + 'name' => '额尔古纳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 828, + 'parent_id' => 67, + 'name' => '根河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 829, + 'parent_id' => 67, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 830, + 'parent_id' => 68, + 'name' => '临河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 831, + 'parent_id' => 68, + 'name' => '五原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 832, + 'parent_id' => 68, + 'name' => '磴口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 833, + 'parent_id' => 68, + 'name' => '乌拉特前旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 834, + 'parent_id' => 68, + 'name' => '乌拉特中旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 835, + 'parent_id' => 68, + 'name' => '乌拉特后旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 836, + 'parent_id' => 68, + 'name' => '杭锦后旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 837, + 'parent_id' => 68, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 838, + 'parent_id' => 69, + 'name' => '集宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 839, + 'parent_id' => 69, + 'name' => '卓资县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 840, + 'parent_id' => 69, + 'name' => '化德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 841, + 'parent_id' => 69, + 'name' => '商都县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 842, + 'parent_id' => 69, + 'name' => '兴和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 843, + 'parent_id' => 69, + 'name' => '凉城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 844, + 'parent_id' => 69, + 'name' => '察哈尔右翼前旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 845, + 'parent_id' => 69, + 'name' => '察哈尔右翼中旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 846, + 'parent_id' => 69, + 'name' => '察哈尔右翼后旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 847, + 'parent_id' => 69, + 'name' => '四子王旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 848, + 'parent_id' => 69, + 'name' => '丰镇市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 849, + 'parent_id' => 69, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 850, + 'parent_id' => 70, + 'name' => '乌兰浩特市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 851, + 'parent_id' => 70, + 'name' => '阿尔山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 852, + 'parent_id' => 70, + 'name' => '科尔沁右翼前旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 853, + 'parent_id' => 70, + 'name' => '科尔沁右翼中旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 854, + 'parent_id' => 70, + 'name' => '扎赉特旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 855, + 'parent_id' => 70, + 'name' => '突泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 856, + 'parent_id' => 70, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 857, + 'parent_id' => 71, + 'name' => '二连浩特市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 858, + 'parent_id' => 71, + 'name' => '锡林浩特市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 859, + 'parent_id' => 71, + 'name' => '阿巴嘎旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 860, + 'parent_id' => 71, + 'name' => '苏尼特左旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 861, + 'parent_id' => 71, + 'name' => '苏尼特右旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 862, + 'parent_id' => 71, + 'name' => '东乌珠穆沁旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 863, + 'parent_id' => 71, + 'name' => '西乌珠穆沁旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 864, + 'parent_id' => 71, + 'name' => '太仆寺旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 865, + 'parent_id' => 71, + 'name' => '镶黄旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 866, + 'parent_id' => 71, + 'name' => '正镶白旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 867, + 'parent_id' => 71, + 'name' => '正蓝旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 868, + 'parent_id' => 71, + 'name' => '多伦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 869, + 'parent_id' => 71, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 870, + 'parent_id' => 72, + 'name' => '阿拉善左旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 871, + 'parent_id' => 72, + 'name' => '阿拉善右旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 872, + 'parent_id' => 72, + 'name' => '额济纳旗', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 873, + 'parent_id' => 72, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 874, + 'parent_id' => 73, + 'name' => '和平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 875, + 'parent_id' => 73, + 'name' => '沈河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 876, + 'parent_id' => 73, + 'name' => '大东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 877, + 'parent_id' => 73, + 'name' => '皇姑区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 878, + 'parent_id' => 73, + 'name' => '铁西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 879, + 'parent_id' => 73, + 'name' => '苏家屯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 880, + 'parent_id' => 73, + 'name' => '浑南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 881, + 'parent_id' => 73, + 'name' => '新城子区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 882, + 'parent_id' => 73, + 'name' => '于洪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 883, + 'parent_id' => 73, + 'name' => '辽中县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 884, + 'parent_id' => 73, + 'name' => '康平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 885, + 'parent_id' => 73, + 'name' => '法库县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 886, + 'parent_id' => 73, + 'name' => '新民市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 887, + 'parent_id' => 73, + 'name' => '浑南新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 888, + 'parent_id' => 73, + 'name' => '张士开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 889, + 'parent_id' => 73, + 'name' => '沈北新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 890, + 'parent_id' => 73, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 891, + 'parent_id' => 74, + 'name' => '中山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 892, + 'parent_id' => 74, + 'name' => '西岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 893, + 'parent_id' => 74, + 'name' => '沙河口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 894, + 'parent_id' => 74, + 'name' => '甘井子区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 895, + 'parent_id' => 74, + 'name' => '旅顺口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 896, + 'parent_id' => 74, + 'name' => '金州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 897, + 'parent_id' => 74, + 'name' => '长海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 898, + 'parent_id' => 74, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 899, + 'parent_id' => 74, + 'name' => '瓦房店市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 900, + 'parent_id' => 74, + 'name' => '普兰店市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 901, + 'parent_id' => 74, + 'name' => '庄河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 902, + 'parent_id' => 74, + 'name' => '岭前区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 903, + 'parent_id' => 74, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 904, + 'parent_id' => 75, + 'name' => '铁东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 905, + 'parent_id' => 75, + 'name' => '铁西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 906, + 'parent_id' => 75, + 'name' => '立山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 907, + 'parent_id' => 75, + 'name' => '千山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 908, + 'parent_id' => 75, + 'name' => '台安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 909, + 'parent_id' => 75, + 'name' => '岫岩满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 910, + 'parent_id' => 75, + 'name' => '高新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 911, + 'parent_id' => 75, + 'name' => '海城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 912, + 'parent_id' => 75, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 913, + 'parent_id' => 76, + 'name' => '新抚区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 914, + 'parent_id' => 76, + 'name' => '东洲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 915, + 'parent_id' => 76, + 'name' => '望花区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 916, + 'parent_id' => 76, + 'name' => '顺城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 917, + 'parent_id' => 76, + 'name' => '抚顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 918, + 'parent_id' => 76, + 'name' => '新宾满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 919, + 'parent_id' => 76, + 'name' => '清原满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 920, + 'parent_id' => 76, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 921, + 'parent_id' => 77, + 'name' => '平山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 922, + 'parent_id' => 77, + 'name' => '溪湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 923, + 'parent_id' => 77, + 'name' => '明山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 924, + 'parent_id' => 77, + 'name' => '南芬区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 925, + 'parent_id' => 77, + 'name' => '本溪满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 926, + 'parent_id' => 77, + 'name' => '桓仁满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 927, + 'parent_id' => 77, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 928, + 'parent_id' => 78, + 'name' => '元宝区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 929, + 'parent_id' => 78, + 'name' => '振兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 930, + 'parent_id' => 78, + 'name' => '振安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 931, + 'parent_id' => 78, + 'name' => '宽甸满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 932, + 'parent_id' => 78, + 'name' => '东港市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 933, + 'parent_id' => 78, + 'name' => '凤城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 934, + 'parent_id' => 78, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 935, + 'parent_id' => 79, + 'name' => '古塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 936, + 'parent_id' => 79, + 'name' => '凌河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 937, + 'parent_id' => 79, + 'name' => '太和区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 938, + 'parent_id' => 79, + 'name' => '黑山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 939, + 'parent_id' => 79, + 'name' => '义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 940, + 'parent_id' => 79, + 'name' => '凌海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 941, + 'parent_id' => 79, + 'name' => '北镇市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 942, + 'parent_id' => 79, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 943, + 'parent_id' => 80, + 'name' => '站前区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 944, + 'parent_id' => 80, + 'name' => '西市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 945, + 'parent_id' => 80, + 'name' => '鲅鱼圈区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 946, + 'parent_id' => 80, + 'name' => '老边区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 947, + 'parent_id' => 80, + 'name' => '盖州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 948, + 'parent_id' => 80, + 'name' => '大石桥市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 949, + 'parent_id' => 80, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 950, + 'parent_id' => 81, + 'name' => '海州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 951, + 'parent_id' => 81, + 'name' => '新邱区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 952, + 'parent_id' => 81, + 'name' => '太平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 953, + 'parent_id' => 81, + 'name' => '清河门区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 954, + 'parent_id' => 81, + 'name' => '细河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 955, + 'parent_id' => 81, + 'name' => '阜新蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 956, + 'parent_id' => 81, + 'name' => '彰武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 957, + 'parent_id' => 81, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 958, + 'parent_id' => 82, + 'name' => '白塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 959, + 'parent_id' => 82, + 'name' => '文圣区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 960, + 'parent_id' => 82, + 'name' => '宏伟区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 961, + 'parent_id' => 82, + 'name' => '弓长岭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 962, + 'parent_id' => 82, + 'name' => '太子河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 963, + 'parent_id' => 82, + 'name' => '辽阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 964, + 'parent_id' => 82, + 'name' => '灯塔市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 965, + 'parent_id' => 82, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 966, + 'parent_id' => 83, + 'name' => '双台子区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 967, + 'parent_id' => 83, + 'name' => '兴隆台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 968, + 'parent_id' => 83, + 'name' => '大洼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 969, + 'parent_id' => 83, + 'name' => '盘山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 970, + 'parent_id' => 83, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 971, + 'parent_id' => 84, + 'name' => '银州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 972, + 'parent_id' => 84, + 'name' => '清河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 973, + 'parent_id' => 84, + 'name' => '铁岭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 974, + 'parent_id' => 84, + 'name' => '西丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 975, + 'parent_id' => 84, + 'name' => '昌图县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 976, + 'parent_id' => 84, + 'name' => '调兵山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 977, + 'parent_id' => 84, + 'name' => '开原市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 978, + 'parent_id' => 84, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 979, + 'parent_id' => 85, + 'name' => '双塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 980, + 'parent_id' => 85, + 'name' => '龙城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 981, + 'parent_id' => 85, + 'name' => '朝阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 982, + 'parent_id' => 85, + 'name' => '建平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 983, + 'parent_id' => 85, + 'name' => '喀喇沁左翼蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 984, + 'parent_id' => 85, + 'name' => '北票市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 985, + 'parent_id' => 85, + 'name' => '凌源市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 986, + 'parent_id' => 85, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 987, + 'parent_id' => 86, + 'name' => '连山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 988, + 'parent_id' => 86, + 'name' => '龙港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 989, + 'parent_id' => 86, + 'name' => '南票区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 990, + 'parent_id' => 86, + 'name' => '绥中县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 991, + 'parent_id' => 86, + 'name' => '建昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 992, + 'parent_id' => 86, + 'name' => '兴城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 993, + 'parent_id' => 86, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 994, + 'parent_id' => 87, + 'name' => '南关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 995, + 'parent_id' => 87, + 'name' => '宽城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 996, + 'parent_id' => 87, + 'name' => '朝阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 997, + 'parent_id' => 87, + 'name' => '二道区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 998, + 'parent_id' => 87, + 'name' => '绿园区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 999, + 'parent_id' => 87, + 'name' => '双阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 1000, + 'parent_id' => 87, + 'name' => '农安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 1001, + 'parent_id' => 87, + 'name' => '九台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 1002, + 'parent_id' => 87, + 'name' => '榆树市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 1003, + 'parent_id' => 87, + 'name' => '德惠市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 1004, + 'parent_id' => 87, + 'name' => '高新技术产业开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 1005, + 'parent_id' => 87, + 'name' => '汽车产业开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 1006, + 'parent_id' => 87, + 'name' => '经济技术开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 1007, + 'parent_id' => 87, + 'name' => '净月旅游开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 1008, + 'parent_id' => 87, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 1009, + 'parent_id' => 88, + 'name' => '昌邑区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 1010, + 'parent_id' => 88, + 'name' => '龙潭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 1011, + 'parent_id' => 88, + 'name' => '船营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 1012, + 'parent_id' => 88, + 'name' => '丰满区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 1013, + 'parent_id' => 88, + 'name' => '永吉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 1014, + 'parent_id' => 88, + 'name' => '蛟河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 1015, + 'parent_id' => 88, + 'name' => '桦甸市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 1016, + 'parent_id' => 88, + 'name' => '舒兰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 1017, + 'parent_id' => 88, + 'name' => '磐石市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 1018, + 'parent_id' => 88, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 1019, + 'parent_id' => 89, + 'name' => '铁西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 1020, + 'parent_id' => 89, + 'name' => '铁东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 1021, + 'parent_id' => 89, + 'name' => '梨树县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 1022, + 'parent_id' => 89, + 'name' => '伊通满族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 1023, + 'parent_id' => 89, + 'name' => '公主岭市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 1024, + 'parent_id' => 89, + 'name' => '双辽市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 1025, + 'parent_id' => 89, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 1026, + 'parent_id' => 90, + 'name' => '龙山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 1027, + 'parent_id' => 90, + 'name' => '西安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 1028, + 'parent_id' => 90, + 'name' => '东丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 1029, + 'parent_id' => 90, + 'name' => '东辽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 1030, + 'parent_id' => 90, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 1031, + 'parent_id' => 91, + 'name' => '东昌区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 1032, + 'parent_id' => 91, + 'name' => '二道江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 1033, + 'parent_id' => 91, + 'name' => '通化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 1034, + 'parent_id' => 91, + 'name' => '辉南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 1035, + 'parent_id' => 91, + 'name' => '柳河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 1036, + 'parent_id' => 91, + 'name' => '梅河口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 1037, + 'parent_id' => 91, + 'name' => '集安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 1038, + 'parent_id' => 91, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 1039, + 'parent_id' => 92, + 'name' => '浑江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 1040, + 'parent_id' => 92, + 'name' => '抚松县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 1041, + 'parent_id' => 92, + 'name' => '靖宇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 1042, + 'parent_id' => 92, + 'name' => '长白朝鲜族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 1043, + 'parent_id' => 92, + 'name' => '江源区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 1044, + 'parent_id' => 92, + 'name' => '临江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 1045, + 'parent_id' => 92, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 1046, + 'parent_id' => 93, + 'name' => '宁江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 1047, + 'parent_id' => 93, + 'name' => '前郭尔罗斯蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 1048, + 'parent_id' => 93, + 'name' => '长岭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 1049, + 'parent_id' => 93, + 'name' => '乾安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 1050, + 'parent_id' => 93, + 'name' => '扶余市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 1051, + 'parent_id' => 93, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 1052, + 'parent_id' => 94, + 'name' => '洮北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 1053, + 'parent_id' => 94, + 'name' => '镇赉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 1054, + 'parent_id' => 94, + 'name' => '通榆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 1055, + 'parent_id' => 94, + 'name' => '洮南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 1056, + 'parent_id' => 94, + 'name' => '大安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 1057, + 'parent_id' => 94, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 1058, + 'parent_id' => 95, + 'name' => '延吉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 1059, + 'parent_id' => 95, + 'name' => '图们市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 1060, + 'parent_id' => 95, + 'name' => '敦化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 1061, + 'parent_id' => 95, + 'name' => '珲春市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 1062, + 'parent_id' => 95, + 'name' => '龙井市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 1063, + 'parent_id' => 95, + 'name' => '和龙市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 1064, + 'parent_id' => 95, + 'name' => '汪清县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 1065, + 'parent_id' => 95, + 'name' => '安图县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 1066, + 'parent_id' => 95, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 1067, + 'parent_id' => 96, + 'name' => '道里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 1068, + 'parent_id' => 96, + 'name' => '南岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 1069, + 'parent_id' => 96, + 'name' => '道外区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 1070, + 'parent_id' => 96, + 'name' => '香坊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 1071, + 'parent_id' => 96, + 'name' => '动力区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 1072, + 'parent_id' => 96, + 'name' => '平房区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 1073, + 'parent_id' => 96, + 'name' => '松北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 1074, + 'parent_id' => 96, + 'name' => '呼兰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 1075, + 'parent_id' => 96, + 'name' => '依兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 1076, + 'parent_id' => 96, + 'name' => '方正县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 1077, + 'parent_id' => 96, + 'name' => '宾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 1078, + 'parent_id' => 96, + 'name' => '巴彦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 1079, + 'parent_id' => 96, + 'name' => '木兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 1080, + 'parent_id' => 96, + 'name' => '通河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 1081, + 'parent_id' => 96, + 'name' => '延寿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 1082, + 'parent_id' => 96, + 'name' => '阿城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 1083, + 'parent_id' => 96, + 'name' => '双城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 1084, + 'parent_id' => 96, + 'name' => '尚志市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 1085, + 'parent_id' => 96, + 'name' => '五常市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 1086, + 'parent_id' => 96, + 'name' => '阿城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 1087, + 'parent_id' => 96, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 1088, + 'parent_id' => 97, + 'name' => '龙沙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 1089, + 'parent_id' => 97, + 'name' => '建华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 1090, + 'parent_id' => 97, + 'name' => '铁锋区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 1091, + 'parent_id' => 97, + 'name' => '昂昂溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 1092, + 'parent_id' => 97, + 'name' => '富拉尔基区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 1093, + 'parent_id' => 97, + 'name' => '碾子山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 1094, + 'parent_id' => 97, + 'name' => '梅里斯达斡尔族区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 1095, + 'parent_id' => 97, + 'name' => '龙江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 1096, + 'parent_id' => 97, + 'name' => '依安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 1097, + 'parent_id' => 97, + 'name' => '泰来县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 1098, + 'parent_id' => 97, + 'name' => '甘南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 1099, + 'parent_id' => 97, + 'name' => '富裕县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 1100, + 'parent_id' => 97, + 'name' => '克山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 1101, + 'parent_id' => 97, + 'name' => '克东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 1102, + 'parent_id' => 97, + 'name' => '拜泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 1103, + 'parent_id' => 97, + 'name' => '讷河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 1104, + 'parent_id' => 97, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 1105, + 'parent_id' => 98, + 'name' => '鸡冠区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 1106, + 'parent_id' => 98, + 'name' => '恒山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 1107, + 'parent_id' => 98, + 'name' => '滴道区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 1108, + 'parent_id' => 98, + 'name' => '梨树区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 1109, + 'parent_id' => 98, + 'name' => '城子河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 1110, + 'parent_id' => 98, + 'name' => '麻山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 1111, + 'parent_id' => 98, + 'name' => '鸡东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 1112, + 'parent_id' => 98, + 'name' => '虎林市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 1113, + 'parent_id' => 98, + 'name' => '密山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 1114, + 'parent_id' => 98, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 1115, + 'parent_id' => 99, + 'name' => '向阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 1116, + 'parent_id' => 99, + 'name' => '工农区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 1117, + 'parent_id' => 99, + 'name' => '南山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 1118, + 'parent_id' => 99, + 'name' => '兴安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 1119, + 'parent_id' => 99, + 'name' => '东山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 1120, + 'parent_id' => 99, + 'name' => '兴山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 1121, + 'parent_id' => 99, + 'name' => '萝北县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 1122, + 'parent_id' => 99, + 'name' => '绥滨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 1123, + 'parent_id' => 99, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 1124, + 'parent_id' => 100, + 'name' => '尖山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 1125, + 'parent_id' => 100, + 'name' => '岭东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 1126, + 'parent_id' => 100, + 'name' => '四方台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 1127, + 'parent_id' => 100, + 'name' => '宝山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 1128, + 'parent_id' => 100, + 'name' => '集贤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 1129, + 'parent_id' => 100, + 'name' => '友谊县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 1130, + 'parent_id' => 100, + 'name' => '宝清县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 1131, + 'parent_id' => 100, + 'name' => '饶河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 1132, + 'parent_id' => 100, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 1133, + 'parent_id' => 101, + 'name' => '萨尔图区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 1134, + 'parent_id' => 101, + 'name' => '龙凤区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 1135, + 'parent_id' => 101, + 'name' => '让胡路区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 1136, + 'parent_id' => 101, + 'name' => '红岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 1137, + 'parent_id' => 101, + 'name' => '大同区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 1138, + 'parent_id' => 101, + 'name' => '肇州县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 1139, + 'parent_id' => 101, + 'name' => '肇源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 1140, + 'parent_id' => 101, + 'name' => '林甸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 1141, + 'parent_id' => 101, + 'name' => '杜尔伯特蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 1142, + 'parent_id' => 101, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 1143, + 'parent_id' => 102, + 'name' => '伊春区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 1144, + 'parent_id' => 102, + 'name' => '南岔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 1145, + 'parent_id' => 102, + 'name' => '友好区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 1146, + 'parent_id' => 102, + 'name' => '西林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 1147, + 'parent_id' => 102, + 'name' => '翠峦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 1148, + 'parent_id' => 102, + 'name' => '新青区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 1149, + 'parent_id' => 102, + 'name' => '美溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 1150, + 'parent_id' => 102, + 'name' => '金山屯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 1151, + 'parent_id' => 102, + 'name' => '五营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 1152, + 'parent_id' => 102, + 'name' => '乌马河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 1153, + 'parent_id' => 102, + 'name' => '汤旺河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 1154, + 'parent_id' => 102, + 'name' => '带岭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 1155, + 'parent_id' => 102, + 'name' => '乌伊岭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 1156, + 'parent_id' => 102, + 'name' => '红星区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 1157, + 'parent_id' => 102, + 'name' => '上甘岭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 1158, + 'parent_id' => 102, + 'name' => '嘉荫县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 1159, + 'parent_id' => 102, + 'name' => '铁力市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 1160, + 'parent_id' => 102, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 1161, + 'parent_id' => 103, + 'name' => '永红区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 1162, + 'parent_id' => 103, + 'name' => '向阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 1163, + 'parent_id' => 103, + 'name' => '前进区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 1164, + 'parent_id' => 103, + 'name' => '东风区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 1165, + 'parent_id' => 103, + 'name' => '郊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 1166, + 'parent_id' => 103, + 'name' => '桦南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 1167, + 'parent_id' => 103, + 'name' => '桦川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 1168, + 'parent_id' => 103, + 'name' => '汤原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 1169, + 'parent_id' => 103, + 'name' => '抚远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 1170, + 'parent_id' => 103, + 'name' => '同江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 1171, + 'parent_id' => 103, + 'name' => '富锦市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 1172, + 'parent_id' => 103, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 1173, + 'parent_id' => 104, + 'name' => '新兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 1174, + 'parent_id' => 104, + 'name' => '桃山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 1175, + 'parent_id' => 104, + 'name' => '茄子河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 1176, + 'parent_id' => 104, + 'name' => '勃利县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 1177, + 'parent_id' => 104, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 1178, + 'parent_id' => 105, + 'name' => '东安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 1179, + 'parent_id' => 105, + 'name' => '阳明区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 1180, + 'parent_id' => 105, + 'name' => '爱民区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 1181, + 'parent_id' => 105, + 'name' => '西安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 1182, + 'parent_id' => 105, + 'name' => '东宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 1183, + 'parent_id' => 105, + 'name' => '林口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 1184, + 'parent_id' => 105, + 'name' => '绥芬河市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 1185, + 'parent_id' => 105, + 'name' => '海林市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 1186, + 'parent_id' => 105, + 'name' => '宁安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 1187, + 'parent_id' => 105, + 'name' => '穆棱市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 1188, + 'parent_id' => 105, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 1189, + 'parent_id' => 106, + 'name' => '爱辉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 1190, + 'parent_id' => 106, + 'name' => '嫩江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 1191, + 'parent_id' => 106, + 'name' => '逊克县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 1192, + 'parent_id' => 106, + 'name' => '孙吴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 1193, + 'parent_id' => 106, + 'name' => '北安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 1194, + 'parent_id' => 106, + 'name' => '五大连池市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 1195, + 'parent_id' => 106, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 1196, + 'parent_id' => 107, + 'name' => '北林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 1197, + 'parent_id' => 107, + 'name' => '望奎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 1198, + 'parent_id' => 107, + 'name' => '兰西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 1199, + 'parent_id' => 107, + 'name' => '青冈县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 1200, + 'parent_id' => 107, + 'name' => '庆安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 1201, + 'parent_id' => 107, + 'name' => '明水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 1202, + 'parent_id' => 107, + 'name' => '绥棱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 1203, + 'parent_id' => 107, + 'name' => '安达市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 1204, + 'parent_id' => 107, + 'name' => '肇东市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 1205, + 'parent_id' => 107, + 'name' => '海伦市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 1206, + 'parent_id' => 107, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 1207, + 'parent_id' => 108, + 'name' => '松岭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 1208, + 'parent_id' => 108, + 'name' => '新林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 1209, + 'parent_id' => 108, + 'name' => '呼中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 1210, + 'parent_id' => 108, + 'name' => '呼玛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 1211, + 'parent_id' => 108, + 'name' => '塔河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 1212, + 'parent_id' => 108, + 'name' => '漠河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 1213, + 'parent_id' => 108, + 'name' => '加格达奇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 1214, + 'parent_id' => 108, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 1215, + 'parent_id' => 109, + 'name' => '黄浦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 1216, + 'parent_id' => 109, + 'name' => '卢湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 1217, + 'parent_id' => 109, + 'name' => '徐汇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 1218, + 'parent_id' => 109, + 'name' => '长宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 1219, + 'parent_id' => 109, + 'name' => '静安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 1220, + 'parent_id' => 109, + 'name' => '普陀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 1221, + 'parent_id' => 109, + 'name' => '闸北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 1222, + 'parent_id' => 109, + 'name' => '虹口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 1223, + 'parent_id' => 109, + 'name' => '杨浦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 1224, + 'parent_id' => 109, + 'name' => '闵行区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 1225, + 'parent_id' => 109, + 'name' => '宝山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 1226, + 'parent_id' => 109, + 'name' => '嘉定区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 1227, + 'parent_id' => 109, + 'name' => '浦东新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 1228, + 'parent_id' => 109, + 'name' => '金山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 1229, + 'parent_id' => 109, + 'name' => '松江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 1230, + 'parent_id' => 109, + 'name' => '青浦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 1231, + 'parent_id' => 109, + 'name' => '南汇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 1232, + 'parent_id' => 109, + 'name' => '奉贤区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 1233, + 'parent_id' => 109, + 'name' => '川沙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 1234, + 'parent_id' => 109, + 'name' => '崇明县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 1235, + 'parent_id' => 109, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 1236, + 'parent_id' => 110, + 'name' => '玄武区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 1237, + 'parent_id' => 110, + 'name' => '白下区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 1238, + 'parent_id' => 110, + 'name' => '秦淮区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 1239, + 'parent_id' => 110, + 'name' => '建邺区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 1240, + 'parent_id' => 110, + 'name' => '鼓楼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 1241, + 'parent_id' => 110, + 'name' => '下关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 1242, + 'parent_id' => 110, + 'name' => '浦口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 1243, + 'parent_id' => 110, + 'name' => '栖霞区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 1244, + 'parent_id' => 110, + 'name' => '雨花台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 1245, + 'parent_id' => 110, + 'name' => '江宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 1246, + 'parent_id' => 110, + 'name' => '六合区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 1247, + 'parent_id' => 110, + 'name' => '溧水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 1248, + 'parent_id' => 110, + 'name' => '高淳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 1249, + 'parent_id' => 110, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 1250, + 'parent_id' => 111, + 'name' => '崇安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 1251, + 'parent_id' => 111, + 'name' => '南长区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 1252, + 'parent_id' => 111, + 'name' => '北塘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 1253, + 'parent_id' => 111, + 'name' => '锡山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 1254, + 'parent_id' => 111, + 'name' => '惠山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 1255, + 'parent_id' => 111, + 'name' => '滨湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 1256, + 'parent_id' => 111, + 'name' => '江阴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 1257, + 'parent_id' => 111, + 'name' => '宜兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 1258, + 'parent_id' => 111, + 'name' => '新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 1259, + 'parent_id' => 111, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 1260, + 'parent_id' => 112, + 'name' => '鼓楼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 1261, + 'parent_id' => 112, + 'name' => '云龙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 1262, + 'parent_id' => 112, + 'name' => '九里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 1263, + 'parent_id' => 112, + 'name' => '贾汪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 1264, + 'parent_id' => 112, + 'name' => '泉山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 1265, + 'parent_id' => 112, + 'name' => '丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 1266, + 'parent_id' => 112, + 'name' => '沛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 1267, + 'parent_id' => 112, + 'name' => '铜山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 1268, + 'parent_id' => 112, + 'name' => '睢宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 1269, + 'parent_id' => 112, + 'name' => '新沂市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 1270, + 'parent_id' => 112, + 'name' => '邳州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 1271, + 'parent_id' => 112, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 1272, + 'parent_id' => 113, + 'name' => '天宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 1273, + 'parent_id' => 113, + 'name' => '钟楼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 1274, + 'parent_id' => 113, + 'name' => '戚墅堰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 1275, + 'parent_id' => 113, + 'name' => '新北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 1276, + 'parent_id' => 113, + 'name' => '武进区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 1277, + 'parent_id' => 113, + 'name' => '溧阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 1278, + 'parent_id' => 113, + 'name' => '金坛市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 1279, + 'parent_id' => 113, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 1280, + 'parent_id' => 114, + 'name' => '沧浪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 1281, + 'parent_id' => 114, + 'name' => '平江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 1282, + 'parent_id' => 114, + 'name' => '金阊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 1283, + 'parent_id' => 114, + 'name' => '虎丘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 1284, + 'parent_id' => 114, + 'name' => '吴中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 1285, + 'parent_id' => 114, + 'name' => '相城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 1286, + 'parent_id' => 114, + 'name' => '姑苏区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 1287, + 'parent_id' => 114, + 'name' => '常熟市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 1288, + 'parent_id' => 114, + 'name' => '张家港市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 1289, + 'parent_id' => 114, + 'name' => '昆山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 1290, + 'parent_id' => 114, + 'name' => '吴江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 1291, + 'parent_id' => 114, + 'name' => '太仓市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 1292, + 'parent_id' => 114, + 'name' => '新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 1293, + 'parent_id' => 114, + 'name' => '园区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 1294, + 'parent_id' => 114, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 1295, + 'parent_id' => 115, + 'name' => '崇川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 1296, + 'parent_id' => 115, + 'name' => '港闸区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 1297, + 'parent_id' => 115, + 'name' => '通州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 1298, + 'parent_id' => 115, + 'name' => '海安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 1299, + 'parent_id' => 115, + 'name' => '如东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 1300, + 'parent_id' => 115, + 'name' => '启东市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 1301, + 'parent_id' => 115, + 'name' => '如皋市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 1302, + 'parent_id' => 115, + 'name' => '通州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 1303, + 'parent_id' => 115, + 'name' => '海门市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 1304, + 'parent_id' => 115, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 1305, + 'parent_id' => 115, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 1306, + 'parent_id' => 116, + 'name' => '连云区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 1307, + 'parent_id' => 116, + 'name' => '新浦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 1308, + 'parent_id' => 116, + 'name' => '海州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 1309, + 'parent_id' => 116, + 'name' => '赣榆区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 1310, + 'parent_id' => 116, + 'name' => '东海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 1311, + 'parent_id' => 116, + 'name' => '灌云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 1312, + 'parent_id' => 116, + 'name' => '灌南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 1313, + 'parent_id' => 116, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 1314, + 'parent_id' => 117, + 'name' => '清河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 1315, + 'parent_id' => 117, + 'name' => '淮安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 1316, + 'parent_id' => 117, + 'name' => '淮阴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 1317, + 'parent_id' => 117, + 'name' => '清浦区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 1318, + 'parent_id' => 117, + 'name' => '涟水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 1319, + 'parent_id' => 117, + 'name' => '洪泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 1320, + 'parent_id' => 117, + 'name' => '盱眙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 1321, + 'parent_id' => 117, + 'name' => '金湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 1322, + 'parent_id' => 117, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 1323, + 'parent_id' => 118, + 'name' => '亭湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 1324, + 'parent_id' => 118, + 'name' => '盐都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 1325, + 'parent_id' => 118, + 'name' => '响水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 1326, + 'parent_id' => 118, + 'name' => '滨海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 1327, + 'parent_id' => 118, + 'name' => '阜宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 1328, + 'parent_id' => 118, + 'name' => '射阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 1329, + 'parent_id' => 118, + 'name' => '建湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 1330, + 'parent_id' => 118, + 'name' => '东台市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 1331, + 'parent_id' => 118, + 'name' => '大丰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 1332, + 'parent_id' => 118, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 1333, + 'parent_id' => 119, + 'name' => '广陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 1334, + 'parent_id' => 119, + 'name' => '邗江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 1335, + 'parent_id' => 119, + 'name' => '维扬区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 1336, + 'parent_id' => 119, + 'name' => '宝应县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 1337, + 'parent_id' => 119, + 'name' => '仪征市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 1338, + 'parent_id' => 119, + 'name' => '高邮市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 1339, + 'parent_id' => 119, + 'name' => '江都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 1340, + 'parent_id' => 119, + 'name' => '经济开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 1341, + 'parent_id' => 119, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 1342, + 'parent_id' => 120, + 'name' => '京口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 1343, + 'parent_id' => 120, + 'name' => '润州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 1344, + 'parent_id' => 120, + 'name' => '丹徒区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 1345, + 'parent_id' => 120, + 'name' => '丹阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 1346, + 'parent_id' => 120, + 'name' => '扬中市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 1347, + 'parent_id' => 120, + 'name' => '句容市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 1348, + 'parent_id' => 120, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 1349, + 'parent_id' => 121, + 'name' => '海陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 1350, + 'parent_id' => 121, + 'name' => '高港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 1351, + 'parent_id' => 121, + 'name' => '兴化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 1352, + 'parent_id' => 121, + 'name' => '靖江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 1353, + 'parent_id' => 121, + 'name' => '泰兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 1354, + 'parent_id' => 121, + 'name' => '姜堰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 1355, + 'parent_id' => 121, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 1356, + 'parent_id' => 122, + 'name' => '宿城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 1357, + 'parent_id' => 122, + 'name' => '宿豫区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 1358, + 'parent_id' => 122, + 'name' => '沭阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 1359, + 'parent_id' => 122, + 'name' => '泗阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 1360, + 'parent_id' => 122, + 'name' => '泗洪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 1361, + 'parent_id' => 122, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 1362, + 'parent_id' => 123, + 'name' => '上城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 1363, + 'parent_id' => 123, + 'name' => '下城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 1364, + 'parent_id' => 123, + 'name' => '江干区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 1365, + 'parent_id' => 123, + 'name' => '拱墅区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 1366, + 'parent_id' => 123, + 'name' => '西湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 1367, + 'parent_id' => 123, + 'name' => '滨江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 1368, + 'parent_id' => 123, + 'name' => '萧山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 1369, + 'parent_id' => 123, + 'name' => '余杭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 1370, + 'parent_id' => 123, + 'name' => '桐庐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 1371, + 'parent_id' => 123, + 'name' => '淳安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 1372, + 'parent_id' => 123, + 'name' => '建德市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 1373, + 'parent_id' => 123, + 'name' => '富阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 1374, + 'parent_id' => 123, + 'name' => '临安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 1375, + 'parent_id' => 123, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 1376, + 'parent_id' => 124, + 'name' => '海曙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 1377, + 'parent_id' => 124, + 'name' => '江东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 1378, + 'parent_id' => 124, + 'name' => '江北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 1379, + 'parent_id' => 124, + 'name' => '北仑区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 1380, + 'parent_id' => 124, + 'name' => '镇海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 1381, + 'parent_id' => 124, + 'name' => '鄞州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 1382, + 'parent_id' => 124, + 'name' => '象山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 1383, + 'parent_id' => 124, + 'name' => '宁海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 1384, + 'parent_id' => 124, + 'name' => '余姚市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 1385, + 'parent_id' => 124, + 'name' => '慈溪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 1386, + 'parent_id' => 124, + 'name' => '奉化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 1387, + 'parent_id' => 124, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 1388, + 'parent_id' => 125, + 'name' => '鹿城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 1389, + 'parent_id' => 125, + 'name' => '龙湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 1390, + 'parent_id' => 125, + 'name' => '瓯海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 1391, + 'parent_id' => 125, + 'name' => '洞头县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 1392, + 'parent_id' => 125, + 'name' => '永嘉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 1393, + 'parent_id' => 125, + 'name' => '平阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 1394, + 'parent_id' => 125, + 'name' => '苍南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 1395, + 'parent_id' => 125, + 'name' => '文成县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 1396, + 'parent_id' => 125, + 'name' => '泰顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 1397, + 'parent_id' => 125, + 'name' => '瑞安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 1398, + 'parent_id' => 125, + 'name' => '乐清市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 1399, + 'parent_id' => 125, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 1400, + 'parent_id' => 126, + 'name' => '南湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 1401, + 'parent_id' => 126, + 'name' => '秀洲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 1402, + 'parent_id' => 126, + 'name' => '嘉善县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 1403, + 'parent_id' => 126, + 'name' => '海盐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 1404, + 'parent_id' => 126, + 'name' => '海宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 1405, + 'parent_id' => 126, + 'name' => '平湖市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 1406, + 'parent_id' => 126, + 'name' => '桐乡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 1407, + 'parent_id' => 126, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 1408, + 'parent_id' => 127, + 'name' => '吴兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 1409, + 'parent_id' => 127, + 'name' => '南浔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 1410, + 'parent_id' => 127, + 'name' => '德清县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 1411, + 'parent_id' => 127, + 'name' => '长兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 1412, + 'parent_id' => 127, + 'name' => '安吉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 1413, + 'parent_id' => 127, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 1414, + 'parent_id' => 128, + 'name' => '越城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 1415, + 'parent_id' => 128, + 'name' => '柯桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 1416, + 'parent_id' => 128, + 'name' => '新昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 1417, + 'parent_id' => 128, + 'name' => '诸暨市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 1418, + 'parent_id' => 128, + 'name' => '上虞区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 1419, + 'parent_id' => 128, + 'name' => '嵊州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 1420, + 'parent_id' => 128, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 1421, + 'parent_id' => 129, + 'name' => '婺城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 1422, + 'parent_id' => 129, + 'name' => '金东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 1423, + 'parent_id' => 129, + 'name' => '武义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 1424, + 'parent_id' => 129, + 'name' => '浦江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 1425, + 'parent_id' => 129, + 'name' => '磐安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 1426, + 'parent_id' => 129, + 'name' => '兰溪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 1427, + 'parent_id' => 129, + 'name' => '义乌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 1428, + 'parent_id' => 129, + 'name' => '东阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 1429, + 'parent_id' => 129, + 'name' => '永康市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 1430, + 'parent_id' => 129, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 1431, + 'parent_id' => 130, + 'name' => '柯城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 1432, + 'parent_id' => 130, + 'name' => '衢江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 1433, + 'parent_id' => 130, + 'name' => '常山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 1434, + 'parent_id' => 130, + 'name' => '开化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 1435, + 'parent_id' => 130, + 'name' => '龙游县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 1436, + 'parent_id' => 130, + 'name' => '江山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 1437, + 'parent_id' => 130, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 1438, + 'parent_id' => 131, + 'name' => '定海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 1439, + 'parent_id' => 131, + 'name' => '普陀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 1440, + 'parent_id' => 131, + 'name' => '岱山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 1441, + 'parent_id' => 131, + 'name' => '嵊泗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 1442, + 'parent_id' => 131, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 1443, + 'parent_id' => 132, + 'name' => '椒江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 1444, + 'parent_id' => 132, + 'name' => '黄岩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 1445, + 'parent_id' => 132, + 'name' => '路桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 1446, + 'parent_id' => 132, + 'name' => '玉环县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 1447, + 'parent_id' => 132, + 'name' => '三门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 1448, + 'parent_id' => 132, + 'name' => '天台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 1449, + 'parent_id' => 132, + 'name' => '仙居县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 1450, + 'parent_id' => 132, + 'name' => '温岭市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 1451, + 'parent_id' => 132, + 'name' => '临海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 1452, + 'parent_id' => 132, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 1453, + 'parent_id' => 133, + 'name' => '莲都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 1454, + 'parent_id' => 133, + 'name' => '青田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 1455, + 'parent_id' => 133, + 'name' => '缙云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 1456, + 'parent_id' => 133, + 'name' => '遂昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 1457, + 'parent_id' => 133, + 'name' => '松阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 1458, + 'parent_id' => 133, + 'name' => '云和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 1459, + 'parent_id' => 133, + 'name' => '庆元县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 1460, + 'parent_id' => 133, + 'name' => '景宁畲族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 1461, + 'parent_id' => 133, + 'name' => '龙泉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 1462, + 'parent_id' => 133, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 1463, + 'parent_id' => 134, + 'name' => '瑶海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 1464, + 'parent_id' => 134, + 'name' => '庐阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 1465, + 'parent_id' => 134, + 'name' => '蜀山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 1466, + 'parent_id' => 134, + 'name' => '包河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 1467, + 'parent_id' => 134, + 'name' => '长丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 1468, + 'parent_id' => 134, + 'name' => '肥东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 1469, + 'parent_id' => 134, + 'name' => '肥西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 1470, + 'parent_id' => 134, + 'name' => '高新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 1471, + 'parent_id' => 134, + 'name' => '中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 1472, + 'parent_id' => 134, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 1473, + 'parent_id' => 135, + 'name' => '镜湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 1474, + 'parent_id' => 135, + 'name' => '弋江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 1475, + 'parent_id' => 135, + 'name' => '鸠江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 1476, + 'parent_id' => 135, + 'name' => '三山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 1477, + 'parent_id' => 135, + 'name' => '芜湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 1478, + 'parent_id' => 135, + 'name' => '繁昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 1479, + 'parent_id' => 135, + 'name' => '南陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 1480, + 'parent_id' => 135, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 1481, + 'parent_id' => 136, + 'name' => '龙子湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 1482, + 'parent_id' => 136, + 'name' => '蚌山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 1483, + 'parent_id' => 136, + 'name' => '禹会区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 1484, + 'parent_id' => 136, + 'name' => '淮上区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 1485, + 'parent_id' => 136, + 'name' => '怀远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 1486, + 'parent_id' => 136, + 'name' => '五河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 1487, + 'parent_id' => 136, + 'name' => '固镇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 1488, + 'parent_id' => 136, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 1489, + 'parent_id' => 137, + 'name' => '大通区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 1490, + 'parent_id' => 137, + 'name' => '田家庵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 1491, + 'parent_id' => 137, + 'name' => '谢家集区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 1492, + 'parent_id' => 137, + 'name' => '八公山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 1493, + 'parent_id' => 137, + 'name' => '潘集区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 1494, + 'parent_id' => 137, + 'name' => '凤台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 1495, + 'parent_id' => 137, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 1496, + 'parent_id' => 138, + 'name' => '金家庄区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 1497, + 'parent_id' => 138, + 'name' => '花山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 1498, + 'parent_id' => 138, + 'name' => '雨山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 1499, + 'parent_id' => 138, + 'name' => '博望区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 1500, + 'parent_id' => 138, + 'name' => '当涂县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 1501, + 'parent_id' => 138, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 1502, + 'parent_id' => 139, + 'name' => '杜集区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 1503, + 'parent_id' => 139, + 'name' => '相山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 1504, + 'parent_id' => 139, + 'name' => '烈山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 1505, + 'parent_id' => 139, + 'name' => '濉溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 1506, + 'parent_id' => 139, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 1507, + 'parent_id' => 140, + 'name' => '铜官山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 1508, + 'parent_id' => 140, + 'name' => '狮子山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 1509, + 'parent_id' => 140, + 'name' => '郊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 1510, + 'parent_id' => 140, + 'name' => '铜陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 1511, + 'parent_id' => 140, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 1512, + 'parent_id' => 141, + 'name' => '迎江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 1513, + 'parent_id' => 141, + 'name' => '大观区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 1514, + 'parent_id' => 141, + 'name' => '宜秀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 1515, + 'parent_id' => 141, + 'name' => '怀宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 1516, + 'parent_id' => 141, + 'name' => '枞阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 1517, + 'parent_id' => 141, + 'name' => '潜山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 1518, + 'parent_id' => 141, + 'name' => '太湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 1519, + 'parent_id' => 141, + 'name' => '宿松县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 1520, + 'parent_id' => 141, + 'name' => '望江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 1521, + 'parent_id' => 141, + 'name' => '岳西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 1522, + 'parent_id' => 141, + 'name' => '桐城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 1523, + 'parent_id' => 141, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 1524, + 'parent_id' => 142, + 'name' => '屯溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 1525, + 'parent_id' => 142, + 'name' => '黄山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 1526, + 'parent_id' => 142, + 'name' => '徽州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 1527, + 'parent_id' => 142, + 'name' => '歙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 1528, + 'parent_id' => 142, + 'name' => '休宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 1529, + 'parent_id' => 142, + 'name' => '黟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 1530, + 'parent_id' => 142, + 'name' => '祁门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 1531, + 'parent_id' => 142, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 1532, + 'parent_id' => 143, + 'name' => '琅琊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 1533, + 'parent_id' => 143, + 'name' => '南谯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 1534, + 'parent_id' => 143, + 'name' => '来安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 1535, + 'parent_id' => 143, + 'name' => '全椒县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 1536, + 'parent_id' => 143, + 'name' => '定远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 1537, + 'parent_id' => 143, + 'name' => '凤阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 1538, + 'parent_id' => 143, + 'name' => '天长市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 1539, + 'parent_id' => 143, + 'name' => '明光市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 1540, + 'parent_id' => 143, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 1541, + 'parent_id' => 144, + 'name' => '颍州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 1542, + 'parent_id' => 144, + 'name' => '颍东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 1543, + 'parent_id' => 144, + 'name' => '颍泉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 1544, + 'parent_id' => 144, + 'name' => '临泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 1545, + 'parent_id' => 144, + 'name' => '太和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 1546, + 'parent_id' => 144, + 'name' => '阜南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 1547, + 'parent_id' => 144, + 'name' => '颍上县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 1548, + 'parent_id' => 144, + 'name' => '界首市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 1549, + 'parent_id' => 144, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 1550, + 'parent_id' => 145, + 'name' => '埇桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 1551, + 'parent_id' => 145, + 'name' => '砀山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 1552, + 'parent_id' => 145, + 'name' => '萧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 1553, + 'parent_id' => 145, + 'name' => '灵璧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 1554, + 'parent_id' => 145, + 'name' => '泗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 1555, + 'parent_id' => 145, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 1556, + 'parent_id' => 134, + 'name' => '巢湖市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 1557, + 'parent_id' => 134, + 'name' => '居巢区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 1558, + 'parent_id' => 134, + 'name' => '庐江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 1559, + 'parent_id' => 135, + 'name' => '无为县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 1560, + 'parent_id' => 138, + 'name' => '含山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 1561, + 'parent_id' => 138, + 'name' => '和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 1562, + 'parent_id' => 146, + 'name' => '金安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 1563, + 'parent_id' => 146, + 'name' => '裕安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 1564, + 'parent_id' => 146, + 'name' => '寿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 1565, + 'parent_id' => 146, + 'name' => '霍邱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 1566, + 'parent_id' => 146, + 'name' => '舒城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 1567, + 'parent_id' => 146, + 'name' => '金寨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 1568, + 'parent_id' => 146, + 'name' => '霍山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 1569, + 'parent_id' => 146, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 1570, + 'parent_id' => 147, + 'name' => '谯城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 1571, + 'parent_id' => 147, + 'name' => '涡阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 1572, + 'parent_id' => 147, + 'name' => '蒙城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 1573, + 'parent_id' => 147, + 'name' => '利辛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 1574, + 'parent_id' => 147, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 1575, + 'parent_id' => 148, + 'name' => '贵池区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 1576, + 'parent_id' => 148, + 'name' => '东至县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 1577, + 'parent_id' => 148, + 'name' => '石台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 1578, + 'parent_id' => 148, + 'name' => '青阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 1579, + 'parent_id' => 148, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 1580, + 'parent_id' => 149, + 'name' => '宣州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 1581, + 'parent_id' => 149, + 'name' => '郎溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 1582, + 'parent_id' => 149, + 'name' => '广德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 1583, + 'parent_id' => 149, + 'name' => '泾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 1584, + 'parent_id' => 149, + 'name' => '绩溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 1585, + 'parent_id' => 149, + 'name' => '旌德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 1586, + 'parent_id' => 149, + 'name' => '宁国市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 1587, + 'parent_id' => 149, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 1588, + 'parent_id' => 150, + 'name' => '鼓楼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 1589, + 'parent_id' => 150, + 'name' => '台江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 1590, + 'parent_id' => 150, + 'name' => '仓山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 1591, + 'parent_id' => 150, + 'name' => '马尾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 1592, + 'parent_id' => 150, + 'name' => '晋安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 1593, + 'parent_id' => 150, + 'name' => '闽侯县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 1594, + 'parent_id' => 150, + 'name' => '连江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 1595, + 'parent_id' => 150, + 'name' => '罗源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 1596, + 'parent_id' => 150, + 'name' => '闽清县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 1597, + 'parent_id' => 150, + 'name' => '永泰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 1598, + 'parent_id' => 150, + 'name' => '平潭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 1599, + 'parent_id' => 150, + 'name' => '福清市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 1600, + 'parent_id' => 150, + 'name' => '长乐市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 1601, + 'parent_id' => 150, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 1602, + 'parent_id' => 151, + 'name' => '思明区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 1603, + 'parent_id' => 151, + 'name' => '海沧区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 1604, + 'parent_id' => 151, + 'name' => '湖里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 1605, + 'parent_id' => 151, + 'name' => '集美区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 1606, + 'parent_id' => 151, + 'name' => '同安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 1607, + 'parent_id' => 151, + 'name' => '翔安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 1608, + 'parent_id' => 151, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 1609, + 'parent_id' => 152, + 'name' => '城厢区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 1610, + 'parent_id' => 152, + 'name' => '涵江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 1611, + 'parent_id' => 152, + 'name' => '荔城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 1612, + 'parent_id' => 152, + 'name' => '秀屿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 1613, + 'parent_id' => 152, + 'name' => '仙游县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 1614, + 'parent_id' => 152, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 1615, + 'parent_id' => 153, + 'name' => '梅列区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 1616, + 'parent_id' => 153, + 'name' => '三元区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 1617, + 'parent_id' => 153, + 'name' => '明溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 1618, + 'parent_id' => 153, + 'name' => '清流县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 1619, + 'parent_id' => 153, + 'name' => '宁化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 1620, + 'parent_id' => 153, + 'name' => '大田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 1621, + 'parent_id' => 153, + 'name' => '尤溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 1622, + 'parent_id' => 153, + 'name' => '沙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 1623, + 'parent_id' => 153, + 'name' => '将乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 1624, + 'parent_id' => 153, + 'name' => '泰宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 1625, + 'parent_id' => 153, + 'name' => '建宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 1626, + 'parent_id' => 153, + 'name' => '永安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 1627, + 'parent_id' => 153, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 1628, + 'parent_id' => 154, + 'name' => '鲤城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 1629, + 'parent_id' => 154, + 'name' => '丰泽区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 1630, + 'parent_id' => 154, + 'name' => '洛江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 1631, + 'parent_id' => 154, + 'name' => '泉港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 1632, + 'parent_id' => 154, + 'name' => '惠安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 1633, + 'parent_id' => 154, + 'name' => '安溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 1634, + 'parent_id' => 154, + 'name' => '永春县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 1635, + 'parent_id' => 154, + 'name' => '德化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 1636, + 'parent_id' => 154, + 'name' => '金门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 1637, + 'parent_id' => 154, + 'name' => '石狮市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 1638, + 'parent_id' => 154, + 'name' => '晋江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 1639, + 'parent_id' => 154, + 'name' => '南安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 1640, + 'parent_id' => 154, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 1641, + 'parent_id' => 155, + 'name' => '芗城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 1642, + 'parent_id' => 155, + 'name' => '龙文区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 1643, + 'parent_id' => 155, + 'name' => '云霄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 1644, + 'parent_id' => 155, + 'name' => '漳浦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 1645, + 'parent_id' => 155, + 'name' => '诏安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 1646, + 'parent_id' => 155, + 'name' => '长泰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 1647, + 'parent_id' => 155, + 'name' => '东山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 1648, + 'parent_id' => 155, + 'name' => '南靖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 1649, + 'parent_id' => 155, + 'name' => '平和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 1650, + 'parent_id' => 155, + 'name' => '华安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 1651, + 'parent_id' => 155, + 'name' => '龙海市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 1652, + 'parent_id' => 155, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 1653, + 'parent_id' => 156, + 'name' => '延平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 1654, + 'parent_id' => 156, + 'name' => '顺昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 1655, + 'parent_id' => 156, + 'name' => '浦城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 1656, + 'parent_id' => 156, + 'name' => '光泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 1657, + 'parent_id' => 156, + 'name' => '松溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 1658, + 'parent_id' => 156, + 'name' => '政和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 1659, + 'parent_id' => 156, + 'name' => '邵武市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 1660, + 'parent_id' => 156, + 'name' => '武夷山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 1661, + 'parent_id' => 156, + 'name' => '建瓯市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 1662, + 'parent_id' => 156, + 'name' => '建阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 1663, + 'parent_id' => 156, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 1664, + 'parent_id' => 157, + 'name' => '新罗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 1665, + 'parent_id' => 157, + 'name' => '长汀县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 1666, + 'parent_id' => 157, + 'name' => '永定区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 1667, + 'parent_id' => 157, + 'name' => '上杭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 1668, + 'parent_id' => 157, + 'name' => '武平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 1669, + 'parent_id' => 157, + 'name' => '连城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 1670, + 'parent_id' => 157, + 'name' => '漳平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 1671, + 'parent_id' => 157, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 1672, + 'parent_id' => 158, + 'name' => '蕉城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 1673, + 'parent_id' => 158, + 'name' => '霞浦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 1674, + 'parent_id' => 158, + 'name' => '古田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 1675, + 'parent_id' => 158, + 'name' => '屏南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 1676, + 'parent_id' => 158, + 'name' => '寿宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 1677, + 'parent_id' => 158, + 'name' => '周宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 1678, + 'parent_id' => 158, + 'name' => '柘荣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 1679, + 'parent_id' => 158, + 'name' => '福安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 1680, + 'parent_id' => 158, + 'name' => '福鼎市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 1681, + 'parent_id' => 158, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 1682, + 'parent_id' => 159, + 'name' => '东湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 1683, + 'parent_id' => 159, + 'name' => '西湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 1684, + 'parent_id' => 159, + 'name' => '青云谱区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 1685, + 'parent_id' => 159, + 'name' => '湾里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 1686, + 'parent_id' => 159, + 'name' => '青山湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 1687, + 'parent_id' => 159, + 'name' => '南昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 1688, + 'parent_id' => 159, + 'name' => '新建县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 1689, + 'parent_id' => 159, + 'name' => '安义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 1690, + 'parent_id' => 159, + 'name' => '进贤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 1691, + 'parent_id' => 159, + 'name' => '红谷滩新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 1692, + 'parent_id' => 159, + 'name' => '经济技术开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 1693, + 'parent_id' => 159, + 'name' => '昌北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 1694, + 'parent_id' => 159, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 1695, + 'parent_id' => 160, + 'name' => '昌江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 1696, + 'parent_id' => 160, + 'name' => '珠山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 1697, + 'parent_id' => 160, + 'name' => '浮梁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 1698, + 'parent_id' => 160, + 'name' => '乐平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 1699, + 'parent_id' => 160, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 1700, + 'parent_id' => 161, + 'name' => '安源区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 1701, + 'parent_id' => 161, + 'name' => '湘东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 1702, + 'parent_id' => 161, + 'name' => '莲花县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 1703, + 'parent_id' => 161, + 'name' => '上栗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 1704, + 'parent_id' => 161, + 'name' => '芦溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 1705, + 'parent_id' => 161, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 1706, + 'parent_id' => 162, + 'name' => '庐山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 1707, + 'parent_id' => 162, + 'name' => '浔阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 1708, + 'parent_id' => 162, + 'name' => '九江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 1709, + 'parent_id' => 162, + 'name' => '武宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 1710, + 'parent_id' => 162, + 'name' => '修水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 1711, + 'parent_id' => 162, + 'name' => '永修县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 1712, + 'parent_id' => 162, + 'name' => '德安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 1713, + 'parent_id' => 162, + 'name' => '星子县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 1714, + 'parent_id' => 162, + 'name' => '都昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 1715, + 'parent_id' => 162, + 'name' => '湖口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 1716, + 'parent_id' => 162, + 'name' => '彭泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 1717, + 'parent_id' => 162, + 'name' => '瑞昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 1718, + 'parent_id' => 162, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 1719, + 'parent_id' => 162, + 'name' => '共青城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 1720, + 'parent_id' => 163, + 'name' => '渝水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 1721, + 'parent_id' => 163, + 'name' => '分宜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 1722, + 'parent_id' => 163, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 1723, + 'parent_id' => 164, + 'name' => '月湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 1724, + 'parent_id' => 164, + 'name' => '余江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 1725, + 'parent_id' => 164, + 'name' => '贵溪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 1726, + 'parent_id' => 164, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 1727, + 'parent_id' => 165, + 'name' => '章贡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 1728, + 'parent_id' => 165, + 'name' => '赣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 1729, + 'parent_id' => 165, + 'name' => '信丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 1730, + 'parent_id' => 165, + 'name' => '大余县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 1731, + 'parent_id' => 165, + 'name' => '上犹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 1732, + 'parent_id' => 165, + 'name' => '崇义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 1733, + 'parent_id' => 165, + 'name' => '安远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 1734, + 'parent_id' => 165, + 'name' => '龙南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 1735, + 'parent_id' => 165, + 'name' => '定南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 1736, + 'parent_id' => 165, + 'name' => '全南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 1737, + 'parent_id' => 165, + 'name' => '宁都县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 1738, + 'parent_id' => 165, + 'name' => '于都县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 1739, + 'parent_id' => 165, + 'name' => '兴国县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 1740, + 'parent_id' => 165, + 'name' => '会昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 1741, + 'parent_id' => 165, + 'name' => '寻乌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 1742, + 'parent_id' => 165, + 'name' => '石城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 1743, + 'parent_id' => 165, + 'name' => '黄金区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 1744, + 'parent_id' => 165, + 'name' => '瑞金市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 1745, + 'parent_id' => 165, + 'name' => '南康区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 1746, + 'parent_id' => 165, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 1747, + 'parent_id' => 166, + 'name' => '吉州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 1748, + 'parent_id' => 166, + 'name' => '青原区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 1749, + 'parent_id' => 166, + 'name' => '吉安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 1750, + 'parent_id' => 166, + 'name' => '吉水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 1751, + 'parent_id' => 166, + 'name' => '峡江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 1752, + 'parent_id' => 166, + 'name' => '新干县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 1753, + 'parent_id' => 166, + 'name' => '永丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 1754, + 'parent_id' => 166, + 'name' => '泰和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 1755, + 'parent_id' => 166, + 'name' => '遂川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 1756, + 'parent_id' => 166, + 'name' => '万安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 1757, + 'parent_id' => 166, + 'name' => '安福县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 1758, + 'parent_id' => 166, + 'name' => '永新县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 1759, + 'parent_id' => 166, + 'name' => '井冈山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 1760, + 'parent_id' => 166, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 1761, + 'parent_id' => 167, + 'name' => '袁州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 1762, + 'parent_id' => 167, + 'name' => '奉新县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 1763, + 'parent_id' => 167, + 'name' => '万载县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 1764, + 'parent_id' => 167, + 'name' => '上高县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 1765, + 'parent_id' => 167, + 'name' => '宜丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 1766, + 'parent_id' => 167, + 'name' => '靖安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 1767, + 'parent_id' => 167, + 'name' => '铜鼓县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 1768, + 'parent_id' => 167, + 'name' => '丰城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 1769, + 'parent_id' => 167, + 'name' => '樟树市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 1770, + 'parent_id' => 167, + 'name' => '高安市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 1771, + 'parent_id' => 167, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 1772, + 'parent_id' => 168, + 'name' => '临川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 1773, + 'parent_id' => 168, + 'name' => '南城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 1774, + 'parent_id' => 168, + 'name' => '黎川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 1775, + 'parent_id' => 168, + 'name' => '南丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 1776, + 'parent_id' => 168, + 'name' => '崇仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 1777, + 'parent_id' => 168, + 'name' => '乐安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 1778, + 'parent_id' => 168, + 'name' => '宜黄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 1779, + 'parent_id' => 168, + 'name' => '金溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 1780, + 'parent_id' => 168, + 'name' => '资溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 1781, + 'parent_id' => 168, + 'name' => '东乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 1782, + 'parent_id' => 168, + 'name' => '广昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 1783, + 'parent_id' => 168, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 1784, + 'parent_id' => 169, + 'name' => '信州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 1785, + 'parent_id' => 169, + 'name' => '上饶县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 1786, + 'parent_id' => 169, + 'name' => '广丰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 1787, + 'parent_id' => 169, + 'name' => '玉山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 1788, + 'parent_id' => 169, + 'name' => '铅山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 1789, + 'parent_id' => 169, + 'name' => '横峰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 1790, + 'parent_id' => 169, + 'name' => '弋阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 1791, + 'parent_id' => 169, + 'name' => '余干县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 1792, + 'parent_id' => 169, + 'name' => '鄱阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 1793, + 'parent_id' => 169, + 'name' => '万年县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 1794, + 'parent_id' => 169, + 'name' => '婺源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 1795, + 'parent_id' => 169, + 'name' => '德兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 1796, + 'parent_id' => 169, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 1797, + 'parent_id' => 170, + 'name' => '历下区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 1798, + 'parent_id' => 170, + 'name' => '市中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 1799, + 'parent_id' => 170, + 'name' => '槐荫区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 1800, + 'parent_id' => 170, + 'name' => '天桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 1801, + 'parent_id' => 170, + 'name' => '历城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 1802, + 'parent_id' => 170, + 'name' => '长清区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 1803, + 'parent_id' => 170, + 'name' => '平阴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 1804, + 'parent_id' => 170, + 'name' => '济阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 1805, + 'parent_id' => 170, + 'name' => '商河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 1806, + 'parent_id' => 170, + 'name' => '章丘市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 1807, + 'parent_id' => 170, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 1808, + 'parent_id' => 171, + 'name' => '市南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 1809, + 'parent_id' => 171, + 'name' => '市北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 1810, + 'parent_id' => 171, + 'name' => '四方区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 1811, + 'parent_id' => 171, + 'name' => '黄岛区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 1812, + 'parent_id' => 171, + 'name' => '崂山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 1813, + 'parent_id' => 171, + 'name' => '李沧区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 1814, + 'parent_id' => 171, + 'name' => '城阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 1815, + 'parent_id' => 171, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 1816, + 'parent_id' => 171, + 'name' => '胶州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 1817, + 'parent_id' => 171, + 'name' => '即墨市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 1818, + 'parent_id' => 171, + 'name' => '平度市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 1819, + 'parent_id' => 171, + 'name' => '胶南市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 1820, + 'parent_id' => 171, + 'name' => '莱西市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 1821, + 'parent_id' => 171, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 1822, + 'parent_id' => 172, + 'name' => '淄川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 1823, + 'parent_id' => 172, + 'name' => '张店区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 1824, + 'parent_id' => 172, + 'name' => '博山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 1825, + 'parent_id' => 172, + 'name' => '临淄区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 1826, + 'parent_id' => 172, + 'name' => '周村区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 1827, + 'parent_id' => 172, + 'name' => '桓台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 1828, + 'parent_id' => 172, + 'name' => '高青县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 1829, + 'parent_id' => 172, + 'name' => '沂源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 1830, + 'parent_id' => 172, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 1831, + 'parent_id' => 173, + 'name' => '市中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 1832, + 'parent_id' => 173, + 'name' => '薛城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 1833, + 'parent_id' => 173, + 'name' => '峄城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 1834, + 'parent_id' => 173, + 'name' => '台儿庄区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 1835, + 'parent_id' => 173, + 'name' => '山亭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 1836, + 'parent_id' => 173, + 'name' => '滕州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 1837, + 'parent_id' => 173, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 1838, + 'parent_id' => 174, + 'name' => '东营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 1839, + 'parent_id' => 174, + 'name' => '河口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 1840, + 'parent_id' => 174, + 'name' => '垦利县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 1841, + 'parent_id' => 174, + 'name' => '利津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 1842, + 'parent_id' => 174, + 'name' => '广饶县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 1843, + 'parent_id' => 174, + 'name' => '西城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 1844, + 'parent_id' => 174, + 'name' => '东城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 1845, + 'parent_id' => 174, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 1846, + 'parent_id' => 175, + 'name' => '芝罘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 1847, + 'parent_id' => 175, + 'name' => '福山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 1848, + 'parent_id' => 175, + 'name' => '牟平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 1849, + 'parent_id' => 175, + 'name' => '莱山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 1850, + 'parent_id' => 175, + 'name' => '长岛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 1851, + 'parent_id' => 175, + 'name' => '龙口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 1852, + 'parent_id' => 175, + 'name' => '莱阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 1853, + 'parent_id' => 175, + 'name' => '莱州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 1854, + 'parent_id' => 175, + 'name' => '蓬莱市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 1855, + 'parent_id' => 175, + 'name' => '招远市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 1856, + 'parent_id' => 175, + 'name' => '栖霞市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 1857, + 'parent_id' => 175, + 'name' => '海阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 1858, + 'parent_id' => 175, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 1859, + 'parent_id' => 176, + 'name' => '潍城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 1860, + 'parent_id' => 176, + 'name' => '寒亭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 1861, + 'parent_id' => 176, + 'name' => '坊子区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 1862, + 'parent_id' => 176, + 'name' => '奎文区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 1863, + 'parent_id' => 176, + 'name' => '临朐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 1864, + 'parent_id' => 176, + 'name' => '昌乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 1865, + 'parent_id' => 176, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 1866, + 'parent_id' => 176, + 'name' => '青州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 1867, + 'parent_id' => 176, + 'name' => '诸城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 1868, + 'parent_id' => 176, + 'name' => '寿光市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 1869, + 'parent_id' => 176, + 'name' => '安丘市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 1870, + 'parent_id' => 176, + 'name' => '高密市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 1871, + 'parent_id' => 176, + 'name' => '昌邑市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 1872, + 'parent_id' => 176, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 1873, + 'parent_id' => 177, + 'name' => '市中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 1874, + 'parent_id' => 177, + 'name' => '任城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 1875, + 'parent_id' => 177, + 'name' => '微山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 1876, + 'parent_id' => 177, + 'name' => '鱼台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 1877, + 'parent_id' => 177, + 'name' => '金乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 1878, + 'parent_id' => 177, + 'name' => '嘉祥县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 1879, + 'parent_id' => 177, + 'name' => '汶上县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 1880, + 'parent_id' => 177, + 'name' => '泗水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 1881, + 'parent_id' => 177, + 'name' => '梁山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 1882, + 'parent_id' => 177, + 'name' => '曲阜市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 1883, + 'parent_id' => 177, + 'name' => '兖州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 1884, + 'parent_id' => 177, + 'name' => '邹城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 1885, + 'parent_id' => 177, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 1886, + 'parent_id' => 178, + 'name' => '泰山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 1887, + 'parent_id' => 178, + 'name' => '岱岳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 1888, + 'parent_id' => 178, + 'name' => '宁阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 1889, + 'parent_id' => 178, + 'name' => '东平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 1890, + 'parent_id' => 178, + 'name' => '新泰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 1891, + 'parent_id' => 178, + 'name' => '肥城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 1892, + 'parent_id' => 178, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 1893, + 'parent_id' => 179, + 'name' => '环翠区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 1894, + 'parent_id' => 179, + 'name' => '文登区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 1895, + 'parent_id' => 179, + 'name' => '荣成市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 1896, + 'parent_id' => 179, + 'name' => '乳山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 1897, + 'parent_id' => 179, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 1898, + 'parent_id' => 180, + 'name' => '东港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 1899, + 'parent_id' => 180, + 'name' => '岚山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 1900, + 'parent_id' => 180, + 'name' => '五莲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 1901, + 'parent_id' => 180, + 'name' => '莒县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 1902, + 'parent_id' => 180, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 1903, + 'parent_id' => 181, + 'name' => '莱城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 1904, + 'parent_id' => 181, + 'name' => '钢城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 1905, + 'parent_id' => 181, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 1906, + 'parent_id' => 182, + 'name' => '兰山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 1907, + 'parent_id' => 182, + 'name' => '罗庄区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 1908, + 'parent_id' => 182, + 'name' => '河东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 1909, + 'parent_id' => 182, + 'name' => '沂南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 1910, + 'parent_id' => 182, + 'name' => '郯城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 1911, + 'parent_id' => 182, + 'name' => '沂水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 1912, + 'parent_id' => 182, + 'name' => '兰陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 1913, + 'parent_id' => 182, + 'name' => '费县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 1914, + 'parent_id' => 182, + 'name' => '平邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 1915, + 'parent_id' => 182, + 'name' => '莒南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 1916, + 'parent_id' => 182, + 'name' => '蒙阴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 1917, + 'parent_id' => 182, + 'name' => '临沭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 1918, + 'parent_id' => 182, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 1919, + 'parent_id' => 183, + 'name' => '德城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 1920, + 'parent_id' => 183, + 'name' => '陵城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 1921, + 'parent_id' => 183, + 'name' => '宁津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 1922, + 'parent_id' => 183, + 'name' => '庆云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 1923, + 'parent_id' => 183, + 'name' => '临邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 1924, + 'parent_id' => 183, + 'name' => '齐河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 1925, + 'parent_id' => 183, + 'name' => '平原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 1926, + 'parent_id' => 183, + 'name' => '夏津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 1927, + 'parent_id' => 183, + 'name' => '武城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 1928, + 'parent_id' => 183, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 1929, + 'parent_id' => 183, + 'name' => '乐陵市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 1930, + 'parent_id' => 183, + 'name' => '禹城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 1931, + 'parent_id' => 183, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 1932, + 'parent_id' => 184, + 'name' => '东昌府区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 1933, + 'parent_id' => 184, + 'name' => '阳谷县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 1934, + 'parent_id' => 184, + 'name' => '莘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 1935, + 'parent_id' => 184, + 'name' => '茌平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 1936, + 'parent_id' => 184, + 'name' => '东阿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 1937, + 'parent_id' => 184, + 'name' => '冠县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 1938, + 'parent_id' => 184, + 'name' => '高唐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 1939, + 'parent_id' => 184, + 'name' => '临清市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 1940, + 'parent_id' => 184, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 1941, + 'parent_id' => 185, + 'name' => '滨城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 1942, + 'parent_id' => 185, + 'name' => '惠民县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 1943, + 'parent_id' => 185, + 'name' => '阳信县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 1944, + 'parent_id' => 185, + 'name' => '无棣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 1945, + 'parent_id' => 185, + 'name' => '沾化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 1946, + 'parent_id' => 185, + 'name' => '博兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 1947, + 'parent_id' => 185, + 'name' => '邹平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 1948, + 'parent_id' => 185, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 1949, + 'parent_id' => 186, + 'name' => '牡丹区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 1950, + 'parent_id' => 186, + 'name' => '曹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 1951, + 'parent_id' => 186, + 'name' => '单县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 1952, + 'parent_id' => 186, + 'name' => '成武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 1953, + 'parent_id' => 186, + 'name' => '巨野县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 1954, + 'parent_id' => 186, + 'name' => '郓城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 1955, + 'parent_id' => 186, + 'name' => '鄄城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 1956, + 'parent_id' => 186, + 'name' => '定陶县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 1957, + 'parent_id' => 186, + 'name' => '东明县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 1958, + 'parent_id' => 186, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 1959, + 'parent_id' => 187, + 'name' => '中原区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 1960, + 'parent_id' => 187, + 'name' => '二七区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 1961, + 'parent_id' => 187, + 'name' => '管城回族区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 1962, + 'parent_id' => 187, + 'name' => '金水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 1963, + 'parent_id' => 187, + 'name' => '上街区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 1964, + 'parent_id' => 187, + 'name' => '惠济区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 1965, + 'parent_id' => 187, + 'name' => '中牟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 1966, + 'parent_id' => 187, + 'name' => '巩义市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 1967, + 'parent_id' => 187, + 'name' => '荥阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 1968, + 'parent_id' => 187, + 'name' => '新密市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 1969, + 'parent_id' => 187, + 'name' => '新郑市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 1970, + 'parent_id' => 187, + 'name' => '登封市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 1971, + 'parent_id' => 187, + 'name' => '郑东新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 1972, + 'parent_id' => 187, + 'name' => '高新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 1973, + 'parent_id' => 187, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 1974, + 'parent_id' => 188, + 'name' => '龙亭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 1975, + 'parent_id' => 188, + 'name' => '顺河回族区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 1976, + 'parent_id' => 188, + 'name' => '鼓楼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 1977, + 'parent_id' => 188, + 'name' => '禹王台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 1978, + 'parent_id' => 188, + 'name' => '金明区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 1979, + 'parent_id' => 188, + 'name' => '杞县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 1980, + 'parent_id' => 188, + 'name' => '通许县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 1981, + 'parent_id' => 188, + 'name' => '尉氏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 1982, + 'parent_id' => 188, + 'name' => '祥符区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 1983, + 'parent_id' => 188, + 'name' => '兰考县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 1984, + 'parent_id' => 188, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 1985, + 'parent_id' => 189, + 'name' => '老城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 1986, + 'parent_id' => 189, + 'name' => '西工区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 1987, + 'parent_id' => 189, + 'name' => '瀍河回族区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 1988, + 'parent_id' => 189, + 'name' => '涧西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 1989, + 'parent_id' => 189, + 'name' => '吉利区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 1990, + 'parent_id' => 189, + 'name' => '洛龙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 1991, + 'parent_id' => 189, + 'name' => '孟津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 1992, + 'parent_id' => 189, + 'name' => '新安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 1993, + 'parent_id' => 189, + 'name' => '栾川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 1994, + 'parent_id' => 189, + 'name' => '嵩县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 1995, + 'parent_id' => 189, + 'name' => '汝阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 1996, + 'parent_id' => 189, + 'name' => '宜阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 1997, + 'parent_id' => 189, + 'name' => '洛宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 1998, + 'parent_id' => 189, + 'name' => '伊川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 1999, + 'parent_id' => 189, + 'name' => '偃师市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 2000, + 'parent_id' => 190, + 'name' => '新华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 2001, + 'parent_id' => 190, + 'name' => '卫东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 2002, + 'parent_id' => 190, + 'name' => '石龙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 2003, + 'parent_id' => 190, + 'name' => '湛河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 2004, + 'parent_id' => 190, + 'name' => '宝丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 2005, + 'parent_id' => 190, + 'name' => '叶县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 2006, + 'parent_id' => 190, + 'name' => '鲁山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 2007, + 'parent_id' => 190, + 'name' => '郏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 2008, + 'parent_id' => 190, + 'name' => '舞钢市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 2009, + 'parent_id' => 190, + 'name' => '汝州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 2010, + 'parent_id' => 190, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 2011, + 'parent_id' => 191, + 'name' => '文峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 2012, + 'parent_id' => 191, + 'name' => '北关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 2013, + 'parent_id' => 191, + 'name' => '殷都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 2014, + 'parent_id' => 191, + 'name' => '龙安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 2015, + 'parent_id' => 191, + 'name' => '安阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 2016, + 'parent_id' => 191, + 'name' => '汤阴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 2017, + 'parent_id' => 191, + 'name' => '滑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 2018, + 'parent_id' => 191, + 'name' => '内黄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 2019, + 'parent_id' => 191, + 'name' => '林州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 2020, + 'parent_id' => 191, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 2021, + 'parent_id' => 192, + 'name' => '鹤山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 2022, + 'parent_id' => 192, + 'name' => '山城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 2023, + 'parent_id' => 192, + 'name' => '淇滨区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 2024, + 'parent_id' => 192, + 'name' => '浚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 2025, + 'parent_id' => 192, + 'name' => '淇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 2026, + 'parent_id' => 192, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 2027, + 'parent_id' => 193, + 'name' => '红旗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 2028, + 'parent_id' => 193, + 'name' => '卫滨区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 2029, + 'parent_id' => 193, + 'name' => '凤泉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 2030, + 'parent_id' => 193, + 'name' => '牧野区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 2031, + 'parent_id' => 193, + 'name' => '新乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 2032, + 'parent_id' => 193, + 'name' => '获嘉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 2033, + 'parent_id' => 193, + 'name' => '原阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 2034, + 'parent_id' => 193, + 'name' => '延津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 2035, + 'parent_id' => 193, + 'name' => '封丘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 2036, + 'parent_id' => 193, + 'name' => '长垣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 2037, + 'parent_id' => 193, + 'name' => '卫辉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 2038, + 'parent_id' => 193, + 'name' => '辉县市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 2039, + 'parent_id' => 193, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 2040, + 'parent_id' => 194, + 'name' => '解放区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 2041, + 'parent_id' => 194, + 'name' => '中站区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 2042, + 'parent_id' => 194, + 'name' => '马村区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 2043, + 'parent_id' => 194, + 'name' => '山阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 2044, + 'parent_id' => 194, + 'name' => '修武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 2045, + 'parent_id' => 194, + 'name' => '博爱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 2046, + 'parent_id' => 194, + 'name' => '武陟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 2047, + 'parent_id' => 194, + 'name' => '温县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 2048, + 'parent_id' => 194, + 'name' => '沁阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 2049, + 'parent_id' => 194, + 'name' => '孟州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 2050, + 'parent_id' => 194, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 2051, + 'parent_id' => 195, + 'name' => '华龙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 2052, + 'parent_id' => 195, + 'name' => '清丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 2053, + 'parent_id' => 195, + 'name' => '南乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 2054, + 'parent_id' => 195, + 'name' => '范县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 2055, + 'parent_id' => 195, + 'name' => '台前县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 2056, + 'parent_id' => 195, + 'name' => '濮阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 2057, + 'parent_id' => 195, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 2058, + 'parent_id' => 196, + 'name' => '魏都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 2059, + 'parent_id' => 196, + 'name' => '许昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 2060, + 'parent_id' => 196, + 'name' => '鄢陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 2061, + 'parent_id' => 196, + 'name' => '襄城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 2062, + 'parent_id' => 196, + 'name' => '禹州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 2063, + 'parent_id' => 196, + 'name' => '长葛市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 2064, + 'parent_id' => 196, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 2065, + 'parent_id' => 197, + 'name' => '源汇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 2066, + 'parent_id' => 197, + 'name' => '郾城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 2067, + 'parent_id' => 197, + 'name' => '召陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 2068, + 'parent_id' => 197, + 'name' => '舞阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 2069, + 'parent_id' => 197, + 'name' => '临颍县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 2070, + 'parent_id' => 197, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 2071, + 'parent_id' => 198, + 'name' => '湖滨区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 2072, + 'parent_id' => 198, + 'name' => '渑池县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 2073, + 'parent_id' => 198, + 'name' => '陕州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 2074, + 'parent_id' => 198, + 'name' => '卢氏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 2075, + 'parent_id' => 198, + 'name' => '义马市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 2076, + 'parent_id' => 198, + 'name' => '灵宝市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 2077, + 'parent_id' => 198, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 2078, + 'parent_id' => 199, + 'name' => '宛城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 2079, + 'parent_id' => 199, + 'name' => '卧龙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 2080, + 'parent_id' => 199, + 'name' => '南召县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 2081, + 'parent_id' => 199, + 'name' => '方城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 2082, + 'parent_id' => 199, + 'name' => '西峡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 2083, + 'parent_id' => 199, + 'name' => '镇平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 2084, + 'parent_id' => 199, + 'name' => '内乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 2085, + 'parent_id' => 199, + 'name' => '淅川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 2086, + 'parent_id' => 199, + 'name' => '社旗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 2087, + 'parent_id' => 199, + 'name' => '唐河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 2088, + 'parent_id' => 199, + 'name' => '新野县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 2089, + 'parent_id' => 199, + 'name' => '桐柏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 2090, + 'parent_id' => 199, + 'name' => '邓州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 2091, + 'parent_id' => 199, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 2092, + 'parent_id' => 200, + 'name' => '梁园区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 2093, + 'parent_id' => 200, + 'name' => '睢阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 2094, + 'parent_id' => 200, + 'name' => '民权县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 2095, + 'parent_id' => 200, + 'name' => '睢县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 2096, + 'parent_id' => 200, + 'name' => '宁陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 2097, + 'parent_id' => 200, + 'name' => '柘城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 2098, + 'parent_id' => 200, + 'name' => '虞城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 2099, + 'parent_id' => 200, + 'name' => '夏邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 2100, + 'parent_id' => 200, + 'name' => '永城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 2101, + 'parent_id' => 200, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 2102, + 'parent_id' => 201, + 'name' => '浉河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 2103, + 'parent_id' => 201, + 'name' => '平桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 2104, + 'parent_id' => 201, + 'name' => '罗山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 2105, + 'parent_id' => 201, + 'name' => '光山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 2106, + 'parent_id' => 201, + 'name' => '新县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 2107, + 'parent_id' => 201, + 'name' => '商城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 2108, + 'parent_id' => 201, + 'name' => '固始县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 2109, + 'parent_id' => 201, + 'name' => '潢川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 2110, + 'parent_id' => 201, + 'name' => '淮滨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 2111, + 'parent_id' => 201, + 'name' => '息县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 2112, + 'parent_id' => 201, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 2113, + 'parent_id' => 202, + 'name' => '川汇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 2114, + 'parent_id' => 202, + 'name' => '扶沟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 2115, + 'parent_id' => 202, + 'name' => '西华县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 2116, + 'parent_id' => 202, + 'name' => '商水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 2117, + 'parent_id' => 202, + 'name' => '沈丘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 2118, + 'parent_id' => 202, + 'name' => '郸城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 2119, + 'parent_id' => 202, + 'name' => '淮阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 2120, + 'parent_id' => 202, + 'name' => '太康县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 2121, + 'parent_id' => 202, + 'name' => '鹿邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 2122, + 'parent_id' => 202, + 'name' => '项城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 2123, + 'parent_id' => 202, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 2124, + 'parent_id' => 203, + 'name' => '驿城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 2125, + 'parent_id' => 203, + 'name' => '西平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 2126, + 'parent_id' => 203, + 'name' => '上蔡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 2127, + 'parent_id' => 203, + 'name' => '平舆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 2128, + 'parent_id' => 203, + 'name' => '正阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 2129, + 'parent_id' => 203, + 'name' => '确山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 2130, + 'parent_id' => 203, + 'name' => '泌阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 2131, + 'parent_id' => 203, + 'name' => '汝南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 2132, + 'parent_id' => 203, + 'name' => '遂平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 2133, + 'parent_id' => 203, + 'name' => '新蔡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 2134, + 'parent_id' => 203, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 2135, + 'parent_id' => 204, + 'name' => '江岸区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 2136, + 'parent_id' => 204, + 'name' => '江汉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 2137, + 'parent_id' => 204, + 'name' => '硚口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 2138, + 'parent_id' => 204, + 'name' => '汉阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 2139, + 'parent_id' => 204, + 'name' => '武昌区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 2140, + 'parent_id' => 204, + 'name' => '青山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 2141, + 'parent_id' => 204, + 'name' => '洪山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 2142, + 'parent_id' => 204, + 'name' => '东西湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 2143, + 'parent_id' => 204, + 'name' => '汉南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 2144, + 'parent_id' => 204, + 'name' => '蔡甸区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 2145, + 'parent_id' => 204, + 'name' => '江夏区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 2146, + 'parent_id' => 204, + 'name' => '黄陂区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 2147, + 'parent_id' => 204, + 'name' => '新洲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 2148, + 'parent_id' => 204, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 2149, + 'parent_id' => 205, + 'name' => '黄石港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 2150, + 'parent_id' => 205, + 'name' => '西塞山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 2151, + 'parent_id' => 205, + 'name' => '下陆区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 2152, + 'parent_id' => 205, + 'name' => '铁山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 2153, + 'parent_id' => 205, + 'name' => '阳新县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 2154, + 'parent_id' => 205, + 'name' => '大冶市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 2155, + 'parent_id' => 205, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 2156, + 'parent_id' => 206, + 'name' => '茅箭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 2157, + 'parent_id' => 206, + 'name' => '张湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 2158, + 'parent_id' => 206, + 'name' => '郧阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 2159, + 'parent_id' => 206, + 'name' => '郧西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 2160, + 'parent_id' => 206, + 'name' => '竹山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 2161, + 'parent_id' => 206, + 'name' => '竹溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 2162, + 'parent_id' => 206, + 'name' => '房县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 2163, + 'parent_id' => 206, + 'name' => '丹江口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 2164, + 'parent_id' => 206, + 'name' => '城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 2165, + 'parent_id' => 206, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 2166, + 'parent_id' => 207, + 'name' => '西陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 2167, + 'parent_id' => 207, + 'name' => '伍家岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 2168, + 'parent_id' => 207, + 'name' => '点军区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 2169, + 'parent_id' => 207, + 'name' => '猇亭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 2170, + 'parent_id' => 207, + 'name' => '夷陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 2171, + 'parent_id' => 207, + 'name' => '远安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 2172, + 'parent_id' => 207, + 'name' => '兴山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 2173, + 'parent_id' => 207, + 'name' => '秭归县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 2174, + 'parent_id' => 207, + 'name' => '长阳土家族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 2175, + 'parent_id' => 207, + 'name' => '五峰土家族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 2176, + 'parent_id' => 207, + 'name' => '葛洲坝区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 2177, + 'parent_id' => 207, + 'name' => '开发区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 2178, + 'parent_id' => 207, + 'name' => '宜都市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 2179, + 'parent_id' => 207, + 'name' => '当阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 2180, + 'parent_id' => 207, + 'name' => '枝江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 2181, + 'parent_id' => 207, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 2182, + 'parent_id' => 208, + 'name' => '襄城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 2183, + 'parent_id' => 208, + 'name' => '樊城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 2184, + 'parent_id' => 208, + 'name' => '襄州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 2185, + 'parent_id' => 208, + 'name' => '南漳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 2186, + 'parent_id' => 208, + 'name' => '谷城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 2187, + 'parent_id' => 208, + 'name' => '保康县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 2188, + 'parent_id' => 208, + 'name' => '老河口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 2189, + 'parent_id' => 208, + 'name' => '枣阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 2190, + 'parent_id' => 208, + 'name' => '宜城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 2191, + 'parent_id' => 208, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 2192, + 'parent_id' => 209, + 'name' => '梁子湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 2193, + 'parent_id' => 209, + 'name' => '华容区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 2194, + 'parent_id' => 209, + 'name' => '鄂城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 2195, + 'parent_id' => 209, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 2196, + 'parent_id' => 210, + 'name' => '东宝区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 2197, + 'parent_id' => 210, + 'name' => '掇刀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 2198, + 'parent_id' => 210, + 'name' => '京山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 2199, + 'parent_id' => 210, + 'name' => '沙洋县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 2200, + 'parent_id' => 210, + 'name' => '钟祥市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 2201, + 'parent_id' => 210, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 2202, + 'parent_id' => 211, + 'name' => '孝南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 2203, + 'parent_id' => 211, + 'name' => '孝昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 2204, + 'parent_id' => 211, + 'name' => '大悟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 2205, + 'parent_id' => 211, + 'name' => '云梦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 2206, + 'parent_id' => 211, + 'name' => '应城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 2207, + 'parent_id' => 211, + 'name' => '安陆市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 2208, + 'parent_id' => 211, + 'name' => '汉川市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 2209, + 'parent_id' => 211, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 2210, + 'parent_id' => 212, + 'name' => '沙市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 2211, + 'parent_id' => 212, + 'name' => '荆州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 2212, + 'parent_id' => 212, + 'name' => '公安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 2213, + 'parent_id' => 212, + 'name' => '监利县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 2214, + 'parent_id' => 212, + 'name' => '江陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 2215, + 'parent_id' => 212, + 'name' => '石首市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 2216, + 'parent_id' => 212, + 'name' => '洪湖市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 2217, + 'parent_id' => 212, + 'name' => '松滋市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 2218, + 'parent_id' => 212, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 2219, + 'parent_id' => 213, + 'name' => '黄州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 2220, + 'parent_id' => 213, + 'name' => '团风县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 2221, + 'parent_id' => 213, + 'name' => '红安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 2222, + 'parent_id' => 213, + 'name' => '罗田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 2223, + 'parent_id' => 213, + 'name' => '英山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 2224, + 'parent_id' => 213, + 'name' => '浠水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 2225, + 'parent_id' => 213, + 'name' => '蕲春县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 2226, + 'parent_id' => 213, + 'name' => '黄梅县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 2227, + 'parent_id' => 213, + 'name' => '麻城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 2228, + 'parent_id' => 213, + 'name' => '武穴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 2229, + 'parent_id' => 213, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 2230, + 'parent_id' => 214, + 'name' => '咸安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 2231, + 'parent_id' => 214, + 'name' => '嘉鱼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 2232, + 'parent_id' => 214, + 'name' => '通城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 2233, + 'parent_id' => 214, + 'name' => '崇阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 2234, + 'parent_id' => 214, + 'name' => '通山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 2235, + 'parent_id' => 214, + 'name' => '赤壁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 2236, + 'parent_id' => 214, + 'name' => '温泉城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 2237, + 'parent_id' => 214, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 2238, + 'parent_id' => 215, + 'name' => '曾都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 2239, + 'parent_id' => 215, + 'name' => '随县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 2240, + 'parent_id' => 215, + 'name' => '广水市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 2241, + 'parent_id' => 215, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 2242, + 'parent_id' => 216, + 'name' => '恩施市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 2243, + 'parent_id' => 216, + 'name' => '利川市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 2244, + 'parent_id' => 216, + 'name' => '建始县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 2245, + 'parent_id' => 216, + 'name' => '巴东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 2246, + 'parent_id' => 216, + 'name' => '宣恩县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 2247, + 'parent_id' => 216, + 'name' => '咸丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 2248, + 'parent_id' => 216, + 'name' => '来凤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 2249, + 'parent_id' => 216, + 'name' => '鹤峰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 2250, + 'parent_id' => 216, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 2251, + 'parent_id' => 217, + 'name' => '芙蓉区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 2252, + 'parent_id' => 217, + 'name' => '天心区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 2253, + 'parent_id' => 217, + 'name' => '岳麓区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 2254, + 'parent_id' => 217, + 'name' => '开福区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 2255, + 'parent_id' => 217, + 'name' => '雨花区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 2256, + 'parent_id' => 217, + 'name' => '长沙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 2257, + 'parent_id' => 217, + 'name' => '望城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 2258, + 'parent_id' => 217, + 'name' => '宁乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 2259, + 'parent_id' => 217, + 'name' => '浏阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 2260, + 'parent_id' => 217, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 2261, + 'parent_id' => 218, + 'name' => '荷塘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 2262, + 'parent_id' => 218, + 'name' => '芦淞区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 2263, + 'parent_id' => 218, + 'name' => '石峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 2264, + 'parent_id' => 218, + 'name' => '天元区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 2265, + 'parent_id' => 218, + 'name' => '株洲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 2266, + 'parent_id' => 218, + 'name' => '攸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 2267, + 'parent_id' => 218, + 'name' => '茶陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 2268, + 'parent_id' => 218, + 'name' => '炎陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 2269, + 'parent_id' => 218, + 'name' => '醴陵市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 2270, + 'parent_id' => 218, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 2271, + 'parent_id' => 219, + 'name' => '雨湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 2272, + 'parent_id' => 219, + 'name' => '岳塘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 2273, + 'parent_id' => 219, + 'name' => '湘潭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 2274, + 'parent_id' => 219, + 'name' => '湘乡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 2275, + 'parent_id' => 219, + 'name' => '韶山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 2276, + 'parent_id' => 219, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 2277, + 'parent_id' => 220, + 'name' => '珠晖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 2278, + 'parent_id' => 220, + 'name' => '雁峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 2279, + 'parent_id' => 220, + 'name' => '石鼓区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 2280, + 'parent_id' => 220, + 'name' => '蒸湘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 2281, + 'parent_id' => 220, + 'name' => '南岳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 2282, + 'parent_id' => 220, + 'name' => '衡阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 2283, + 'parent_id' => 220, + 'name' => '衡南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 2284, + 'parent_id' => 220, + 'name' => '衡山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 2285, + 'parent_id' => 220, + 'name' => '衡东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 2286, + 'parent_id' => 220, + 'name' => '祁东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 2287, + 'parent_id' => 220, + 'name' => '耒阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 2288, + 'parent_id' => 220, + 'name' => '常宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 2289, + 'parent_id' => 220, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 2290, + 'parent_id' => 221, + 'name' => '双清区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 2291, + 'parent_id' => 221, + 'name' => '大祥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 2292, + 'parent_id' => 221, + 'name' => '北塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 2293, + 'parent_id' => 221, + 'name' => '邵东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 2294, + 'parent_id' => 221, + 'name' => '新邵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 2295, + 'parent_id' => 221, + 'name' => '邵阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 2296, + 'parent_id' => 221, + 'name' => '隆回县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 2297, + 'parent_id' => 221, + 'name' => '洞口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 2298, + 'parent_id' => 221, + 'name' => '绥宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 2299, + 'parent_id' => 221, + 'name' => '新宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 2300, + 'parent_id' => 221, + 'name' => '城步苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 2301, + 'parent_id' => 221, + 'name' => '武冈市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 2302, + 'parent_id' => 221, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 2303, + 'parent_id' => 222, + 'name' => '岳阳楼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 2304, + 'parent_id' => 222, + 'name' => '云溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 2305, + 'parent_id' => 222, + 'name' => '君山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 2306, + 'parent_id' => 222, + 'name' => '岳阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 2307, + 'parent_id' => 222, + 'name' => '华容县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 2308, + 'parent_id' => 222, + 'name' => '湘阴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 2309, + 'parent_id' => 222, + 'name' => '平江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 2310, + 'parent_id' => 222, + 'name' => '汨罗市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 2311, + 'parent_id' => 222, + 'name' => '临湘市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 2312, + 'parent_id' => 222, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 2313, + 'parent_id' => 223, + 'name' => '武陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 2314, + 'parent_id' => 223, + 'name' => '鼎城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 2315, + 'parent_id' => 223, + 'name' => '安乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 2316, + 'parent_id' => 223, + 'name' => '汉寿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 2317, + 'parent_id' => 223, + 'name' => '澧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 2318, + 'parent_id' => 223, + 'name' => '临澧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 2319, + 'parent_id' => 223, + 'name' => '桃源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 2320, + 'parent_id' => 223, + 'name' => '石门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 2321, + 'parent_id' => 223, + 'name' => '津市市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 2322, + 'parent_id' => 223, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 2323, + 'parent_id' => 224, + 'name' => '永定区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 2324, + 'parent_id' => 224, + 'name' => '武陵源区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 2325, + 'parent_id' => 224, + 'name' => '慈利县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 2326, + 'parent_id' => 224, + 'name' => '桑植县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 2327, + 'parent_id' => 224, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 2328, + 'parent_id' => 225, + 'name' => '资阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 2329, + 'parent_id' => 225, + 'name' => '赫山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 2330, + 'parent_id' => 225, + 'name' => '南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 2331, + 'parent_id' => 225, + 'name' => '桃江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 2332, + 'parent_id' => 225, + 'name' => '安化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 2333, + 'parent_id' => 225, + 'name' => '沅江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 2334, + 'parent_id' => 225, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 2335, + 'parent_id' => 226, + 'name' => '北湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 2336, + 'parent_id' => 226, + 'name' => '苏仙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 2337, + 'parent_id' => 226, + 'name' => '桂阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 2338, + 'parent_id' => 226, + 'name' => '宜章县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 2339, + 'parent_id' => 226, + 'name' => '永兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 2340, + 'parent_id' => 226, + 'name' => '嘉禾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 2341, + 'parent_id' => 226, + 'name' => '临武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 2342, + 'parent_id' => 226, + 'name' => '汝城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 2343, + 'parent_id' => 226, + 'name' => '桂东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 2344, + 'parent_id' => 226, + 'name' => '安仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 2345, + 'parent_id' => 226, + 'name' => '资兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 2346, + 'parent_id' => 226, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 2347, + 'parent_id' => 227, + 'name' => '零陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 2348, + 'parent_id' => 227, + 'name' => '冷水滩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 2349, + 'parent_id' => 227, + 'name' => '祁阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 2350, + 'parent_id' => 227, + 'name' => '东安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 2351, + 'parent_id' => 227, + 'name' => '双牌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 2352, + 'parent_id' => 227, + 'name' => '道县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 2353, + 'parent_id' => 227, + 'name' => '江永县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 2354, + 'parent_id' => 227, + 'name' => '宁远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 2355, + 'parent_id' => 227, + 'name' => '蓝山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 2356, + 'parent_id' => 227, + 'name' => '新田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 2357, + 'parent_id' => 227, + 'name' => '江华瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 2358, + 'parent_id' => 227, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 2359, + 'parent_id' => 228, + 'name' => '鹤城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 2360, + 'parent_id' => 228, + 'name' => '中方县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 2361, + 'parent_id' => 228, + 'name' => '沅陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 2362, + 'parent_id' => 228, + 'name' => '辰溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 2363, + 'parent_id' => 228, + 'name' => '溆浦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 2364, + 'parent_id' => 228, + 'name' => '会同县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 2365, + 'parent_id' => 228, + 'name' => '麻阳苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 2366, + 'parent_id' => 228, + 'name' => '新晃侗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 2367, + 'parent_id' => 228, + 'name' => '芷江侗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 2368, + 'parent_id' => 228, + 'name' => '靖州苗族侗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 2369, + 'parent_id' => 228, + 'name' => '通道侗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 2370, + 'parent_id' => 228, + 'name' => '洪江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 2371, + 'parent_id' => 228, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 2372, + 'parent_id' => 229, + 'name' => '娄星区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 2373, + 'parent_id' => 229, + 'name' => '双峰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 2374, + 'parent_id' => 229, + 'name' => '新化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 2375, + 'parent_id' => 229, + 'name' => '冷水江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 2376, + 'parent_id' => 229, + 'name' => '涟源市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 2377, + 'parent_id' => 229, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 2378, + 'parent_id' => 230, + 'name' => '吉首市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 2379, + 'parent_id' => 230, + 'name' => '泸溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 2380, + 'parent_id' => 230, + 'name' => '凤凰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 2381, + 'parent_id' => 230, + 'name' => '花垣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 2382, + 'parent_id' => 230, + 'name' => '保靖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 2383, + 'parent_id' => 230, + 'name' => '古丈县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 2384, + 'parent_id' => 230, + 'name' => '永顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 2385, + 'parent_id' => 230, + 'name' => '龙山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 2386, + 'parent_id' => 230, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 2387, + 'parent_id' => 231, + 'name' => '荔湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 2388, + 'parent_id' => 231, + 'name' => '越秀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 2389, + 'parent_id' => 231, + 'name' => '海珠区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 2390, + 'parent_id' => 231, + 'name' => '天河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 2391, + 'parent_id' => 231, + 'name' => '白云区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 2392, + 'parent_id' => 231, + 'name' => '黄埔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 2393, + 'parent_id' => 231, + 'name' => '番禺区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 2394, + 'parent_id' => 231, + 'name' => '花都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 2395, + 'parent_id' => 231, + 'name' => '南沙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 2396, + 'parent_id' => 231, + 'name' => '萝岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 2397, + 'parent_id' => 231, + 'name' => '增城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 2398, + 'parent_id' => 231, + 'name' => '从化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 2399, + 'parent_id' => 231, + 'name' => '东山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 2400, + 'parent_id' => 231, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 2401, + 'parent_id' => 232, + 'name' => '武江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 2402, + 'parent_id' => 232, + 'name' => '浈江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 2403, + 'parent_id' => 232, + 'name' => '曲江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 2404, + 'parent_id' => 232, + 'name' => '始兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 2405, + 'parent_id' => 232, + 'name' => '仁化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 2406, + 'parent_id' => 232, + 'name' => '翁源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 2407, + 'parent_id' => 232, + 'name' => '乳源瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 2408, + 'parent_id' => 232, + 'name' => '新丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 2409, + 'parent_id' => 232, + 'name' => '乐昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 2410, + 'parent_id' => 232, + 'name' => '南雄市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 2411, + 'parent_id' => 232, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 2412, + 'parent_id' => 233, + 'name' => '罗湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 2413, + 'parent_id' => 233, + 'name' => '福田区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 2414, + 'parent_id' => 233, + 'name' => '南山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 2415, + 'parent_id' => 233, + 'name' => '宝安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 2416, + 'parent_id' => 233, + 'name' => '龙岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 2417, + 'parent_id' => 233, + 'name' => '盐田区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 2418, + 'parent_id' => 233, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 2419, + 'parent_id' => 233, + 'name' => '光明新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 2420, + 'parent_id' => 233, + 'name' => '坪山新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 2421, + 'parent_id' => 233, + 'name' => '大鹏新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 2422, + 'parent_id' => 233, + 'name' => '龙华新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 2423, + 'parent_id' => 234, + 'name' => '香洲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 2424, + 'parent_id' => 234, + 'name' => '斗门区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 2425, + 'parent_id' => 234, + 'name' => '金湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 2426, + 'parent_id' => 234, + 'name' => '金唐区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 2427, + 'parent_id' => 234, + 'name' => '南湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 2428, + 'parent_id' => 234, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 2429, + 'parent_id' => 235, + 'name' => '龙湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 2430, + 'parent_id' => 235, + 'name' => '金平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 2431, + 'parent_id' => 235, + 'name' => '濠江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 2432, + 'parent_id' => 235, + 'name' => '潮阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 2433, + 'parent_id' => 235, + 'name' => '潮南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 2434, + 'parent_id' => 235, + 'name' => '澄海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 2435, + 'parent_id' => 235, + 'name' => '南澳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 2436, + 'parent_id' => 235, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 2437, + 'parent_id' => 236, + 'name' => '禅城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 2438, + 'parent_id' => 236, + 'name' => '南海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 2439, + 'parent_id' => 236, + 'name' => '顺德区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 2440, + 'parent_id' => 236, + 'name' => '三水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 2441, + 'parent_id' => 236, + 'name' => '高明区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 2442, + 'parent_id' => 236, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 2443, + 'parent_id' => 237, + 'name' => '蓬江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 2444, + 'parent_id' => 237, + 'name' => '江海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 2445, + 'parent_id' => 237, + 'name' => '新会区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 2446, + 'parent_id' => 237, + 'name' => '台山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 2447, + 'parent_id' => 237, + 'name' => '开平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 2448, + 'parent_id' => 237, + 'name' => '鹤山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 2449, + 'parent_id' => 237, + 'name' => '恩平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 2450, + 'parent_id' => 237, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 2451, + 'parent_id' => 238, + 'name' => '赤坎区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 2452, + 'parent_id' => 238, + 'name' => '霞山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 2453, + 'parent_id' => 238, + 'name' => '坡头区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 2454, + 'parent_id' => 238, + 'name' => '麻章区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 2455, + 'parent_id' => 238, + 'name' => '遂溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 2456, + 'parent_id' => 238, + 'name' => '徐闻县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 2457, + 'parent_id' => 238, + 'name' => '廉江市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 2458, + 'parent_id' => 238, + 'name' => '雷州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 2459, + 'parent_id' => 238, + 'name' => '吴川市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 2460, + 'parent_id' => 238, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 2461, + 'parent_id' => 239, + 'name' => '茂南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 2462, + 'parent_id' => 239, + 'name' => '电白区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 2463, + 'parent_id' => 239, + 'name' => '电白县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 2464, + 'parent_id' => 239, + 'name' => '高州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 2465, + 'parent_id' => 239, + 'name' => '化州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 2466, + 'parent_id' => 239, + 'name' => '信宜市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 2467, + 'parent_id' => 239, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 2468, + 'parent_id' => 240, + 'name' => '端州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 2469, + 'parent_id' => 240, + 'name' => '鼎湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 2470, + 'parent_id' => 240, + 'name' => '广宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 2471, + 'parent_id' => 240, + 'name' => '怀集县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 2472, + 'parent_id' => 240, + 'name' => '封开县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 2473, + 'parent_id' => 240, + 'name' => '德庆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 2474, + 'parent_id' => 240, + 'name' => '高要市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 2475, + 'parent_id' => 240, + 'name' => '四会市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 2476, + 'parent_id' => 240, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 2477, + 'parent_id' => 241, + 'name' => '惠城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 2478, + 'parent_id' => 241, + 'name' => '惠阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 2479, + 'parent_id' => 241, + 'name' => '博罗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 2480, + 'parent_id' => 241, + 'name' => '惠东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 2481, + 'parent_id' => 241, + 'name' => '龙门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 2482, + 'parent_id' => 241, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 2483, + 'parent_id' => 242, + 'name' => '梅江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 2484, + 'parent_id' => 242, + 'name' => '梅县区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 2485, + 'parent_id' => 242, + 'name' => '大埔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 2486, + 'parent_id' => 242, + 'name' => '丰顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 2487, + 'parent_id' => 242, + 'name' => '五华县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 2488, + 'parent_id' => 242, + 'name' => '平远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 2489, + 'parent_id' => 242, + 'name' => '蕉岭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 2490, + 'parent_id' => 242, + 'name' => '兴宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 2491, + 'parent_id' => 242, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 2492, + 'parent_id' => 243, + 'name' => '城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 2493, + 'parent_id' => 243, + 'name' => '海丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 2494, + 'parent_id' => 243, + 'name' => '陆河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 2495, + 'parent_id' => 243, + 'name' => '陆丰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 2496, + 'parent_id' => 243, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 2497, + 'parent_id' => 244, + 'name' => '源城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 2498, + 'parent_id' => 244, + 'name' => '紫金县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 2499, + 'parent_id' => 244, + 'name' => '龙川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 2500, + 'parent_id' => 244, + 'name' => '连平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 2501, + 'parent_id' => 244, + 'name' => '和平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 2502, + 'parent_id' => 244, + 'name' => '东源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 2503, + 'parent_id' => 244, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 2504, + 'parent_id' => 245, + 'name' => '江城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 2505, + 'parent_id' => 245, + 'name' => '阳西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 2506, + 'parent_id' => 245, + 'name' => '阳东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 2507, + 'parent_id' => 245, + 'name' => '阳春市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 2508, + 'parent_id' => 245, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 2509, + 'parent_id' => 246, + 'name' => '清城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 2510, + 'parent_id' => 246, + 'name' => '佛冈县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 2511, + 'parent_id' => 246, + 'name' => '阳山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 2512, + 'parent_id' => 246, + 'name' => '连山壮族瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 2513, + 'parent_id' => 246, + 'name' => '连南瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 2514, + 'parent_id' => 246, + 'name' => '清新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 2515, + 'parent_id' => 246, + 'name' => '英德市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 2516, + 'parent_id' => 246, + 'name' => '连州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 2517, + 'parent_id' => 246, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 2518, + 'parent_id' => 250, + 'name' => '湘桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 2519, + 'parent_id' => 250, + 'name' => '潮安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 2520, + 'parent_id' => 250, + 'name' => '饶平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 2521, + 'parent_id' => 250, + 'name' => '枫溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 2522, + 'parent_id' => 250, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 2523, + 'parent_id' => 251, + 'name' => '榕城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 2524, + 'parent_id' => 251, + 'name' => '揭东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 2525, + 'parent_id' => 251, + 'name' => '揭西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 2526, + 'parent_id' => 251, + 'name' => '惠来县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 2527, + 'parent_id' => 251, + 'name' => '普宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 2528, + 'parent_id' => 251, + 'name' => '东山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 2529, + 'parent_id' => 251, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 2530, + 'parent_id' => 252, + 'name' => '云城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 2531, + 'parent_id' => 252, + 'name' => '新兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 2532, + 'parent_id' => 252, + 'name' => '郁南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 2533, + 'parent_id' => 252, + 'name' => '云安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 2534, + 'parent_id' => 252, + 'name' => '罗定市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 2535, + 'parent_id' => 252, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 2536, + 'parent_id' => 253, + 'name' => '兴宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 2537, + 'parent_id' => 253, + 'name' => '青秀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 2538, + 'parent_id' => 253, + 'name' => '江南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 2539, + 'parent_id' => 253, + 'name' => '西乡塘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 2540, + 'parent_id' => 253, + 'name' => '良庆区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 2541, + 'parent_id' => 253, + 'name' => '邕宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 2542, + 'parent_id' => 253, + 'name' => '武鸣区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 2543, + 'parent_id' => 253, + 'name' => '隆安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 2544, + 'parent_id' => 253, + 'name' => '马山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 2545, + 'parent_id' => 253, + 'name' => '上林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 2546, + 'parent_id' => 253, + 'name' => '宾阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 2547, + 'parent_id' => 253, + 'name' => '横县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 2548, + 'parent_id' => 253, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 2549, + 'parent_id' => 254, + 'name' => '城中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 2550, + 'parent_id' => 254, + 'name' => '鱼峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 2551, + 'parent_id' => 254, + 'name' => '柳南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 2552, + 'parent_id' => 254, + 'name' => '柳北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 2553, + 'parent_id' => 254, + 'name' => '柳江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 2554, + 'parent_id' => 254, + 'name' => '柳城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 2555, + 'parent_id' => 254, + 'name' => '鹿寨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 2556, + 'parent_id' => 254, + 'name' => '融安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 2557, + 'parent_id' => 254, + 'name' => '融水苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 2558, + 'parent_id' => 254, + 'name' => '三江侗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 2559, + 'parent_id' => 254, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 2560, + 'parent_id' => 255, + 'name' => '秀峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 2561, + 'parent_id' => 255, + 'name' => '叠彩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 2562, + 'parent_id' => 255, + 'name' => '象山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 2563, + 'parent_id' => 255, + 'name' => '七星区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 2564, + 'parent_id' => 255, + 'name' => '雁山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 2565, + 'parent_id' => 255, + 'name' => '阳朔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 2566, + 'parent_id' => 255, + 'name' => '临桂区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 2567, + 'parent_id' => 255, + 'name' => '灵川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 2568, + 'parent_id' => 255, + 'name' => '全州县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 2569, + 'parent_id' => 255, + 'name' => '兴安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 2570, + 'parent_id' => 255, + 'name' => '永福县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 2571, + 'parent_id' => 255, + 'name' => '灌阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 2572, + 'parent_id' => 255, + 'name' => '龙胜各族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 2573, + 'parent_id' => 255, + 'name' => '资源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 2574, + 'parent_id' => 255, + 'name' => '平乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 2575, + 'parent_id' => 255, + 'name' => '荔浦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 2576, + 'parent_id' => 255, + 'name' => '恭城瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 2577, + 'parent_id' => 255, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 2578, + 'parent_id' => 256, + 'name' => '万秀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 2579, + 'parent_id' => 256, + 'name' => '蝶山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 2580, + 'parent_id' => 256, + 'name' => '长洲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 2581, + 'parent_id' => 256, + 'name' => '龙圩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 2582, + 'parent_id' => 256, + 'name' => '苍梧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 2583, + 'parent_id' => 256, + 'name' => '藤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 2584, + 'parent_id' => 256, + 'name' => '蒙山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 2585, + 'parent_id' => 256, + 'name' => '岑溪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 2586, + 'parent_id' => 256, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 2587, + 'parent_id' => 257, + 'name' => '海城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 2588, + 'parent_id' => 257, + 'name' => '银海区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 2589, + 'parent_id' => 257, + 'name' => '铁山港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 2590, + 'parent_id' => 257, + 'name' => '合浦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 2591, + 'parent_id' => 257, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 2592, + 'parent_id' => 258, + 'name' => '港口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 2593, + 'parent_id' => 258, + 'name' => '防城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 2594, + 'parent_id' => 258, + 'name' => '上思县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 2595, + 'parent_id' => 258, + 'name' => '东兴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 2596, + 'parent_id' => 258, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 2597, + 'parent_id' => 259, + 'name' => '钦南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 2598, + 'parent_id' => 259, + 'name' => '钦北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 2599, + 'parent_id' => 259, + 'name' => '灵山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 2600, + 'parent_id' => 259, + 'name' => '浦北县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 2601, + 'parent_id' => 259, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 2602, + 'parent_id' => 260, + 'name' => '港北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 2603, + 'parent_id' => 260, + 'name' => '港南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 2604, + 'parent_id' => 260, + 'name' => '覃塘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 2605, + 'parent_id' => 260, + 'name' => '平南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 2606, + 'parent_id' => 260, + 'name' => '桂平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 2607, + 'parent_id' => 260, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 2608, + 'parent_id' => 261, + 'name' => '玉州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 2609, + 'parent_id' => 261, + 'name' => '福绵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 2610, + 'parent_id' => 261, + 'name' => '容县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 2611, + 'parent_id' => 261, + 'name' => '陆川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 2612, + 'parent_id' => 261, + 'name' => '博白县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 2613, + 'parent_id' => 261, + 'name' => '兴业县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 2614, + 'parent_id' => 261, + 'name' => '北流市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 2615, + 'parent_id' => 261, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 2616, + 'parent_id' => 262, + 'name' => '右江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 2617, + 'parent_id' => 262, + 'name' => '田阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 2618, + 'parent_id' => 262, + 'name' => '田东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 2619, + 'parent_id' => 262, + 'name' => '平果县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 2620, + 'parent_id' => 262, + 'name' => '德保县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 2621, + 'parent_id' => 262, + 'name' => '靖西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 2622, + 'parent_id' => 262, + 'name' => '那坡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 2623, + 'parent_id' => 262, + 'name' => '凌云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 2624, + 'parent_id' => 262, + 'name' => '乐业县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 2625, + 'parent_id' => 262, + 'name' => '田林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 2626, + 'parent_id' => 262, + 'name' => '西林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 2627, + 'parent_id' => 262, + 'name' => '隆林各族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 2628, + 'parent_id' => 262, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 2629, + 'parent_id' => 263, + 'name' => '八步区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 2630, + 'parent_id' => 263, + 'name' => '平桂管理区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 2631, + 'parent_id' => 263, + 'name' => '昭平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 2632, + 'parent_id' => 263, + 'name' => '钟山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 2633, + 'parent_id' => 263, + 'name' => '富川瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 2634, + 'parent_id' => 263, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 2635, + 'parent_id' => 264, + 'name' => '金城江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 2636, + 'parent_id' => 264, + 'name' => '南丹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 2637, + 'parent_id' => 264, + 'name' => '天峨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 2638, + 'parent_id' => 264, + 'name' => '凤山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 2639, + 'parent_id' => 264, + 'name' => '东兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 2640, + 'parent_id' => 264, + 'name' => '罗城仫佬族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 2641, + 'parent_id' => 264, + 'name' => '环江毛南族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 2642, + 'parent_id' => 264, + 'name' => '巴马瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 2643, + 'parent_id' => 264, + 'name' => '都安瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 2644, + 'parent_id' => 264, + 'name' => '大化瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 2645, + 'parent_id' => 264, + 'name' => '宜州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 2646, + 'parent_id' => 264, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 2647, + 'parent_id' => 265, + 'name' => '兴宾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 2648, + 'parent_id' => 265, + 'name' => '忻城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 2649, + 'parent_id' => 265, + 'name' => '象州县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 2650, + 'parent_id' => 265, + 'name' => '武宣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 2651, + 'parent_id' => 265, + 'name' => '金秀瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 2652, + 'parent_id' => 265, + 'name' => '合山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 2653, + 'parent_id' => 265, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 2654, + 'parent_id' => 266, + 'name' => '江州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 2655, + 'parent_id' => 266, + 'name' => '扶绥县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 2656, + 'parent_id' => 266, + 'name' => '宁明县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 2657, + 'parent_id' => 266, + 'name' => '龙州县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 2658, + 'parent_id' => 266, + 'name' => '大新县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 2659, + 'parent_id' => 266, + 'name' => '天等县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 2660, + 'parent_id' => 266, + 'name' => '凭祥市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 2661, + 'parent_id' => 266, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 2662, + 'parent_id' => 267, + 'name' => '秀英区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 2663, + 'parent_id' => 267, + 'name' => '龙华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 2664, + 'parent_id' => 267, + 'name' => '琼山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 2665, + 'parent_id' => 267, + 'name' => '美兰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 2666, + 'parent_id' => 267, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 2667, + 'parent_id' => 269, + 'name' => '西沙群岛', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 2668, + 'parent_id' => 269, + 'name' => '南沙群岛', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 2669, + 'parent_id' => 269, + 'name' => '中沙群岛的岛礁及其海域', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 2670, + 'parent_id' => 189, + 'name' => '高新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 2671, + 'parent_id' => 189, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 2672, + 'parent_id' => 270, + 'name' => '万州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 2673, + 'parent_id' => 270, + 'name' => '涪陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 2674, + 'parent_id' => 270, + 'name' => '渝中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 2675, + 'parent_id' => 270, + 'name' => '大渡口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 2676, + 'parent_id' => 270, + 'name' => '江北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 2677, + 'parent_id' => 270, + 'name' => '沙坪坝区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 2678, + 'parent_id' => 270, + 'name' => '九龙坡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 2679, + 'parent_id' => 270, + 'name' => '南岸区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 2680, + 'parent_id' => 270, + 'name' => '北碚区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 2681, + 'parent_id' => 270, + 'name' => '万盛区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 2682, + 'parent_id' => 270, + 'name' => '双桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 2683, + 'parent_id' => 270, + 'name' => '渝北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 2684, + 'parent_id' => 270, + 'name' => '巴南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 2685, + 'parent_id' => 270, + 'name' => '黔江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 2686, + 'parent_id' => 270, + 'name' => '长寿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 2687, + 'parent_id' => 270, + 'name' => '綦江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 2688, + 'parent_id' => 270, + 'name' => '潼南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 2689, + 'parent_id' => 270, + 'name' => '铜梁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 2690, + 'parent_id' => 270, + 'name' => '大足区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 2691, + 'parent_id' => 270, + 'name' => '荣昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 2692, + 'parent_id' => 270, + 'name' => '璧山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 2693, + 'parent_id' => 270, + 'name' => '梁平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 2694, + 'parent_id' => 270, + 'name' => '城口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 2695, + 'parent_id' => 270, + 'name' => '丰都县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 2696, + 'parent_id' => 270, + 'name' => '垫江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 2697, + 'parent_id' => 270, + 'name' => '武隆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 2698, + 'parent_id' => 270, + 'name' => '忠县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 2699, + 'parent_id' => 270, + 'name' => '开县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 2700, + 'parent_id' => 270, + 'name' => '云阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 2701, + 'parent_id' => 270, + 'name' => '奉节县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 2702, + 'parent_id' => 270, + 'name' => '巫山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 2703, + 'parent_id' => 270, + 'name' => '巫溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 2704, + 'parent_id' => 270, + 'name' => '石柱土家族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 2705, + 'parent_id' => 270, + 'name' => '秀山土家族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 2706, + 'parent_id' => 270, + 'name' => '酉阳土家族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 2707, + 'parent_id' => 270, + 'name' => '彭水苗族土家族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 2708, + 'parent_id' => 270, + 'name' => '江津区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 2709, + 'parent_id' => 270, + 'name' => '合川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 2710, + 'parent_id' => 270, + 'name' => '永川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 2711, + 'parent_id' => 270, + 'name' => '南川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 2712, + 'parent_id' => 270, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 2713, + 'parent_id' => 271, + 'name' => '锦江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 2714, + 'parent_id' => 271, + 'name' => '青羊区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 2715, + 'parent_id' => 271, + 'name' => '金牛区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 2716, + 'parent_id' => 271, + 'name' => '武侯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 2717, + 'parent_id' => 271, + 'name' => '成华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 2718, + 'parent_id' => 271, + 'name' => '龙泉驿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 2719, + 'parent_id' => 271, + 'name' => '青白江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 2720, + 'parent_id' => 271, + 'name' => '新都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 2721, + 'parent_id' => 271, + 'name' => '温江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 2722, + 'parent_id' => 271, + 'name' => '金堂县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 2723, + 'parent_id' => 271, + 'name' => '双流县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 2724, + 'parent_id' => 271, + 'name' => '郫县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 2725, + 'parent_id' => 271, + 'name' => '大邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 2726, + 'parent_id' => 271, + 'name' => '蒲江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 2727, + 'parent_id' => 271, + 'name' => '新津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 2728, + 'parent_id' => 271, + 'name' => '都江堰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 2729, + 'parent_id' => 271, + 'name' => '彭州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 2730, + 'parent_id' => 271, + 'name' => '邛崃市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 2731, + 'parent_id' => 271, + 'name' => '崇州市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 2732, + 'parent_id' => 271, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 2733, + 'parent_id' => 272, + 'name' => '自流井区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 2734, + 'parent_id' => 272, + 'name' => '贡井区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 2735, + 'parent_id' => 272, + 'name' => '大安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 2736, + 'parent_id' => 272, + 'name' => '沿滩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 2737, + 'parent_id' => 272, + 'name' => '荣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 2738, + 'parent_id' => 272, + 'name' => '富顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 2739, + 'parent_id' => 272, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 2740, + 'parent_id' => 273, + 'name' => '东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 2741, + 'parent_id' => 273, + 'name' => '西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 2742, + 'parent_id' => 273, + 'name' => '仁和区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 2743, + 'parent_id' => 273, + 'name' => '米易县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 2744, + 'parent_id' => 273, + 'name' => '盐边县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 2745, + 'parent_id' => 273, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 2746, + 'parent_id' => 274, + 'name' => '江阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 2747, + 'parent_id' => 274, + 'name' => '纳溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 2748, + 'parent_id' => 274, + 'name' => '龙马潭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 2749, + 'parent_id' => 274, + 'name' => '泸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 2750, + 'parent_id' => 274, + 'name' => '合江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 2751, + 'parent_id' => 274, + 'name' => '叙永县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 2752, + 'parent_id' => 274, + 'name' => '古蔺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 2753, + 'parent_id' => 274, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 2754, + 'parent_id' => 275, + 'name' => '旌阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 2755, + 'parent_id' => 275, + 'name' => '中江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 2756, + 'parent_id' => 275, + 'name' => '罗江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 2757, + 'parent_id' => 275, + 'name' => '广汉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 2758, + 'parent_id' => 275, + 'name' => '什邡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 2759, + 'parent_id' => 275, + 'name' => '绵竹市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 2760, + 'parent_id' => 275, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 2761, + 'parent_id' => 276, + 'name' => '涪城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 2762, + 'parent_id' => 276, + 'name' => '游仙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 2763, + 'parent_id' => 276, + 'name' => '三台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 2764, + 'parent_id' => 276, + 'name' => '盐亭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 2765, + 'parent_id' => 276, + 'name' => '安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 2766, + 'parent_id' => 276, + 'name' => '梓潼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 2767, + 'parent_id' => 276, + 'name' => '北川羌族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 2768, + 'parent_id' => 276, + 'name' => '平武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 2769, + 'parent_id' => 276, + 'name' => '高新区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 2770, + 'parent_id' => 276, + 'name' => '江油市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 2771, + 'parent_id' => 276, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 2772, + 'parent_id' => 277, + 'name' => '利州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 2773, + 'parent_id' => 277, + 'name' => '昭化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 2774, + 'parent_id' => 277, + 'name' => '朝天区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 2775, + 'parent_id' => 277, + 'name' => '旺苍县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 2776, + 'parent_id' => 277, + 'name' => '青川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 2777, + 'parent_id' => 277, + 'name' => '剑阁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 2778, + 'parent_id' => 277, + 'name' => '苍溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 2779, + 'parent_id' => 277, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 2780, + 'parent_id' => 278, + 'name' => '船山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 2781, + 'parent_id' => 278, + 'name' => '安居区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 2782, + 'parent_id' => 278, + 'name' => '蓬溪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 2783, + 'parent_id' => 278, + 'name' => '射洪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 2784, + 'parent_id' => 278, + 'name' => '大英县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 2785, + 'parent_id' => 278, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 2786, + 'parent_id' => 279, + 'name' => '市中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 2787, + 'parent_id' => 279, + 'name' => '东兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 2788, + 'parent_id' => 279, + 'name' => '威远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 2789, + 'parent_id' => 279, + 'name' => '资中县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 2790, + 'parent_id' => 279, + 'name' => '隆昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 2791, + 'parent_id' => 279, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 2792, + 'parent_id' => 280, + 'name' => '市中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 2793, + 'parent_id' => 280, + 'name' => '沙湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 2794, + 'parent_id' => 280, + 'name' => '五通桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 2795, + 'parent_id' => 280, + 'name' => '金口河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 2796, + 'parent_id' => 280, + 'name' => '犍为县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 2797, + 'parent_id' => 280, + 'name' => '井研县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 2798, + 'parent_id' => 280, + 'name' => '夹江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 2799, + 'parent_id' => 280, + 'name' => '沐川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 2800, + 'parent_id' => 280, + 'name' => '峨边彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 2801, + 'parent_id' => 280, + 'name' => '马边彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 2802, + 'parent_id' => 280, + 'name' => '峨眉山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 2803, + 'parent_id' => 280, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 2804, + 'parent_id' => 281, + 'name' => '顺庆区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 2805, + 'parent_id' => 281, + 'name' => '高坪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 2806, + 'parent_id' => 281, + 'name' => '嘉陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 2807, + 'parent_id' => 281, + 'name' => '南部县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 2808, + 'parent_id' => 281, + 'name' => '营山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 2809, + 'parent_id' => 281, + 'name' => '蓬安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 2810, + 'parent_id' => 281, + 'name' => '仪陇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 2811, + 'parent_id' => 281, + 'name' => '西充县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 2812, + 'parent_id' => 281, + 'name' => '阆中市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 2813, + 'parent_id' => 281, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 2814, + 'parent_id' => 282, + 'name' => '东坡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 2815, + 'parent_id' => 282, + 'name' => '仁寿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 2816, + 'parent_id' => 282, + 'name' => '彭山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 2817, + 'parent_id' => 282, + 'name' => '洪雅县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 2818, + 'parent_id' => 282, + 'name' => '丹棱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 2819, + 'parent_id' => 282, + 'name' => '青神县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 2820, + 'parent_id' => 282, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 2821, + 'parent_id' => 283, + 'name' => '翠屏区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 2822, + 'parent_id' => 283, + 'name' => '宜宾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 2823, + 'parent_id' => 283, + 'name' => '南溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 2824, + 'parent_id' => 283, + 'name' => '江安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 2825, + 'parent_id' => 283, + 'name' => '长宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 2826, + 'parent_id' => 283, + 'name' => '高县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 2827, + 'parent_id' => 283, + 'name' => '珙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 2828, + 'parent_id' => 283, + 'name' => '筠连县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 2829, + 'parent_id' => 283, + 'name' => '兴文县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 2830, + 'parent_id' => 283, + 'name' => '屏山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 2831, + 'parent_id' => 283, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 2832, + 'parent_id' => 284, + 'name' => '广安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 2833, + 'parent_id' => 284, + 'name' => '前锋区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 2834, + 'parent_id' => 284, + 'name' => '岳池县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 2835, + 'parent_id' => 284, + 'name' => '武胜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 2836, + 'parent_id' => 284, + 'name' => '邻水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 2837, + 'parent_id' => 284, + 'name' => '华蓥市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 2838, + 'parent_id' => 284, + 'name' => '市辖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 2839, + 'parent_id' => 284, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 2840, + 'parent_id' => 285, + 'name' => '通川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 2841, + 'parent_id' => 285, + 'name' => '达川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 2842, + 'parent_id' => 285, + 'name' => '宣汉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 2843, + 'parent_id' => 285, + 'name' => '开江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 2844, + 'parent_id' => 285, + 'name' => '大竹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 2845, + 'parent_id' => 285, + 'name' => '渠县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 2846, + 'parent_id' => 285, + 'name' => '万源市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 2847, + 'parent_id' => 285, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 2848, + 'parent_id' => 286, + 'name' => '雨城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 2849, + 'parent_id' => 286, + 'name' => '名山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 2850, + 'parent_id' => 286, + 'name' => '荥经县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 2851, + 'parent_id' => 286, + 'name' => '汉源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 2852, + 'parent_id' => 286, + 'name' => '石棉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 2853, + 'parent_id' => 286, + 'name' => '天全县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 2854, + 'parent_id' => 286, + 'name' => '芦山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 2855, + 'parent_id' => 286, + 'name' => '宝兴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 2856, + 'parent_id' => 286, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 2857, + 'parent_id' => 287, + 'name' => '巴州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 2858, + 'parent_id' => 287, + 'name' => '恩阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 2859, + 'parent_id' => 287, + 'name' => '通江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 2860, + 'parent_id' => 287, + 'name' => '南江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 2861, + 'parent_id' => 287, + 'name' => '平昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 2862, + 'parent_id' => 287, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 2863, + 'parent_id' => 288, + 'name' => '雁江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 2864, + 'parent_id' => 288, + 'name' => '安岳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 2865, + 'parent_id' => 288, + 'name' => '乐至县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 2866, + 'parent_id' => 288, + 'name' => '简阳市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 2867, + 'parent_id' => 288, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 2868, + 'parent_id' => 289, + 'name' => '汶川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 2869, + 'parent_id' => 289, + 'name' => '理县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 2870, + 'parent_id' => 289, + 'name' => '茂县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 2871, + 'parent_id' => 289, + 'name' => '松潘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 2872, + 'parent_id' => 289, + 'name' => '九寨沟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 2873, + 'parent_id' => 289, + 'name' => '金川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 2874, + 'parent_id' => 289, + 'name' => '小金县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 2875, + 'parent_id' => 289, + 'name' => '黑水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 2876, + 'parent_id' => 289, + 'name' => '马尔康县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 2877, + 'parent_id' => 289, + 'name' => '壤塘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 2878, + 'parent_id' => 289, + 'name' => '阿坝县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 2879, + 'parent_id' => 289, + 'name' => '若尔盖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 2880, + 'parent_id' => 289, + 'name' => '红原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 2881, + 'parent_id' => 289, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 2882, + 'parent_id' => 290, + 'name' => '康定市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 2883, + 'parent_id' => 290, + 'name' => '泸定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 2884, + 'parent_id' => 290, + 'name' => '丹巴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 2885, + 'parent_id' => 290, + 'name' => '九龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 2886, + 'parent_id' => 290, + 'name' => '雅江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 2887, + 'parent_id' => 290, + 'name' => '道孚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 2888, + 'parent_id' => 290, + 'name' => '炉霍县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 2889, + 'parent_id' => 290, + 'name' => '甘孜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 2890, + 'parent_id' => 290, + 'name' => '新龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 2891, + 'parent_id' => 290, + 'name' => '德格县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 2892, + 'parent_id' => 290, + 'name' => '白玉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 2893, + 'parent_id' => 290, + 'name' => '石渠县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 2894, + 'parent_id' => 290, + 'name' => '色达县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 2895, + 'parent_id' => 290, + 'name' => '理塘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 2896, + 'parent_id' => 290, + 'name' => '巴塘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 2897, + 'parent_id' => 290, + 'name' => '乡城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 2898, + 'parent_id' => 290, + 'name' => '稻城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 2899, + 'parent_id' => 290, + 'name' => '得荣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 2900, + 'parent_id' => 290, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 2901, + 'parent_id' => 291, + 'name' => '西昌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 2902, + 'parent_id' => 291, + 'name' => '木里藏族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 2903, + 'parent_id' => 291, + 'name' => '盐源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 2904, + 'parent_id' => 291, + 'name' => '德昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 2905, + 'parent_id' => 291, + 'name' => '会理县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 2906, + 'parent_id' => 291, + 'name' => '会东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 2907, + 'parent_id' => 291, + 'name' => '宁南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 2908, + 'parent_id' => 291, + 'name' => '普格县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 2909, + 'parent_id' => 291, + 'name' => '布拖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 2910, + 'parent_id' => 291, + 'name' => '金阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 2911, + 'parent_id' => 291, + 'name' => '昭觉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 2912, + 'parent_id' => 291, + 'name' => '喜德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 2913, + 'parent_id' => 291, + 'name' => '冕宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 2914, + 'parent_id' => 291, + 'name' => '越西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 2915, + 'parent_id' => 291, + 'name' => '甘洛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 2916, + 'parent_id' => 291, + 'name' => '美姑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 2917, + 'parent_id' => 291, + 'name' => '雷波县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 2918, + 'parent_id' => 291, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 2919, + 'parent_id' => 292, + 'name' => '南明区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 2920, + 'parent_id' => 292, + 'name' => '云岩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 2921, + 'parent_id' => 292, + 'name' => '花溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 2922, + 'parent_id' => 292, + 'name' => '乌当区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 2923, + 'parent_id' => 292, + 'name' => '白云区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 2924, + 'parent_id' => 292, + 'name' => '小河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 2925, + 'parent_id' => 292, + 'name' => '开阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 2926, + 'parent_id' => 292, + 'name' => '息烽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 2927, + 'parent_id' => 292, + 'name' => '修文县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 2928, + 'parent_id' => 292, + 'name' => '观山湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 2929, + 'parent_id' => 292, + 'name' => '清镇市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 2930, + 'parent_id' => 292, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 2931, + 'parent_id' => 293, + 'name' => '钟山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 2932, + 'parent_id' => 293, + 'name' => '六枝特区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 2933, + 'parent_id' => 293, + 'name' => '水城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 2934, + 'parent_id' => 293, + 'name' => '盘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 2935, + 'parent_id' => 293, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 2936, + 'parent_id' => 294, + 'name' => '红花岗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 2937, + 'parent_id' => 294, + 'name' => '汇川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 2938, + 'parent_id' => 294, + 'name' => '遵义县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 2939, + 'parent_id' => 294, + 'name' => '桐梓县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 2940, + 'parent_id' => 294, + 'name' => '绥阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 2941, + 'parent_id' => 294, + 'name' => '正安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 2942, + 'parent_id' => 294, + 'name' => '道真仡佬族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 2943, + 'parent_id' => 294, + 'name' => '务川仡佬族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 2944, + 'parent_id' => 294, + 'name' => '凤冈县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 2945, + 'parent_id' => 294, + 'name' => '湄潭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 2946, + 'parent_id' => 294, + 'name' => '余庆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 2947, + 'parent_id' => 294, + 'name' => '习水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 2948, + 'parent_id' => 294, + 'name' => '赤水市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 2949, + 'parent_id' => 294, + 'name' => '仁怀市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 2950, + 'parent_id' => 294, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 2951, + 'parent_id' => 295, + 'name' => '西秀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 2952, + 'parent_id' => 295, + 'name' => '平坝区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 2953, + 'parent_id' => 295, + 'name' => '普定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 2954, + 'parent_id' => 295, + 'name' => '镇宁布依族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 2955, + 'parent_id' => 295, + 'name' => '关岭布依族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 2956, + 'parent_id' => 295, + 'name' => '紫云苗族布依族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 2957, + 'parent_id' => 295, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 2958, + 'parent_id' => 296, + 'name' => '碧江区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 2959, + 'parent_id' => 296, + 'name' => '江口县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 2960, + 'parent_id' => 296, + 'name' => '玉屏侗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 2961, + 'parent_id' => 296, + 'name' => '石阡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 2962, + 'parent_id' => 296, + 'name' => '思南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 2963, + 'parent_id' => 296, + 'name' => '印江土家族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 2964, + 'parent_id' => 296, + 'name' => '德江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 2965, + 'parent_id' => 296, + 'name' => '沿河土家族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 2966, + 'parent_id' => 296, + 'name' => '松桃苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 2967, + 'parent_id' => 296, + 'name' => '万山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 2968, + 'parent_id' => 296, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 2969, + 'parent_id' => 297, + 'name' => '兴义市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 2970, + 'parent_id' => 297, + 'name' => '兴仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 2971, + 'parent_id' => 297, + 'name' => '普安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 2972, + 'parent_id' => 297, + 'name' => '晴隆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 2973, + 'parent_id' => 297, + 'name' => '贞丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 2974, + 'parent_id' => 297, + 'name' => '望谟县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 2975, + 'parent_id' => 297, + 'name' => '册亨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 2976, + 'parent_id' => 297, + 'name' => '安龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 2977, + 'parent_id' => 297, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 2978, + 'parent_id' => 298, + 'name' => '七星关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 2979, + 'parent_id' => 298, + 'name' => '大方县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 2980, + 'parent_id' => 298, + 'name' => '黔西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 2981, + 'parent_id' => 298, + 'name' => '金沙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 2982, + 'parent_id' => 298, + 'name' => '织金县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 2983, + 'parent_id' => 298, + 'name' => '纳雍县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 2984, + 'parent_id' => 298, + 'name' => '威宁彝族回族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 2985, + 'parent_id' => 298, + 'name' => '赫章县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 2986, + 'parent_id' => 298, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 2987, + 'parent_id' => 299, + 'name' => '凯里市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 2988, + 'parent_id' => 299, + 'name' => '黄平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 2989, + 'parent_id' => 299, + 'name' => '施秉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 2990, + 'parent_id' => 299, + 'name' => '三穗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 2991, + 'parent_id' => 299, + 'name' => '镇远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 2992, + 'parent_id' => 299, + 'name' => '岑巩县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 2993, + 'parent_id' => 299, + 'name' => '天柱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 2994, + 'parent_id' => 299, + 'name' => '锦屏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 2995, + 'parent_id' => 299, + 'name' => '剑河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 2996, + 'parent_id' => 299, + 'name' => '台江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 2997, + 'parent_id' => 299, + 'name' => '黎平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 2998, + 'parent_id' => 299, + 'name' => '榕江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 2999, + 'parent_id' => 299, + 'name' => '从江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 3000, + 'parent_id' => 299, + 'name' => '雷山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 3001, + 'parent_id' => 299, + 'name' => '麻江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 3002, + 'parent_id' => 299, + 'name' => '丹寨县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 3003, + 'parent_id' => 299, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 3004, + 'parent_id' => 300, + 'name' => '都匀市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 3005, + 'parent_id' => 300, + 'name' => '福泉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 3006, + 'parent_id' => 300, + 'name' => '荔波县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 3007, + 'parent_id' => 300, + 'name' => '贵定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 3008, + 'parent_id' => 300, + 'name' => '瓮安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 3009, + 'parent_id' => 300, + 'name' => '独山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 3010, + 'parent_id' => 300, + 'name' => '平塘县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 3011, + 'parent_id' => 300, + 'name' => '罗甸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 3012, + 'parent_id' => 300, + 'name' => '长顺县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 3013, + 'parent_id' => 300, + 'name' => '龙里县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 3014, + 'parent_id' => 300, + 'name' => '惠水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 3015, + 'parent_id' => 300, + 'name' => '三都水族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 3016, + 'parent_id' => 300, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 3017, + 'parent_id' => 301, + 'name' => '五华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 3018, + 'parent_id' => 301, + 'name' => '盘龙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 3019, + 'parent_id' => 301, + 'name' => '官渡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 3020, + 'parent_id' => 301, + 'name' => '西山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 3021, + 'parent_id' => 301, + 'name' => '东川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 3022, + 'parent_id' => 301, + 'name' => '呈贡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 3023, + 'parent_id' => 301, + 'name' => '晋宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 3024, + 'parent_id' => 301, + 'name' => '富民县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 3025, + 'parent_id' => 301, + 'name' => '宜良县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 3026, + 'parent_id' => 301, + 'name' => '石林彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 3027, + 'parent_id' => 301, + 'name' => '嵩明县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 3028, + 'parent_id' => 301, + 'name' => '禄劝彝族苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 3029, + 'parent_id' => 301, + 'name' => '寻甸回族彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 3030, + 'parent_id' => 301, + 'name' => '安宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 3031, + 'parent_id' => 301, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 3032, + 'parent_id' => 302, + 'name' => '麒麟区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 3033, + 'parent_id' => 302, + 'name' => '马龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 3034, + 'parent_id' => 302, + 'name' => '陆良县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 3035, + 'parent_id' => 302, + 'name' => '师宗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 3036, + 'parent_id' => 302, + 'name' => '罗平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 3037, + 'parent_id' => 302, + 'name' => '富源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 3038, + 'parent_id' => 302, + 'name' => '会泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 3039, + 'parent_id' => 302, + 'name' => '沾益县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 3040, + 'parent_id' => 302, + 'name' => '宣威市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 3041, + 'parent_id' => 302, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 3042, + 'parent_id' => 303, + 'name' => '红塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 3043, + 'parent_id' => 303, + 'name' => '江川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 3044, + 'parent_id' => 303, + 'name' => '澄江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 3045, + 'parent_id' => 303, + 'name' => '通海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 3046, + 'parent_id' => 303, + 'name' => '华宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 3047, + 'parent_id' => 303, + 'name' => '易门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 3048, + 'parent_id' => 303, + 'name' => '峨山彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 3049, + 'parent_id' => 303, + 'name' => '新平彝族傣族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 3050, + 'parent_id' => 303, + 'name' => '元江哈尼族彝族傣族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 3051, + 'parent_id' => 303, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 3052, + 'parent_id' => 304, + 'name' => '隆阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 3053, + 'parent_id' => 304, + 'name' => '施甸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 3054, + 'parent_id' => 304, + 'name' => '腾冲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 3055, + 'parent_id' => 304, + 'name' => '龙陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 3056, + 'parent_id' => 304, + 'name' => '昌宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 3057, + 'parent_id' => 304, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 3058, + 'parent_id' => 305, + 'name' => '昭阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 3059, + 'parent_id' => 305, + 'name' => '鲁甸县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 3060, + 'parent_id' => 305, + 'name' => '巧家县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 3061, + 'parent_id' => 305, + 'name' => '盐津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 3062, + 'parent_id' => 305, + 'name' => '大关县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 3063, + 'parent_id' => 305, + 'name' => '永善县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 3064, + 'parent_id' => 305, + 'name' => '绥江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 3065, + 'parent_id' => 305, + 'name' => '镇雄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 3066, + 'parent_id' => 305, + 'name' => '彝良县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 3067, + 'parent_id' => 305, + 'name' => '威信县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 3068, + 'parent_id' => 305, + 'name' => '水富县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 3069, + 'parent_id' => 305, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 3070, + 'parent_id' => 306, + 'name' => '古城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 3071, + 'parent_id' => 306, + 'name' => '玉龙纳西族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 3072, + 'parent_id' => 306, + 'name' => '永胜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 3073, + 'parent_id' => 306, + 'name' => '华坪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 3074, + 'parent_id' => 306, + 'name' => '宁蒗彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 3075, + 'parent_id' => 306, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 3076, + 'parent_id' => 307, + 'name' => '思茅区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 3077, + 'parent_id' => 307, + 'name' => '宁洱哈尼族彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 3078, + 'parent_id' => 307, + 'name' => '墨江哈尼族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 3079, + 'parent_id' => 307, + 'name' => '景东彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 3080, + 'parent_id' => 307, + 'name' => '景谷傣族彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 3081, + 'parent_id' => 307, + 'name' => '镇沅彝族哈尼族拉祜族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 3082, + 'parent_id' => 307, + 'name' => '江城哈尼族彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 3083, + 'parent_id' => 307, + 'name' => '孟连傣族拉祜族佤族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 3084, + 'parent_id' => 307, + 'name' => '澜沧拉祜族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 3085, + 'parent_id' => 307, + 'name' => '西盟佤族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 3086, + 'parent_id' => 307, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 3087, + 'parent_id' => 308, + 'name' => '临翔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 3088, + 'parent_id' => 308, + 'name' => '凤庆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 3089, + 'parent_id' => 308, + 'name' => '云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 3090, + 'parent_id' => 308, + 'name' => '永德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 3091, + 'parent_id' => 308, + 'name' => '镇康县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 3092, + 'parent_id' => 308, + 'name' => '双江拉祜族佤族布朗族傣族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 3093, + 'parent_id' => 308, + 'name' => '耿马傣族佤族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 3094, + 'parent_id' => 308, + 'name' => '沧源佤族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 3095, + 'parent_id' => 308, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 3096, + 'parent_id' => 309, + 'name' => '楚雄市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 3097, + 'parent_id' => 309, + 'name' => '双柏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 3098, + 'parent_id' => 309, + 'name' => '牟定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 3099, + 'parent_id' => 309, + 'name' => '南华县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 3100, + 'parent_id' => 309, + 'name' => '姚安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 3101, + 'parent_id' => 309, + 'name' => '大姚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 3102, + 'parent_id' => 309, + 'name' => '永仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 3103, + 'parent_id' => 309, + 'name' => '元谋县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 3104, + 'parent_id' => 309, + 'name' => '武定县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 3105, + 'parent_id' => 309, + 'name' => '禄丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 3106, + 'parent_id' => 309, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 3107, + 'parent_id' => 310, + 'name' => '个旧市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 3108, + 'parent_id' => 310, + 'name' => '开远市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 3109, + 'parent_id' => 310, + 'name' => '蒙自市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 3110, + 'parent_id' => 310, + 'name' => '屏边苗族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 3111, + 'parent_id' => 310, + 'name' => '建水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 3112, + 'parent_id' => 310, + 'name' => '石屏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 3113, + 'parent_id' => 310, + 'name' => '弥勒市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 3114, + 'parent_id' => 310, + 'name' => '泸西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 3115, + 'parent_id' => 310, + 'name' => '元阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 3116, + 'parent_id' => 310, + 'name' => '红河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 3117, + 'parent_id' => 310, + 'name' => '金平苗族瑶族傣族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 3118, + 'parent_id' => 310, + 'name' => '绿春县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 3119, + 'parent_id' => 310, + 'name' => '河口瑶族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 3120, + 'parent_id' => 310, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 3121, + 'parent_id' => 311, + 'name' => '文山市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 3122, + 'parent_id' => 311, + 'name' => '砚山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 3123, + 'parent_id' => 311, + 'name' => '西畴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 3124, + 'parent_id' => 311, + 'name' => '麻栗坡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 3125, + 'parent_id' => 311, + 'name' => '马关县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 3126, + 'parent_id' => 311, + 'name' => '丘北县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 3127, + 'parent_id' => 311, + 'name' => '广南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 3128, + 'parent_id' => 311, + 'name' => '富宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 3129, + 'parent_id' => 311, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 3130, + 'parent_id' => 312, + 'name' => '景洪市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 3131, + 'parent_id' => 312, + 'name' => '勐海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 3132, + 'parent_id' => 312, + 'name' => '勐腊县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 3133, + 'parent_id' => 312, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 3134, + 'parent_id' => 313, + 'name' => '大理市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 3135, + 'parent_id' => 313, + 'name' => '漾濞彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 3136, + 'parent_id' => 313, + 'name' => '祥云县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 3137, + 'parent_id' => 313, + 'name' => '宾川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 3138, + 'parent_id' => 313, + 'name' => '弥渡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 3139, + 'parent_id' => 313, + 'name' => '南涧彝族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 3140, + 'parent_id' => 313, + 'name' => '巍山彝族回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 3141, + 'parent_id' => 313, + 'name' => '永平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 3142, + 'parent_id' => 313, + 'name' => '云龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 3143, + 'parent_id' => 313, + 'name' => '洱源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 3144, + 'parent_id' => 313, + 'name' => '剑川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 3145, + 'parent_id' => 313, + 'name' => '鹤庆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 3146, + 'parent_id' => 313, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 3147, + 'parent_id' => 314, + 'name' => '瑞丽市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 3148, + 'parent_id' => 314, + 'name' => '芒市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 3149, + 'parent_id' => 314, + 'name' => '梁河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 3150, + 'parent_id' => 314, + 'name' => '盈江县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 3151, + 'parent_id' => 314, + 'name' => '陇川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 3152, + 'parent_id' => 314, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 3153, + 'parent_id' => 315, + 'name' => '泸水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 3154, + 'parent_id' => 315, + 'name' => '福贡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 3155, + 'parent_id' => 315, + 'name' => '贡山独龙族怒族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 3156, + 'parent_id' => 315, + 'name' => '兰坪白族普米族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 3157, + 'parent_id' => 315, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 3158, + 'parent_id' => 316, + 'name' => '香格里拉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 3159, + 'parent_id' => 316, + 'name' => '德钦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 3160, + 'parent_id' => 316, + 'name' => '维西傈僳族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 3161, + 'parent_id' => 316, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 3162, + 'parent_id' => 317, + 'name' => '城关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 3163, + 'parent_id' => 317, + 'name' => '林周县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 3164, + 'parent_id' => 317, + 'name' => '当雄县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 3165, + 'parent_id' => 317, + 'name' => '尼木县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 3166, + 'parent_id' => 317, + 'name' => '曲水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 3167, + 'parent_id' => 317, + 'name' => '堆龙德庆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 3168, + 'parent_id' => 317, + 'name' => '达孜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 3169, + 'parent_id' => 317, + 'name' => '墨竹工卡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 3170, + 'parent_id' => 317, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 3171, + 'parent_id' => 318, + 'name' => '卡若区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 3172, + 'parent_id' => 318, + 'name' => '江达县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 3173, + 'parent_id' => 318, + 'name' => '贡觉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 3174, + 'parent_id' => 318, + 'name' => '类乌齐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 3175, + 'parent_id' => 318, + 'name' => '丁青县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 3176, + 'parent_id' => 318, + 'name' => '察雅县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 3177, + 'parent_id' => 318, + 'name' => '八宿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 3178, + 'parent_id' => 318, + 'name' => '左贡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 3179, + 'parent_id' => 318, + 'name' => '芒康县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 3180, + 'parent_id' => 318, + 'name' => '洛隆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 3181, + 'parent_id' => 318, + 'name' => '边坝县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 3182, + 'parent_id' => 318, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 3183, + 'parent_id' => 319, + 'name' => '乃东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 3184, + 'parent_id' => 319, + 'name' => '扎囊县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 3185, + 'parent_id' => 319, + 'name' => '贡嘎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 3186, + 'parent_id' => 319, + 'name' => '桑日县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 3187, + 'parent_id' => 319, + 'name' => '琼结县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 3188, + 'parent_id' => 319, + 'name' => '曲松县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 3189, + 'parent_id' => 319, + 'name' => '措美县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 3190, + 'parent_id' => 319, + 'name' => '洛扎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 3191, + 'parent_id' => 319, + 'name' => '加查县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 3192, + 'parent_id' => 319, + 'name' => '隆子县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 3193, + 'parent_id' => 319, + 'name' => '错那县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 3194, + 'parent_id' => 319, + 'name' => '浪卡子县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 3195, + 'parent_id' => 319, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 3196, + 'parent_id' => 320, + 'name' => '桑珠孜区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 3197, + 'parent_id' => 320, + 'name' => '南木林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 3198, + 'parent_id' => 320, + 'name' => '江孜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 3199, + 'parent_id' => 320, + 'name' => '定日县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 3200, + 'parent_id' => 320, + 'name' => '萨迦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 3201, + 'parent_id' => 320, + 'name' => '拉孜县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 3202, + 'parent_id' => 320, + 'name' => '昂仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 3203, + 'parent_id' => 320, + 'name' => '谢通门县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 3204, + 'parent_id' => 320, + 'name' => '白朗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 3205, + 'parent_id' => 320, + 'name' => '仁布县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 3206, + 'parent_id' => 320, + 'name' => '康马县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 3207, + 'parent_id' => 320, + 'name' => '定结县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 3208, + 'parent_id' => 320, + 'name' => '仲巴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 3209, + 'parent_id' => 320, + 'name' => '亚东县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 3210, + 'parent_id' => 320, + 'name' => '吉隆县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 3211, + 'parent_id' => 320, + 'name' => '聂拉木县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 3212, + 'parent_id' => 320, + 'name' => '萨嘎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 3213, + 'parent_id' => 320, + 'name' => '岗巴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 3214, + 'parent_id' => 320, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 3215, + 'parent_id' => 321, + 'name' => '那曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 3216, + 'parent_id' => 321, + 'name' => '嘉黎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 3217, + 'parent_id' => 321, + 'name' => '比如县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 3218, + 'parent_id' => 321, + 'name' => '聂荣县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 3219, + 'parent_id' => 321, + 'name' => '安多县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 3220, + 'parent_id' => 321, + 'name' => '申扎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 3221, + 'parent_id' => 321, + 'name' => '索县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 3222, + 'parent_id' => 321, + 'name' => '班戈县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 3223, + 'parent_id' => 321, + 'name' => '巴青县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 3224, + 'parent_id' => 321, + 'name' => '尼玛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 3225, + 'parent_id' => 321, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 3226, + 'parent_id' => 321, + 'name' => '双湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 3227, + 'parent_id' => 322, + 'name' => '普兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 3228, + 'parent_id' => 322, + 'name' => '札达县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 3229, + 'parent_id' => 322, + 'name' => '噶尔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 3230, + 'parent_id' => 322, + 'name' => '日土县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 3231, + 'parent_id' => 322, + 'name' => '革吉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 3232, + 'parent_id' => 322, + 'name' => '改则县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 3233, + 'parent_id' => 322, + 'name' => '措勤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 3234, + 'parent_id' => 322, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 3235, + 'parent_id' => 323, + 'name' => '巴宜区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 3236, + 'parent_id' => 323, + 'name' => '工布江达县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 3237, + 'parent_id' => 323, + 'name' => '米林县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 3238, + 'parent_id' => 323, + 'name' => '墨脱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 3239, + 'parent_id' => 323, + 'name' => '波密县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 3240, + 'parent_id' => 323, + 'name' => '察隅县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 3241, + 'parent_id' => 323, + 'name' => '朗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 3242, + 'parent_id' => 323, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 3243, + 'parent_id' => 324, + 'name' => '新城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 3244, + 'parent_id' => 324, + 'name' => '碑林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 3245, + 'parent_id' => 324, + 'name' => '莲湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 3246, + 'parent_id' => 324, + 'name' => '灞桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 3247, + 'parent_id' => 324, + 'name' => '未央区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 3248, + 'parent_id' => 324, + 'name' => '雁塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 3249, + 'parent_id' => 324, + 'name' => '阎良区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 3250, + 'parent_id' => 324, + 'name' => '临潼区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 3251, + 'parent_id' => 324, + 'name' => '长安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 3252, + 'parent_id' => 324, + 'name' => '蓝田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 3253, + 'parent_id' => 324, + 'name' => '周至县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 3254, + 'parent_id' => 324, + 'name' => '户县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 3255, + 'parent_id' => 324, + 'name' => '高陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 3256, + 'parent_id' => 324, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 3257, + 'parent_id' => 325, + 'name' => '王益区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 3258, + 'parent_id' => 325, + 'name' => '印台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 3259, + 'parent_id' => 325, + 'name' => '耀州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 3260, + 'parent_id' => 325, + 'name' => '宜君县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 3261, + 'parent_id' => 325, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 3262, + 'parent_id' => 326, + 'name' => '渭滨区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 3263, + 'parent_id' => 326, + 'name' => '金台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 3264, + 'parent_id' => 326, + 'name' => '陈仓区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 3265, + 'parent_id' => 326, + 'name' => '凤翔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 3266, + 'parent_id' => 326, + 'name' => '岐山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 3267, + 'parent_id' => 326, + 'name' => '扶风县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 3268, + 'parent_id' => 326, + 'name' => '眉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 3269, + 'parent_id' => 326, + 'name' => '陇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 3270, + 'parent_id' => 326, + 'name' => '千阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 3271, + 'parent_id' => 326, + 'name' => '麟游县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 3272, + 'parent_id' => 326, + 'name' => '凤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 3273, + 'parent_id' => 326, + 'name' => '太白县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 3274, + 'parent_id' => 326, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 3275, + 'parent_id' => 327, + 'name' => '秦都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 3276, + 'parent_id' => 327, + 'name' => '杨陵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 3277, + 'parent_id' => 327, + 'name' => '渭城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 3278, + 'parent_id' => 327, + 'name' => '三原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 3279, + 'parent_id' => 327, + 'name' => '泾阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 3280, + 'parent_id' => 327, + 'name' => '乾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 3281, + 'parent_id' => 327, + 'name' => '礼泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 3282, + 'parent_id' => 327, + 'name' => '永寿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 3283, + 'parent_id' => 327, + 'name' => '彬县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 3284, + 'parent_id' => 327, + 'name' => '长武县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 3285, + 'parent_id' => 327, + 'name' => '旬邑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 3286, + 'parent_id' => 327, + 'name' => '淳化县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 3287, + 'parent_id' => 327, + 'name' => '武功县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 3288, + 'parent_id' => 327, + 'name' => '兴平市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 3289, + 'parent_id' => 327, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 3290, + 'parent_id' => 328, + 'name' => '临渭区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 3291, + 'parent_id' => 328, + 'name' => '华县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 3292, + 'parent_id' => 328, + 'name' => '潼关县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 3293, + 'parent_id' => 328, + 'name' => '大荔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 3294, + 'parent_id' => 328, + 'name' => '合阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 3295, + 'parent_id' => 328, + 'name' => '澄城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 3296, + 'parent_id' => 328, + 'name' => '蒲城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 3297, + 'parent_id' => 328, + 'name' => '白水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 3298, + 'parent_id' => 328, + 'name' => '富平县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 3299, + 'parent_id' => 328, + 'name' => '韩城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 3300, + 'parent_id' => 328, + 'name' => '华阴市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 3301, + 'parent_id' => 328, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 3302, + 'parent_id' => 329, + 'name' => '宝塔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 3303, + 'parent_id' => 329, + 'name' => '延长县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 3304, + 'parent_id' => 329, + 'name' => '延川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 3305, + 'parent_id' => 329, + 'name' => '子长县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 3306, + 'parent_id' => 329, + 'name' => '安塞县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 3307, + 'parent_id' => 329, + 'name' => '志丹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 3308, + 'parent_id' => 329, + 'name' => '吴起县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 3309, + 'parent_id' => 329, + 'name' => '甘泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 3310, + 'parent_id' => 329, + 'name' => '富县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 3311, + 'parent_id' => 329, + 'name' => '洛川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 3312, + 'parent_id' => 329, + 'name' => '宜川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 3313, + 'parent_id' => 329, + 'name' => '黄龙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 3314, + 'parent_id' => 329, + 'name' => '黄陵县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 3315, + 'parent_id' => 329, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 3316, + 'parent_id' => 330, + 'name' => '汉台区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 3317, + 'parent_id' => 330, + 'name' => '南郑县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 3318, + 'parent_id' => 330, + 'name' => '城固县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 3319, + 'parent_id' => 330, + 'name' => '洋县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 3320, + 'parent_id' => 330, + 'name' => '西乡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 3321, + 'parent_id' => 330, + 'name' => '勉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 3322, + 'parent_id' => 330, + 'name' => '宁强县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 3323, + 'parent_id' => 330, + 'name' => '略阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 3324, + 'parent_id' => 330, + 'name' => '镇巴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 3325, + 'parent_id' => 330, + 'name' => '留坝县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 3326, + 'parent_id' => 330, + 'name' => '佛坪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 3327, + 'parent_id' => 330, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 3328, + 'parent_id' => 331, + 'name' => '榆阳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 3329, + 'parent_id' => 331, + 'name' => '神木县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 3330, + 'parent_id' => 331, + 'name' => '府谷县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 3331, + 'parent_id' => 331, + 'name' => '横山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 3332, + 'parent_id' => 331, + 'name' => '靖边县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 3333, + 'parent_id' => 331, + 'name' => '定边县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 3334, + 'parent_id' => 331, + 'name' => '绥德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 3335, + 'parent_id' => 331, + 'name' => '米脂县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 3336, + 'parent_id' => 331, + 'name' => '佳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 3337, + 'parent_id' => 331, + 'name' => '吴堡县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 3338, + 'parent_id' => 331, + 'name' => '清涧县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 3339, + 'parent_id' => 331, + 'name' => '子洲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 3340, + 'parent_id' => 331, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 3341, + 'parent_id' => 332, + 'name' => '汉滨区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 3342, + 'parent_id' => 332, + 'name' => '汉阴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 3343, + 'parent_id' => 332, + 'name' => '石泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 3344, + 'parent_id' => 332, + 'name' => '宁陕县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 3345, + 'parent_id' => 332, + 'name' => '紫阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 3346, + 'parent_id' => 332, + 'name' => '岚皋县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 3347, + 'parent_id' => 332, + 'name' => '平利县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 3348, + 'parent_id' => 332, + 'name' => '镇坪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 3349, + 'parent_id' => 332, + 'name' => '旬阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 3350, + 'parent_id' => 332, + 'name' => '白河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 3351, + 'parent_id' => 332, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 3352, + 'parent_id' => 333, + 'name' => '商州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 3353, + 'parent_id' => 333, + 'name' => '洛南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 3354, + 'parent_id' => 333, + 'name' => '丹凤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 3355, + 'parent_id' => 333, + 'name' => '商南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 3356, + 'parent_id' => 333, + 'name' => '山阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 3357, + 'parent_id' => 333, + 'name' => '镇安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 3358, + 'parent_id' => 333, + 'name' => '柞水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 3359, + 'parent_id' => 333, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 3360, + 'parent_id' => 334, + 'name' => '城关区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 3361, + 'parent_id' => 334, + 'name' => '七里河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 3362, + 'parent_id' => 334, + 'name' => '西固区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 3363, + 'parent_id' => 334, + 'name' => '安宁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 3364, + 'parent_id' => 334, + 'name' => '红古区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 3365, + 'parent_id' => 334, + 'name' => '永登县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 3366, + 'parent_id' => 334, + 'name' => '皋兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 3367, + 'parent_id' => 334, + 'name' => '榆中县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 3368, + 'parent_id' => 334, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 3369, + 'parent_id' => 336, + 'name' => '金川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 3370, + 'parent_id' => 336, + 'name' => '永昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 3371, + 'parent_id' => 336, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 3372, + 'parent_id' => 337, + 'name' => '白银区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 3373, + 'parent_id' => 337, + 'name' => '平川区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 3374, + 'parent_id' => 337, + 'name' => '靖远县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 3375, + 'parent_id' => 337, + 'name' => '会宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 3376, + 'parent_id' => 337, + 'name' => '景泰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 3377, + 'parent_id' => 337, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 3378, + 'parent_id' => 338, + 'name' => '秦州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 3379, + 'parent_id' => 338, + 'name' => '麦积区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 3380, + 'parent_id' => 338, + 'name' => '清水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 3381, + 'parent_id' => 338, + 'name' => '秦安县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 3382, + 'parent_id' => 338, + 'name' => '甘谷县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 3383, + 'parent_id' => 338, + 'name' => '武山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 3384, + 'parent_id' => 338, + 'name' => '张家川回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 3385, + 'parent_id' => 338, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 3386, + 'parent_id' => 339, + 'name' => '凉州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 3387, + 'parent_id' => 339, + 'name' => '民勤县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 3388, + 'parent_id' => 339, + 'name' => '古浪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 3389, + 'parent_id' => 339, + 'name' => '天祝藏族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 3390, + 'parent_id' => 339, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 3391, + 'parent_id' => 340, + 'name' => '甘州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 3392, + 'parent_id' => 340, + 'name' => '肃南裕固族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 3393, + 'parent_id' => 340, + 'name' => '民乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 3394, + 'parent_id' => 340, + 'name' => '临泽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 3395, + 'parent_id' => 340, + 'name' => '高台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 3396, + 'parent_id' => 340, + 'name' => '山丹县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 3397, + 'parent_id' => 340, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 3398, + 'parent_id' => 341, + 'name' => '崆峒区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 3399, + 'parent_id' => 341, + 'name' => '泾川县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 3400, + 'parent_id' => 341, + 'name' => '灵台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 3401, + 'parent_id' => 341, + 'name' => '崇信县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 3402, + 'parent_id' => 341, + 'name' => '华亭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 3403, + 'parent_id' => 341, + 'name' => '庄浪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 3404, + 'parent_id' => 341, + 'name' => '静宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 3405, + 'parent_id' => 341, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 3406, + 'parent_id' => 342, + 'name' => '肃州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 3407, + 'parent_id' => 342, + 'name' => '金塔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 3408, + 'parent_id' => 342, + 'name' => '瓜州县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 3409, + 'parent_id' => 342, + 'name' => '肃北蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 3410, + 'parent_id' => 342, + 'name' => '阿克塞哈萨克族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 3411, + 'parent_id' => 342, + 'name' => '玉门市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 3412, + 'parent_id' => 342, + 'name' => '敦煌市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 3413, + 'parent_id' => 342, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 3414, + 'parent_id' => 343, + 'name' => '西峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 3415, + 'parent_id' => 343, + 'name' => '庆城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 3416, + 'parent_id' => 343, + 'name' => '环县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 3417, + 'parent_id' => 343, + 'name' => '华池县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 3418, + 'parent_id' => 343, + 'name' => '合水县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 3419, + 'parent_id' => 343, + 'name' => '正宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 3420, + 'parent_id' => 343, + 'name' => '宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 3421, + 'parent_id' => 343, + 'name' => '镇原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 3422, + 'parent_id' => 343, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 3423, + 'parent_id' => 344, + 'name' => '安定区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 3424, + 'parent_id' => 344, + 'name' => '通渭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 3425, + 'parent_id' => 344, + 'name' => '陇西县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 3426, + 'parent_id' => 344, + 'name' => '渭源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 3427, + 'parent_id' => 344, + 'name' => '临洮县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 3428, + 'parent_id' => 344, + 'name' => '漳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 3429, + 'parent_id' => 344, + 'name' => '岷县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 3430, + 'parent_id' => 344, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 3431, + 'parent_id' => 345, + 'name' => '武都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 3432, + 'parent_id' => 345, + 'name' => '成县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 3433, + 'parent_id' => 345, + 'name' => '文县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 3434, + 'parent_id' => 345, + 'name' => '宕昌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 3435, + 'parent_id' => 345, + 'name' => '康县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 3436, + 'parent_id' => 345, + 'name' => '西和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 3437, + 'parent_id' => 345, + 'name' => '礼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 3438, + 'parent_id' => 345, + 'name' => '徽县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 3439, + 'parent_id' => 345, + 'name' => '两当县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 3440, + 'parent_id' => 345, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 3441, + 'parent_id' => 346, + 'name' => '临夏市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 3442, + 'parent_id' => 346, + 'name' => '临夏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 3443, + 'parent_id' => 346, + 'name' => '康乐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 3444, + 'parent_id' => 346, + 'name' => '永靖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 3445, + 'parent_id' => 346, + 'name' => '广河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 3446, + 'parent_id' => 346, + 'name' => '和政县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 3447, + 'parent_id' => 346, + 'name' => '东乡族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 3448, + 'parent_id' => 346, + 'name' => '积石山保安族东乡族撒拉族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 3449, + 'parent_id' => 346, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 3450, + 'parent_id' => 347, + 'name' => '合作市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 3451, + 'parent_id' => 347, + 'name' => '临潭县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 3452, + 'parent_id' => 347, + 'name' => '卓尼县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 3453, + 'parent_id' => 347, + 'name' => '舟曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 3454, + 'parent_id' => 347, + 'name' => '迭部县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 3455, + 'parent_id' => 347, + 'name' => '玛曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 3456, + 'parent_id' => 347, + 'name' => '碌曲县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 3457, + 'parent_id' => 347, + 'name' => '夏河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 3458, + 'parent_id' => 347, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 3459, + 'parent_id' => 348, + 'name' => '城东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 3460, + 'parent_id' => 348, + 'name' => '城中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 3461, + 'parent_id' => 348, + 'name' => '城西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 3462, + 'parent_id' => 348, + 'name' => '城北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 3463, + 'parent_id' => 348, + 'name' => '大通回族土族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 3464, + 'parent_id' => 348, + 'name' => '湟中县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 3465, + 'parent_id' => 348, + 'name' => '湟源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 3466, + 'parent_id' => 348, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 3467, + 'parent_id' => 349, + 'name' => '平安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 3468, + 'parent_id' => 349, + 'name' => '民和回族土族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 3469, + 'parent_id' => 349, + 'name' => '乐都区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 3470, + 'parent_id' => 349, + 'name' => '互助土族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 3471, + 'parent_id' => 349, + 'name' => '化隆回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 3472, + 'parent_id' => 349, + 'name' => '循化撒拉族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 3473, + 'parent_id' => 349, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 3474, + 'parent_id' => 350, + 'name' => '门源回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 3475, + 'parent_id' => 350, + 'name' => '祁连县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 3476, + 'parent_id' => 350, + 'name' => '海晏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 3477, + 'parent_id' => 350, + 'name' => '刚察县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 3478, + 'parent_id' => 350, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 3479, + 'parent_id' => 351, + 'name' => '同仁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 3480, + 'parent_id' => 351, + 'name' => '尖扎县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 3481, + 'parent_id' => 351, + 'name' => '泽库县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 3482, + 'parent_id' => 351, + 'name' => '河南蒙古族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 3483, + 'parent_id' => 351, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 3484, + 'parent_id' => 352, + 'name' => '共和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 3485, + 'parent_id' => 352, + 'name' => '同德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 3486, + 'parent_id' => 352, + 'name' => '贵德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 3487, + 'parent_id' => 352, + 'name' => '兴海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 3488, + 'parent_id' => 352, + 'name' => '贵南县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 3489, + 'parent_id' => 352, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 3490, + 'parent_id' => 353, + 'name' => '玛沁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 3491, + 'parent_id' => 353, + 'name' => '班玛县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 3492, + 'parent_id' => 353, + 'name' => '甘德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 3493, + 'parent_id' => 353, + 'name' => '达日县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 3494, + 'parent_id' => 353, + 'name' => '久治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 3495, + 'parent_id' => 353, + 'name' => '玛多县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 3496, + 'parent_id' => 353, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 3497, + 'parent_id' => 354, + 'name' => '玉树市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 3498, + 'parent_id' => 354, + 'name' => '杂多县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 3499, + 'parent_id' => 354, + 'name' => '称多县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 3500, + 'parent_id' => 354, + 'name' => '治多县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 3501, + 'parent_id' => 354, + 'name' => '囊谦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 3502, + 'parent_id' => 354, + 'name' => '曲麻莱县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 3503, + 'parent_id' => 354, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 3504, + 'parent_id' => 355, + 'name' => '格尔木市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 3505, + 'parent_id' => 355, + 'name' => '德令哈市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 3506, + 'parent_id' => 355, + 'name' => '乌兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 3507, + 'parent_id' => 355, + 'name' => '都兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 3508, + 'parent_id' => 355, + 'name' => '天峻县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 3509, + 'parent_id' => 355, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 3510, + 'parent_id' => 356, + 'name' => '兴庆区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 3511, + 'parent_id' => 356, + 'name' => '西夏区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 3512, + 'parent_id' => 356, + 'name' => '金凤区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 3513, + 'parent_id' => 356, + 'name' => '永宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 3514, + 'parent_id' => 356, + 'name' => '贺兰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 3515, + 'parent_id' => 356, + 'name' => '灵武市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 3516, + 'parent_id' => 356, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 3517, + 'parent_id' => 357, + 'name' => '大武口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 3518, + 'parent_id' => 357, + 'name' => '惠农区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 3519, + 'parent_id' => 357, + 'name' => '平罗县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 3520, + 'parent_id' => 357, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 3521, + 'parent_id' => 358, + 'name' => '利通区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 3522, + 'parent_id' => 358, + 'name' => '红寺堡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 3523, + 'parent_id' => 358, + 'name' => '盐池县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 3524, + 'parent_id' => 358, + 'name' => '同心县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 3525, + 'parent_id' => 358, + 'name' => '青铜峡市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 3526, + 'parent_id' => 358, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 3527, + 'parent_id' => 359, + 'name' => '原州区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 3528, + 'parent_id' => 359, + 'name' => '西吉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 3529, + 'parent_id' => 359, + 'name' => '隆德县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 3530, + 'parent_id' => 359, + 'name' => '泾源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 3531, + 'parent_id' => 359, + 'name' => '彭阳县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 3532, + 'parent_id' => 359, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 3533, + 'parent_id' => 360, + 'name' => '沙坡头区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 3534, + 'parent_id' => 360, + 'name' => '中宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 3535, + 'parent_id' => 360, + 'name' => '海原县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 3536, + 'parent_id' => 360, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 3537, + 'parent_id' => 361, + 'name' => '天山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 3538, + 'parent_id' => 361, + 'name' => '沙依巴克区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 3539, + 'parent_id' => 361, + 'name' => '新市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 3540, + 'parent_id' => 361, + 'name' => '水磨沟区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 3541, + 'parent_id' => 361, + 'name' => '头屯河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 3542, + 'parent_id' => 361, + 'name' => '达坂城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 3543, + 'parent_id' => 361, + 'name' => '东山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 43 => + array ( + 'id' => 3544, + 'parent_id' => 361, + 'name' => '米东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 44 => + array ( + 'id' => 3545, + 'parent_id' => 361, + 'name' => '乌鲁木齐县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 45 => + array ( + 'id' => 3546, + 'parent_id' => 361, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 46 => + array ( + 'id' => 3547, + 'parent_id' => 362, + 'name' => '独山子区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 47 => + array ( + 'id' => 3548, + 'parent_id' => 362, + 'name' => '克拉玛依区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 48 => + array ( + 'id' => 3549, + 'parent_id' => 362, + 'name' => '白碱滩区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 49 => + array ( + 'id' => 3550, + 'parent_id' => 362, + 'name' => '乌尔禾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 50 => + array ( + 'id' => 3551, + 'parent_id' => 362, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 51 => + array ( + 'id' => 3552, + 'parent_id' => 363, + 'name' => '高昌区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 52 => + array ( + 'id' => 3553, + 'parent_id' => 363, + 'name' => '鄯善县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 53 => + array ( + 'id' => 3554, + 'parent_id' => 363, + 'name' => '托克逊县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 54 => + array ( + 'id' => 3555, + 'parent_id' => 363, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 55 => + array ( + 'id' => 3556, + 'parent_id' => 364, + 'name' => '哈密市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 56 => + array ( + 'id' => 3557, + 'parent_id' => 364, + 'name' => '巴里坤哈萨克自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 57 => + array ( + 'id' => 3558, + 'parent_id' => 364, + 'name' => '伊吾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 58 => + array ( + 'id' => 3559, + 'parent_id' => 364, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 59 => + array ( + 'id' => 3560, + 'parent_id' => 365, + 'name' => '昌吉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 60 => + array ( + 'id' => 3561, + 'parent_id' => 365, + 'name' => '阜康市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 61 => + array ( + 'id' => 3562, + 'parent_id' => 365, + 'name' => '米泉市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 62 => + array ( + 'id' => 3563, + 'parent_id' => 365, + 'name' => '呼图壁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 63 => + array ( + 'id' => 3564, + 'parent_id' => 365, + 'name' => '玛纳斯县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 64 => + array ( + 'id' => 3565, + 'parent_id' => 365, + 'name' => '奇台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 65 => + array ( + 'id' => 3566, + 'parent_id' => 365, + 'name' => '吉木萨尔县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 66 => + array ( + 'id' => 3567, + 'parent_id' => 365, + 'name' => '木垒哈萨克自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 67 => + array ( + 'id' => 3568, + 'parent_id' => 365, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 68 => + array ( + 'id' => 3569, + 'parent_id' => 366, + 'name' => '博乐市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 69 => + array ( + 'id' => 3570, + 'parent_id' => 366, + 'name' => '阿拉山口市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 70 => + array ( + 'id' => 3571, + 'parent_id' => 366, + 'name' => '精河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 71 => + array ( + 'id' => 3572, + 'parent_id' => 366, + 'name' => '温泉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 72 => + array ( + 'id' => 3573, + 'parent_id' => 366, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 73 => + array ( + 'id' => 3574, + 'parent_id' => 367, + 'name' => '库尔勒市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 74 => + array ( + 'id' => 3575, + 'parent_id' => 367, + 'name' => '轮台县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 75 => + array ( + 'id' => 3576, + 'parent_id' => 367, + 'name' => '尉犁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 76 => + array ( + 'id' => 3577, + 'parent_id' => 367, + 'name' => '若羌县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 77 => + array ( + 'id' => 3578, + 'parent_id' => 367, + 'name' => '且末县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 78 => + array ( + 'id' => 3579, + 'parent_id' => 367, + 'name' => '焉耆回族自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 79 => + array ( + 'id' => 3580, + 'parent_id' => 367, + 'name' => '和静县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 80 => + array ( + 'id' => 3581, + 'parent_id' => 367, + 'name' => '和硕县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 81 => + array ( + 'id' => 3582, + 'parent_id' => 367, + 'name' => '博湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 82 => + array ( + 'id' => 3583, + 'parent_id' => 367, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 83 => + array ( + 'id' => 3584, + 'parent_id' => 368, + 'name' => '阿克苏市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 84 => + array ( + 'id' => 3585, + 'parent_id' => 368, + 'name' => '温宿县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 85 => + array ( + 'id' => 3586, + 'parent_id' => 368, + 'name' => '库车县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 86 => + array ( + 'id' => 3587, + 'parent_id' => 368, + 'name' => '沙雅县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 87 => + array ( + 'id' => 3588, + 'parent_id' => 368, + 'name' => '新和县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 88 => + array ( + 'id' => 3589, + 'parent_id' => 368, + 'name' => '拜城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 89 => + array ( + 'id' => 3590, + 'parent_id' => 368, + 'name' => '乌什县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 90 => + array ( + 'id' => 3591, + 'parent_id' => 368, + 'name' => '阿瓦提县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 91 => + array ( + 'id' => 3592, + 'parent_id' => 368, + 'name' => '柯坪县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 92 => + array ( + 'id' => 3593, + 'parent_id' => 368, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 93 => + array ( + 'id' => 3594, + 'parent_id' => 369, + 'name' => '阿图什市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 94 => + array ( + 'id' => 3595, + 'parent_id' => 369, + 'name' => '阿克陶县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 95 => + array ( + 'id' => 3596, + 'parent_id' => 369, + 'name' => '阿合奇县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 96 => + array ( + 'id' => 3597, + 'parent_id' => 369, + 'name' => '乌恰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 97 => + array ( + 'id' => 3598, + 'parent_id' => 369, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 98 => + array ( + 'id' => 3599, + 'parent_id' => 370, + 'name' => '喀什市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 99 => + array ( + 'id' => 3600, + 'parent_id' => 370, + 'name' => '疏附县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 100 => + array ( + 'id' => 3601, + 'parent_id' => 370, + 'name' => '疏勒县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 101 => + array ( + 'id' => 3602, + 'parent_id' => 370, + 'name' => '英吉沙县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 102 => + array ( + 'id' => 3603, + 'parent_id' => 370, + 'name' => '泽普县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 103 => + array ( + 'id' => 3604, + 'parent_id' => 370, + 'name' => '莎车县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 104 => + array ( + 'id' => 3605, + 'parent_id' => 370, + 'name' => '叶城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 105 => + array ( + 'id' => 3606, + 'parent_id' => 370, + 'name' => '麦盖提县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 106 => + array ( + 'id' => 3607, + 'parent_id' => 370, + 'name' => '岳普湖县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 107 => + array ( + 'id' => 3608, + 'parent_id' => 370, + 'name' => '伽师县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 108 => + array ( + 'id' => 3609, + 'parent_id' => 370, + 'name' => '巴楚县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 109 => + array ( + 'id' => 3610, + 'parent_id' => 370, + 'name' => '塔什库尔干塔吉克自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 110 => + array ( + 'id' => 3611, + 'parent_id' => 370, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 111 => + array ( + 'id' => 3612, + 'parent_id' => 371, + 'name' => '和田市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 112 => + array ( + 'id' => 3613, + 'parent_id' => 371, + 'name' => '和田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 113 => + array ( + 'id' => 3614, + 'parent_id' => 371, + 'name' => '墨玉县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 114 => + array ( + 'id' => 3615, + 'parent_id' => 371, + 'name' => '皮山县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 115 => + array ( + 'id' => 3616, + 'parent_id' => 371, + 'name' => '洛浦县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 116 => + array ( + 'id' => 3617, + 'parent_id' => 371, + 'name' => '策勒县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 117 => + array ( + 'id' => 3618, + 'parent_id' => 371, + 'name' => '于田县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 118 => + array ( + 'id' => 3619, + 'parent_id' => 371, + 'name' => '民丰县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 119 => + array ( + 'id' => 3620, + 'parent_id' => 371, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 120 => + array ( + 'id' => 3621, + 'parent_id' => 372, + 'name' => '伊宁市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 121 => + array ( + 'id' => 3622, + 'parent_id' => 372, + 'name' => '奎屯市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 122 => + array ( + 'id' => 3623, + 'parent_id' => 372, + 'name' => '伊宁县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 123 => + array ( + 'id' => 3624, + 'parent_id' => 372, + 'name' => '察布查尔锡伯自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 124 => + array ( + 'id' => 3625, + 'parent_id' => 372, + 'name' => '霍城县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 125 => + array ( + 'id' => 3626, + 'parent_id' => 372, + 'name' => '巩留县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 126 => + array ( + 'id' => 3627, + 'parent_id' => 372, + 'name' => '新源县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 127 => + array ( + 'id' => 3628, + 'parent_id' => 372, + 'name' => '昭苏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 128 => + array ( + 'id' => 3629, + 'parent_id' => 372, + 'name' => '特克斯县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 129 => + array ( + 'id' => 3630, + 'parent_id' => 372, + 'name' => '尼勒克县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 130 => + array ( + 'id' => 3631, + 'parent_id' => 372, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 131 => + array ( + 'id' => 3632, + 'parent_id' => 373, + 'name' => '塔城市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 132 => + array ( + 'id' => 3633, + 'parent_id' => 373, + 'name' => '乌苏市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 133 => + array ( + 'id' => 3634, + 'parent_id' => 373, + 'name' => '额敏县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 134 => + array ( + 'id' => 3635, + 'parent_id' => 373, + 'name' => '沙湾县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 135 => + array ( + 'id' => 3636, + 'parent_id' => 373, + 'name' => '托里县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 136 => + array ( + 'id' => 3637, + 'parent_id' => 373, + 'name' => '裕民县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 137 => + array ( + 'id' => 3638, + 'parent_id' => 373, + 'name' => '和布克赛尔蒙古自治县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 138 => + array ( + 'id' => 3639, + 'parent_id' => 373, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 139 => + array ( + 'id' => 3640, + 'parent_id' => 374, + 'name' => '阿勒泰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 140 => + array ( + 'id' => 3641, + 'parent_id' => 374, + 'name' => '布尔津县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 141 => + array ( + 'id' => 3642, + 'parent_id' => 374, + 'name' => '富蕴县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 142 => + array ( + 'id' => 3643, + 'parent_id' => 374, + 'name' => '福海县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 143 => + array ( + 'id' => 3644, + 'parent_id' => 374, + 'name' => '哈巴河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 144 => + array ( + 'id' => 3645, + 'parent_id' => 374, + 'name' => '青河县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 145 => + array ( + 'id' => 3646, + 'parent_id' => 374, + 'name' => '吉木乃县', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 146 => + array ( + 'id' => 3647, + 'parent_id' => 374, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 147 => + array ( + 'id' => 3648, + 'parent_id' => 375, + 'name' => '中正区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 148 => + array ( + 'id' => 3649, + 'parent_id' => 375, + 'name' => '大同区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 149 => + array ( + 'id' => 3650, + 'parent_id' => 375, + 'name' => '中山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 150 => + array ( + 'id' => 3651, + 'parent_id' => 375, + 'name' => '松山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 151 => + array ( + 'id' => 3652, + 'parent_id' => 375, + 'name' => '大安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 152 => + array ( + 'id' => 3653, + 'parent_id' => 375, + 'name' => '万华区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 153 => + array ( + 'id' => 3654, + 'parent_id' => 375, + 'name' => '信义区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 154 => + array ( + 'id' => 3655, + 'parent_id' => 375, + 'name' => '士林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 155 => + array ( + 'id' => 3656, + 'parent_id' => 375, + 'name' => '北投区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 156 => + array ( + 'id' => 3657, + 'parent_id' => 375, + 'name' => '内湖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 157 => + array ( + 'id' => 3658, + 'parent_id' => 375, + 'name' => '南港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 158 => + array ( + 'id' => 3659, + 'parent_id' => 375, + 'name' => '文山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 159 => + array ( + 'id' => 3660, + 'parent_id' => 375, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 160 => + array ( + 'id' => 3661, + 'parent_id' => 376, + 'name' => '新兴区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 161 => + array ( + 'id' => 3662, + 'parent_id' => 376, + 'name' => '前金区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 162 => + array ( + 'id' => 3663, + 'parent_id' => 376, + 'name' => '芩雅区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 163 => + array ( + 'id' => 3664, + 'parent_id' => 376, + 'name' => '盐埕区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 164 => + array ( + 'id' => 3665, + 'parent_id' => 376, + 'name' => '鼓山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 165 => + array ( + 'id' => 3666, + 'parent_id' => 376, + 'name' => '旗津区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 166 => + array ( + 'id' => 3667, + 'parent_id' => 376, + 'name' => '前镇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 167 => + array ( + 'id' => 3668, + 'parent_id' => 376, + 'name' => '三民区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 168 => + array ( + 'id' => 3669, + 'parent_id' => 376, + 'name' => '左营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 169 => + array ( + 'id' => 3670, + 'parent_id' => 376, + 'name' => '楠梓区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 170 => + array ( + 'id' => 3671, + 'parent_id' => 376, + 'name' => '小港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 171 => + array ( + 'id' => 3672, + 'parent_id' => 376, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 172 => + array ( + 'id' => 3673, + 'parent_id' => 376, + 'name' => '苓雅区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 173 => + array ( + 'id' => 3674, + 'parent_id' => 376, + 'name' => '仁武区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 174 => + array ( + 'id' => 3675, + 'parent_id' => 376, + 'name' => '大社区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 175 => + array ( + 'id' => 3676, + 'parent_id' => 376, + 'name' => '冈山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 176 => + array ( + 'id' => 3677, + 'parent_id' => 376, + 'name' => '路竹区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 177 => + array ( + 'id' => 3678, + 'parent_id' => 376, + 'name' => '阿莲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 178 => + array ( + 'id' => 3679, + 'parent_id' => 376, + 'name' => '田寮区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 179 => + array ( + 'id' => 3680, + 'parent_id' => 376, + 'name' => '燕巢区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 180 => + array ( + 'id' => 3681, + 'parent_id' => 376, + 'name' => '桥头区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 181 => + array ( + 'id' => 3682, + 'parent_id' => 376, + 'name' => '梓官区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 182 => + array ( + 'id' => 3683, + 'parent_id' => 376, + 'name' => '弥陀区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 183 => + array ( + 'id' => 3684, + 'parent_id' => 376, + 'name' => '永安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 184 => + array ( + 'id' => 3685, + 'parent_id' => 376, + 'name' => '湖内区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 185 => + array ( + 'id' => 3686, + 'parent_id' => 376, + 'name' => '凤山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 186 => + array ( + 'id' => 3687, + 'parent_id' => 376, + 'name' => '大寮区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 187 => + array ( + 'id' => 3688, + 'parent_id' => 376, + 'name' => '林园区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 188 => + array ( + 'id' => 3689, + 'parent_id' => 376, + 'name' => '鸟松区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 189 => + array ( + 'id' => 3690, + 'parent_id' => 376, + 'name' => '大树区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 190 => + array ( + 'id' => 3691, + 'parent_id' => 376, + 'name' => '旗山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 191 => + array ( + 'id' => 3692, + 'parent_id' => 376, + 'name' => '美浓区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 192 => + array ( + 'id' => 3693, + 'parent_id' => 376, + 'name' => '六龟区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 193 => + array ( + 'id' => 3694, + 'parent_id' => 376, + 'name' => '内门区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 194 => + array ( + 'id' => 3695, + 'parent_id' => 376, + 'name' => '杉林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 195 => + array ( + 'id' => 3696, + 'parent_id' => 376, + 'name' => '甲仙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 196 => + array ( + 'id' => 3697, + 'parent_id' => 376, + 'name' => '桃源区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 197 => + array ( + 'id' => 3698, + 'parent_id' => 376, + 'name' => '那玛夏区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 198 => + array ( + 'id' => 3699, + 'parent_id' => 376, + 'name' => '茂林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 199 => + array ( + 'id' => 3700, + 'parent_id' => 376, + 'name' => '茄萣区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 200 => + array ( + 'id' => 3701, + 'parent_id' => 377, + 'name' => '中西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 201 => + array ( + 'id' => 3702, + 'parent_id' => 377, + 'name' => '东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 202 => + array ( + 'id' => 3703, + 'parent_id' => 377, + 'name' => '南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 203 => + array ( + 'id' => 3704, + 'parent_id' => 377, + 'name' => '北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 204 => + array ( + 'id' => 3705, + 'parent_id' => 377, + 'name' => '安平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 205 => + array ( + 'id' => 3706, + 'parent_id' => 377, + 'name' => '安南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 206 => + array ( + 'id' => 3707, + 'parent_id' => 377, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 207 => + array ( + 'id' => 3708, + 'parent_id' => 377, + 'name' => '永康区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 208 => + array ( + 'id' => 3709, + 'parent_id' => 377, + 'name' => '归仁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 209 => + array ( + 'id' => 3710, + 'parent_id' => 377, + 'name' => '新化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 210 => + array ( + 'id' => 3711, + 'parent_id' => 377, + 'name' => '左镇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 211 => + array ( + 'id' => 3712, + 'parent_id' => 377, + 'name' => '玉井区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 212 => + array ( + 'id' => 3713, + 'parent_id' => 377, + 'name' => '楠西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 213 => + array ( + 'id' => 3714, + 'parent_id' => 377, + 'name' => '南化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 214 => + array ( + 'id' => 3715, + 'parent_id' => 377, + 'name' => '仁德区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 215 => + array ( + 'id' => 3716, + 'parent_id' => 377, + 'name' => '关庙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 216 => + array ( + 'id' => 3717, + 'parent_id' => 377, + 'name' => '龙崎区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 217 => + array ( + 'id' => 3718, + 'parent_id' => 377, + 'name' => '官田区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 218 => + array ( + 'id' => 3719, + 'parent_id' => 377, + 'name' => '麻豆区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 219 => + array ( + 'id' => 3720, + 'parent_id' => 377, + 'name' => '佳里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 220 => + array ( + 'id' => 3721, + 'parent_id' => 377, + 'name' => '西港区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 221 => + array ( + 'id' => 3722, + 'parent_id' => 377, + 'name' => '七股区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 222 => + array ( + 'id' => 3723, + 'parent_id' => 377, + 'name' => '将军区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 223 => + array ( + 'id' => 3724, + 'parent_id' => 377, + 'name' => '学甲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 224 => + array ( + 'id' => 3725, + 'parent_id' => 377, + 'name' => '北门区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 225 => + array ( + 'id' => 3726, + 'parent_id' => 377, + 'name' => '新营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 226 => + array ( + 'id' => 3727, + 'parent_id' => 377, + 'name' => '后壁区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 227 => + array ( + 'id' => 3728, + 'parent_id' => 377, + 'name' => '白河区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 228 => + array ( + 'id' => 3729, + 'parent_id' => 377, + 'name' => '东山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 229 => + array ( + 'id' => 3730, + 'parent_id' => 377, + 'name' => '六甲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 230 => + array ( + 'id' => 3731, + 'parent_id' => 377, + 'name' => '下营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 231 => + array ( + 'id' => 3732, + 'parent_id' => 377, + 'name' => '柳营区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 232 => + array ( + 'id' => 3733, + 'parent_id' => 377, + 'name' => '盐水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 233 => + array ( + 'id' => 3734, + 'parent_id' => 377, + 'name' => '善化区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 234 => + array ( + 'id' => 3735, + 'parent_id' => 377, + 'name' => '大内区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 235 => + array ( + 'id' => 3736, + 'parent_id' => 377, + 'name' => '山上区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 236 => + array ( + 'id' => 3737, + 'parent_id' => 377, + 'name' => '新市区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 237 => + array ( + 'id' => 3738, + 'parent_id' => 377, + 'name' => '安定区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 238 => + array ( + 'id' => 3739, + 'parent_id' => 378, + 'name' => '中区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 239 => + array ( + 'id' => 3740, + 'parent_id' => 378, + 'name' => '东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 240 => + array ( + 'id' => 3741, + 'parent_id' => 378, + 'name' => '南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 241 => + array ( + 'id' => 3742, + 'parent_id' => 378, + 'name' => '西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 242 => + array ( + 'id' => 3743, + 'parent_id' => 378, + 'name' => '北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 243 => + array ( + 'id' => 3744, + 'parent_id' => 378, + 'name' => '北屯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 244 => + array ( + 'id' => 3745, + 'parent_id' => 378, + 'name' => '西屯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 245 => + array ( + 'id' => 3746, + 'parent_id' => 378, + 'name' => '南屯区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 246 => + array ( + 'id' => 3747, + 'parent_id' => 378, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 247 => + array ( + 'id' => 3748, + 'parent_id' => 378, + 'name' => '太平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 248 => + array ( + 'id' => 3749, + 'parent_id' => 378, + 'name' => '大里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 249 => + array ( + 'id' => 3750, + 'parent_id' => 378, + 'name' => '雾峰区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 250 => + array ( + 'id' => 3751, + 'parent_id' => 378, + 'name' => '乌日区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 251 => + array ( + 'id' => 3752, + 'parent_id' => 378, + 'name' => '丰原区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 252 => + array ( + 'id' => 3753, + 'parent_id' => 378, + 'name' => '后里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 253 => + array ( + 'id' => 3754, + 'parent_id' => 378, + 'name' => '石冈区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 254 => + array ( + 'id' => 3755, + 'parent_id' => 378, + 'name' => '东势区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 255 => + array ( + 'id' => 3756, + 'parent_id' => 378, + 'name' => '和平区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 256 => + array ( + 'id' => 3757, + 'parent_id' => 378, + 'name' => '新社区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 257 => + array ( + 'id' => 3758, + 'parent_id' => 378, + 'name' => '潭子区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 258 => + array ( + 'id' => 3759, + 'parent_id' => 378, + 'name' => '大雅区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 259 => + array ( + 'id' => 3760, + 'parent_id' => 378, + 'name' => '神冈区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 260 => + array ( + 'id' => 3761, + 'parent_id' => 378, + 'name' => '大肚区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 261 => + array ( + 'id' => 3762, + 'parent_id' => 378, + 'name' => '沙鹿区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 262 => + array ( + 'id' => 3763, + 'parent_id' => 378, + 'name' => '龙井区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 263 => + array ( + 'id' => 3764, + 'parent_id' => 378, + 'name' => '梧栖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 264 => + array ( + 'id' => 3765, + 'parent_id' => 378, + 'name' => '清水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 265 => + array ( + 'id' => 3766, + 'parent_id' => 378, + 'name' => '大甲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 266 => + array ( + 'id' => 3767, + 'parent_id' => 378, + 'name' => '外埔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 267 => + array ( + 'id' => 3768, + 'parent_id' => 378, + 'name' => '大安区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 268 => + array ( + 'id' => 3769, + 'parent_id' => 379, + 'name' => '金沙镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 269 => + array ( + 'id' => 3770, + 'parent_id' => 379, + 'name' => '金湖镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 270 => + array ( + 'id' => 3771, + 'parent_id' => 379, + 'name' => '金宁乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 271 => + array ( + 'id' => 3772, + 'parent_id' => 379, + 'name' => '金城镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 272 => + array ( + 'id' => 3773, + 'parent_id' => 379, + 'name' => '烈屿乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 273 => + array ( + 'id' => 3774, + 'parent_id' => 379, + 'name' => '乌坵乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 274 => + array ( + 'id' => 3775, + 'parent_id' => 380, + 'name' => '南投市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 275 => + array ( + 'id' => 3776, + 'parent_id' => 380, + 'name' => '中寮乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 276 => + array ( + 'id' => 3777, + 'parent_id' => 380, + 'name' => '草屯镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 277 => + array ( + 'id' => 3778, + 'parent_id' => 380, + 'name' => '国姓乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 278 => + array ( + 'id' => 3779, + 'parent_id' => 380, + 'name' => '埔里镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 279 => + array ( + 'id' => 3780, + 'parent_id' => 380, + 'name' => '仁爱乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 280 => + array ( + 'id' => 3781, + 'parent_id' => 380, + 'name' => '名间乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 281 => + array ( + 'id' => 3782, + 'parent_id' => 380, + 'name' => '集集镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 282 => + array ( + 'id' => 3783, + 'parent_id' => 380, + 'name' => '水里乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 283 => + array ( + 'id' => 3784, + 'parent_id' => 380, + 'name' => '鱼池乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 284 => + array ( + 'id' => 3785, + 'parent_id' => 380, + 'name' => '信义乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 285 => + array ( + 'id' => 3786, + 'parent_id' => 380, + 'name' => '竹山镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 286 => + array ( + 'id' => 3787, + 'parent_id' => 380, + 'name' => '鹿谷乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 287 => + array ( + 'id' => 3788, + 'parent_id' => 381, + 'name' => '仁爱区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 288 => + array ( + 'id' => 3789, + 'parent_id' => 381, + 'name' => '信义区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 289 => + array ( + 'id' => 3790, + 'parent_id' => 381, + 'name' => '中正区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 290 => + array ( + 'id' => 3791, + 'parent_id' => 381, + 'name' => '中山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 291 => + array ( + 'id' => 3792, + 'parent_id' => 381, + 'name' => '安乐区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 292 => + array ( + 'id' => 3793, + 'parent_id' => 381, + 'name' => '暖暖区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 293 => + array ( + 'id' => 3794, + 'parent_id' => 381, + 'name' => '七堵区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 294 => + array ( + 'id' => 3795, + 'parent_id' => 381, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 295 => + array ( + 'id' => 3796, + 'parent_id' => 382, + 'name' => '东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 296 => + array ( + 'id' => 3797, + 'parent_id' => 382, + 'name' => '北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 297 => + array ( + 'id' => 3798, + 'parent_id' => 382, + 'name' => '香山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 298 => + array ( + 'id' => 3799, + 'parent_id' => 382, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 299 => + array ( + 'id' => 3800, + 'parent_id' => 383, + 'name' => '东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 300 => + array ( + 'id' => 3801, + 'parent_id' => 383, + 'name' => '西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 301 => + array ( + 'id' => 3802, + 'parent_id' => 383, + 'name' => '其它区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 302 => + array ( + 'id' => 3803, + 'parent_id' => 384, + 'name' => '万里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 303 => + array ( + 'id' => 3804, + 'parent_id' => 384, + 'name' => '金山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 304 => + array ( + 'id' => 3805, + 'parent_id' => 384, + 'name' => '板桥区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 305 => + array ( + 'id' => 3806, + 'parent_id' => 384, + 'name' => '汐止区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 306 => + array ( + 'id' => 3807, + 'parent_id' => 384, + 'name' => '深坑区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 307 => + array ( + 'id' => 3808, + 'parent_id' => 384, + 'name' => '石碇区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 308 => + array ( + 'id' => 3809, + 'parent_id' => 384, + 'name' => '瑞芳区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 309 => + array ( + 'id' => 3810, + 'parent_id' => 384, + 'name' => '平溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 310 => + array ( + 'id' => 3811, + 'parent_id' => 384, + 'name' => '双溪区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 311 => + array ( + 'id' => 3812, + 'parent_id' => 384, + 'name' => '贡寮区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 312 => + array ( + 'id' => 3813, + 'parent_id' => 384, + 'name' => '新店区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 313 => + array ( + 'id' => 3814, + 'parent_id' => 384, + 'name' => '坪林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 314 => + array ( + 'id' => 3815, + 'parent_id' => 384, + 'name' => '乌来区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 315 => + array ( + 'id' => 3816, + 'parent_id' => 384, + 'name' => '永和区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 316 => + array ( + 'id' => 3817, + 'parent_id' => 384, + 'name' => '中和区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 317 => + array ( + 'id' => 3818, + 'parent_id' => 384, + 'name' => '土城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 318 => + array ( + 'id' => 3819, + 'parent_id' => 384, + 'name' => '三峡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 319 => + array ( + 'id' => 3820, + 'parent_id' => 384, + 'name' => '树林区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 320 => + array ( + 'id' => 3821, + 'parent_id' => 384, + 'name' => '莺歌区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 321 => + array ( + 'id' => 3822, + 'parent_id' => 384, + 'name' => '三重区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 322 => + array ( + 'id' => 3823, + 'parent_id' => 384, + 'name' => '新庄区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 323 => + array ( + 'id' => 3824, + 'parent_id' => 384, + 'name' => '泰山区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 324 => + array ( + 'id' => 3825, + 'parent_id' => 384, + 'name' => '林口区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 325 => + array ( + 'id' => 3826, + 'parent_id' => 384, + 'name' => '芦洲区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 326 => + array ( + 'id' => 3827, + 'parent_id' => 384, + 'name' => '五股区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 327 => + array ( + 'id' => 3828, + 'parent_id' => 384, + 'name' => '八里区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 328 => + array ( + 'id' => 3829, + 'parent_id' => 384, + 'name' => '淡水区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 329 => + array ( + 'id' => 3830, + 'parent_id' => 384, + 'name' => '三芝区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 330 => + array ( + 'id' => 3831, + 'parent_id' => 384, + 'name' => '石门区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 331 => + array ( + 'id' => 3832, + 'parent_id' => 385, + 'name' => '宜兰市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 332 => + array ( + 'id' => 3833, + 'parent_id' => 385, + 'name' => '头城镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 333 => + array ( + 'id' => 3834, + 'parent_id' => 385, + 'name' => '礁溪乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 334 => + array ( + 'id' => 3835, + 'parent_id' => 385, + 'name' => '壮围乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 335 => + array ( + 'id' => 3836, + 'parent_id' => 385, + 'name' => '员山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 336 => + array ( + 'id' => 3837, + 'parent_id' => 385, + 'name' => '罗东镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 337 => + array ( + 'id' => 3838, + 'parent_id' => 385, + 'name' => '三星乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 338 => + array ( + 'id' => 3839, + 'parent_id' => 385, + 'name' => '大同乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 339 => + array ( + 'id' => 3840, + 'parent_id' => 385, + 'name' => '五结乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 340 => + array ( + 'id' => 3841, + 'parent_id' => 385, + 'name' => '冬山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 341 => + array ( + 'id' => 3842, + 'parent_id' => 385, + 'name' => '苏澳镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 342 => + array ( + 'id' => 3843, + 'parent_id' => 385, + 'name' => '南澳乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 343 => + array ( + 'id' => 3844, + 'parent_id' => 385, + 'name' => '钓鱼台', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 344 => + array ( + 'id' => 3845, + 'parent_id' => 386, + 'name' => '竹北市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 345 => + array ( + 'id' => 3846, + 'parent_id' => 386, + 'name' => '湖口乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 346 => + array ( + 'id' => 3847, + 'parent_id' => 386, + 'name' => '新丰乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 347 => + array ( + 'id' => 3848, + 'parent_id' => 386, + 'name' => '新埔镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 348 => + array ( + 'id' => 3849, + 'parent_id' => 386, + 'name' => '关西镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 349 => + array ( + 'id' => 3850, + 'parent_id' => 386, + 'name' => '芎林乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 350 => + array ( + 'id' => 3851, + 'parent_id' => 386, + 'name' => '宝山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 351 => + array ( + 'id' => 3852, + 'parent_id' => 386, + 'name' => '竹东镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 352 => + array ( + 'id' => 3853, + 'parent_id' => 386, + 'name' => '五峰乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 353 => + array ( + 'id' => 3854, + 'parent_id' => 386, + 'name' => '横山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 354 => + array ( + 'id' => 3855, + 'parent_id' => 386, + 'name' => '尖石乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 355 => + array ( + 'id' => 3856, + 'parent_id' => 386, + 'name' => '北埔乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 356 => + array ( + 'id' => 3857, + 'parent_id' => 386, + 'name' => '峨眉乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 357 => + array ( + 'id' => 3858, + 'parent_id' => 387, + 'name' => '中坜市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 358 => + array ( + 'id' => 3859, + 'parent_id' => 387, + 'name' => '平镇市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 359 => + array ( + 'id' => 3860, + 'parent_id' => 387, + 'name' => '龙潭乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 360 => + array ( + 'id' => 3861, + 'parent_id' => 387, + 'name' => '杨梅市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 361 => + array ( + 'id' => 3862, + 'parent_id' => 387, + 'name' => '新屋乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 362 => + array ( + 'id' => 3863, + 'parent_id' => 387, + 'name' => '观音乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 363 => + array ( + 'id' => 3864, + 'parent_id' => 387, + 'name' => '桃园市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 364 => + array ( + 'id' => 3865, + 'parent_id' => 387, + 'name' => '龟山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 365 => + array ( + 'id' => 3866, + 'parent_id' => 387, + 'name' => '八德市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 366 => + array ( + 'id' => 3867, + 'parent_id' => 387, + 'name' => '大溪镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 367 => + array ( + 'id' => 3868, + 'parent_id' => 387, + 'name' => '复兴乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 368 => + array ( + 'id' => 3869, + 'parent_id' => 387, + 'name' => '大园乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 369 => + array ( + 'id' => 3870, + 'parent_id' => 387, + 'name' => '芦竹乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 370 => + array ( + 'id' => 3871, + 'parent_id' => 388, + 'name' => '竹南镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 371 => + array ( + 'id' => 3872, + 'parent_id' => 388, + 'name' => '头份镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 372 => + array ( + 'id' => 3873, + 'parent_id' => 388, + 'name' => '三湾乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 373 => + array ( + 'id' => 3874, + 'parent_id' => 388, + 'name' => '南庄乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 374 => + array ( + 'id' => 3875, + 'parent_id' => 388, + 'name' => '狮潭乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 375 => + array ( + 'id' => 3876, + 'parent_id' => 388, + 'name' => '后龙镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 376 => + array ( + 'id' => 3877, + 'parent_id' => 388, + 'name' => '通霄镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 377 => + array ( + 'id' => 3878, + 'parent_id' => 388, + 'name' => '苑里镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 378 => + array ( + 'id' => 3879, + 'parent_id' => 388, + 'name' => '苗栗市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 379 => + array ( + 'id' => 3880, + 'parent_id' => 388, + 'name' => '造桥乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 380 => + array ( + 'id' => 3881, + 'parent_id' => 388, + 'name' => '头屋乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 381 => + array ( + 'id' => 3882, + 'parent_id' => 388, + 'name' => '公馆乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 382 => + array ( + 'id' => 3883, + 'parent_id' => 388, + 'name' => '大湖乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 383 => + array ( + 'id' => 3884, + 'parent_id' => 388, + 'name' => '泰安乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 384 => + array ( + 'id' => 3885, + 'parent_id' => 388, + 'name' => '铜锣乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 385 => + array ( + 'id' => 3886, + 'parent_id' => 388, + 'name' => '三义乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 386 => + array ( + 'id' => 3887, + 'parent_id' => 388, + 'name' => '西湖乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 387 => + array ( + 'id' => 3888, + 'parent_id' => 388, + 'name' => '卓兰镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 388 => + array ( + 'id' => 3889, + 'parent_id' => 389, + 'name' => '彰化市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 389 => + array ( + 'id' => 3890, + 'parent_id' => 389, + 'name' => '芬园乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 390 => + array ( + 'id' => 3891, + 'parent_id' => 389, + 'name' => '花坛乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 391 => + array ( + 'id' => 3892, + 'parent_id' => 389, + 'name' => '秀水乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 392 => + array ( + 'id' => 3893, + 'parent_id' => 389, + 'name' => '鹿港镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 393 => + array ( + 'id' => 3894, + 'parent_id' => 389, + 'name' => '福兴乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 394 => + array ( + 'id' => 3895, + 'parent_id' => 389, + 'name' => '线西乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 395 => + array ( + 'id' => 3896, + 'parent_id' => 389, + 'name' => '和美镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 396 => + array ( + 'id' => 3897, + 'parent_id' => 389, + 'name' => '伸港乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 397 => + array ( + 'id' => 3898, + 'parent_id' => 389, + 'name' => '员林镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 398 => + array ( + 'id' => 3899, + 'parent_id' => 389, + 'name' => '社头乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 399 => + array ( + 'id' => 3900, + 'parent_id' => 389, + 'name' => '永靖乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 400 => + array ( + 'id' => 3901, + 'parent_id' => 389, + 'name' => '埔心乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 401 => + array ( + 'id' => 3902, + 'parent_id' => 389, + 'name' => '溪湖镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 402 => + array ( + 'id' => 3903, + 'parent_id' => 389, + 'name' => '大村乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 403 => + array ( + 'id' => 3904, + 'parent_id' => 389, + 'name' => '埔盐乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 404 => + array ( + 'id' => 3905, + 'parent_id' => 389, + 'name' => '田中镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 405 => + array ( + 'id' => 3906, + 'parent_id' => 389, + 'name' => '北斗镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 406 => + array ( + 'id' => 3907, + 'parent_id' => 389, + 'name' => '田尾乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 407 => + array ( + 'id' => 3908, + 'parent_id' => 389, + 'name' => '埤头乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 408 => + array ( + 'id' => 3909, + 'parent_id' => 389, + 'name' => '溪州乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 409 => + array ( + 'id' => 3910, + 'parent_id' => 389, + 'name' => '竹塘乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 410 => + array ( + 'id' => 3911, + 'parent_id' => 389, + 'name' => '二林镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 411 => + array ( + 'id' => 3912, + 'parent_id' => 389, + 'name' => '大城乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 412 => + array ( + 'id' => 3913, + 'parent_id' => 389, + 'name' => '芳苑乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 413 => + array ( + 'id' => 3914, + 'parent_id' => 389, + 'name' => '二水乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 414 => + array ( + 'id' => 3915, + 'parent_id' => 390, + 'name' => '番路乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 415 => + array ( + 'id' => 3916, + 'parent_id' => 390, + 'name' => '梅山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 416 => + array ( + 'id' => 3917, + 'parent_id' => 390, + 'name' => '竹崎乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 417 => + array ( + 'id' => 3918, + 'parent_id' => 390, + 'name' => '阿里山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 418 => + array ( + 'id' => 3919, + 'parent_id' => 390, + 'name' => '中埔乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 419 => + array ( + 'id' => 3920, + 'parent_id' => 390, + 'name' => '大埔乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 420 => + array ( + 'id' => 3921, + 'parent_id' => 390, + 'name' => '水上乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 421 => + array ( + 'id' => 3922, + 'parent_id' => 390, + 'name' => '鹿草乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 422 => + array ( + 'id' => 3923, + 'parent_id' => 390, + 'name' => '太保市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 423 => + array ( + 'id' => 3924, + 'parent_id' => 390, + 'name' => '朴子市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 424 => + array ( + 'id' => 3925, + 'parent_id' => 390, + 'name' => '东石乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 425 => + array ( + 'id' => 3926, + 'parent_id' => 390, + 'name' => '六脚乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 426 => + array ( + 'id' => 3927, + 'parent_id' => 390, + 'name' => '新港乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 427 => + array ( + 'id' => 3928, + 'parent_id' => 390, + 'name' => '民雄乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 428 => + array ( + 'id' => 3929, + 'parent_id' => 390, + 'name' => '大林镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 429 => + array ( + 'id' => 3930, + 'parent_id' => 390, + 'name' => '溪口乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 430 => + array ( + 'id' => 3931, + 'parent_id' => 390, + 'name' => '义竹乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 431 => + array ( + 'id' => 3932, + 'parent_id' => 390, + 'name' => '布袋镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 432 => + array ( + 'id' => 3933, + 'parent_id' => 391, + 'name' => '斗南镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 433 => + array ( + 'id' => 3934, + 'parent_id' => 391, + 'name' => '大埤乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 434 => + array ( + 'id' => 3935, + 'parent_id' => 391, + 'name' => '虎尾镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 435 => + array ( + 'id' => 3936, + 'parent_id' => 391, + 'name' => '土库镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 436 => + array ( + 'id' => 3937, + 'parent_id' => 391, + 'name' => '褒忠乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 437 => + array ( + 'id' => 3938, + 'parent_id' => 391, + 'name' => '东势乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 438 => + array ( + 'id' => 3939, + 'parent_id' => 391, + 'name' => '台西乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 439 => + array ( + 'id' => 3940, + 'parent_id' => 391, + 'name' => '仑背乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 440 => + array ( + 'id' => 3941, + 'parent_id' => 391, + 'name' => '麦寮乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 441 => + array ( + 'id' => 3942, + 'parent_id' => 391, + 'name' => '斗六市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 442 => + array ( + 'id' => 3943, + 'parent_id' => 391, + 'name' => '林内乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 443 => + array ( + 'id' => 3944, + 'parent_id' => 391, + 'name' => '古坑乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 444 => + array ( + 'id' => 3945, + 'parent_id' => 391, + 'name' => '莿桐乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 445 => + array ( + 'id' => 3946, + 'parent_id' => 391, + 'name' => '西螺镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 446 => + array ( + 'id' => 3947, + 'parent_id' => 391, + 'name' => '二仑乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 447 => + array ( + 'id' => 3948, + 'parent_id' => 391, + 'name' => '北港镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 448 => + array ( + 'id' => 3949, + 'parent_id' => 391, + 'name' => '水林乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 449 => + array ( + 'id' => 3950, + 'parent_id' => 391, + 'name' => '口湖乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 450 => + array ( + 'id' => 3951, + 'parent_id' => 391, + 'name' => '四湖乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 451 => + array ( + 'id' => 3952, + 'parent_id' => 391, + 'name' => '元长乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 452 => + array ( + 'id' => 3953, + 'parent_id' => 392, + 'name' => '屏东市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 453 => + array ( + 'id' => 3954, + 'parent_id' => 392, + 'name' => '三地门乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 454 => + array ( + 'id' => 3955, + 'parent_id' => 392, + 'name' => '雾台乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 455 => + array ( + 'id' => 3956, + 'parent_id' => 392, + 'name' => '玛家乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 456 => + array ( + 'id' => 3957, + 'parent_id' => 392, + 'name' => '九如乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 457 => + array ( + 'id' => 3958, + 'parent_id' => 392, + 'name' => '里港乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 458 => + array ( + 'id' => 3959, + 'parent_id' => 392, + 'name' => '高树乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 459 => + array ( + 'id' => 3960, + 'parent_id' => 392, + 'name' => '盐埔乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 460 => + array ( + 'id' => 3961, + 'parent_id' => 392, + 'name' => '长治乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 461 => + array ( + 'id' => 3962, + 'parent_id' => 392, + 'name' => '麟洛乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 462 => + array ( + 'id' => 3963, + 'parent_id' => 392, + 'name' => '竹田乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 463 => + array ( + 'id' => 3964, + 'parent_id' => 392, + 'name' => '内埔乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 464 => + array ( + 'id' => 3965, + 'parent_id' => 392, + 'name' => '万丹乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 465 => + array ( + 'id' => 3966, + 'parent_id' => 392, + 'name' => '潮州镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 466 => + array ( + 'id' => 3967, + 'parent_id' => 392, + 'name' => '泰武乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 467 => + array ( + 'id' => 3968, + 'parent_id' => 392, + 'name' => '来义乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 468 => + array ( + 'id' => 3969, + 'parent_id' => 392, + 'name' => '万峦乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 469 => + array ( + 'id' => 3970, + 'parent_id' => 392, + 'name' => '崁顶乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 470 => + array ( + 'id' => 3971, + 'parent_id' => 392, + 'name' => '新埤乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 471 => + array ( + 'id' => 3972, + 'parent_id' => 392, + 'name' => '南州乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 472 => + array ( + 'id' => 3973, + 'parent_id' => 392, + 'name' => '林边乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 473 => + array ( + 'id' => 3974, + 'parent_id' => 392, + 'name' => '东港镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 474 => + array ( + 'id' => 3975, + 'parent_id' => 392, + 'name' => '琉球乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 475 => + array ( + 'id' => 3976, + 'parent_id' => 392, + 'name' => '佳冬乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 476 => + array ( + 'id' => 3977, + 'parent_id' => 392, + 'name' => '新园乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 477 => + array ( + 'id' => 3978, + 'parent_id' => 392, + 'name' => '枋寮乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 478 => + array ( + 'id' => 3979, + 'parent_id' => 392, + 'name' => '枋山乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 479 => + array ( + 'id' => 3980, + 'parent_id' => 392, + 'name' => '春日乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 480 => + array ( + 'id' => 3981, + 'parent_id' => 392, + 'name' => '狮子乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 481 => + array ( + 'id' => 3982, + 'parent_id' => 392, + 'name' => '车城乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 482 => + array ( + 'id' => 3983, + 'parent_id' => 392, + 'name' => '牡丹乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 483 => + array ( + 'id' => 3984, + 'parent_id' => 392, + 'name' => '恒春镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 484 => + array ( + 'id' => 3985, + 'parent_id' => 392, + 'name' => '满州乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 485 => + array ( + 'id' => 3986, + 'parent_id' => 393, + 'name' => '台东市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 486 => + array ( + 'id' => 3987, + 'parent_id' => 393, + 'name' => '绿岛乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 487 => + array ( + 'id' => 3988, + 'parent_id' => 393, + 'name' => '兰屿乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 488 => + array ( + 'id' => 3989, + 'parent_id' => 393, + 'name' => '延平乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 489 => + array ( + 'id' => 3990, + 'parent_id' => 393, + 'name' => '卑南乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 490 => + array ( + 'id' => 3991, + 'parent_id' => 393, + 'name' => '鹿野乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 491 => + array ( + 'id' => 3992, + 'parent_id' => 393, + 'name' => '关山镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 492 => + array ( + 'id' => 3993, + 'parent_id' => 393, + 'name' => '海端乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 493 => + array ( + 'id' => 3994, + 'parent_id' => 393, + 'name' => '池上乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 494 => + array ( + 'id' => 3995, + 'parent_id' => 393, + 'name' => '东河乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 495 => + array ( + 'id' => 3996, + 'parent_id' => 393, + 'name' => '成功镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 496 => + array ( + 'id' => 3997, + 'parent_id' => 393, + 'name' => '长滨乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 497 => + array ( + 'id' => 3998, + 'parent_id' => 393, + 'name' => '金峰乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 498 => + array ( + 'id' => 3999, + 'parent_id' => 393, + 'name' => '大武乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 499 => + array ( + 'id' => 4000, + 'parent_id' => 393, + 'name' => '达仁乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + \DB::table('shop_region')->insert(array ( + 0 => + array ( + 'id' => 4001, + 'parent_id' => 393, + 'name' => '太麻里乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 1 => + array ( + 'id' => 4002, + 'parent_id' => 394, + 'name' => '花莲市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 2 => + array ( + 'id' => 4003, + 'parent_id' => 394, + 'name' => '新城乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 3 => + array ( + 'id' => 4004, + 'parent_id' => 394, + 'name' => '太鲁阁', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 4 => + array ( + 'id' => 4005, + 'parent_id' => 394, + 'name' => '秀林乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 5 => + array ( + 'id' => 4006, + 'parent_id' => 394, + 'name' => '吉安乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 6 => + array ( + 'id' => 4007, + 'parent_id' => 394, + 'name' => '寿丰乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 7 => + array ( + 'id' => 4008, + 'parent_id' => 394, + 'name' => '凤林镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 8 => + array ( + 'id' => 4009, + 'parent_id' => 394, + 'name' => '光复乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 9 => + array ( + 'id' => 4010, + 'parent_id' => 394, + 'name' => '丰滨乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 10 => + array ( + 'id' => 4011, + 'parent_id' => 394, + 'name' => '瑞穗乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 11 => + array ( + 'id' => 4012, + 'parent_id' => 394, + 'name' => '万荣乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 12 => + array ( + 'id' => 4013, + 'parent_id' => 394, + 'name' => '玉里镇', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 13 => + array ( + 'id' => 4014, + 'parent_id' => 394, + 'name' => '卓溪乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 14 => + array ( + 'id' => 4015, + 'parent_id' => 394, + 'name' => '富里乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 15 => + array ( + 'id' => 4016, + 'parent_id' => 395, + 'name' => '马公市', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 16 => + array ( + 'id' => 4017, + 'parent_id' => 395, + 'name' => '西屿乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 17 => + array ( + 'id' => 4018, + 'parent_id' => 395, + 'name' => '望安乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 18 => + array ( + 'id' => 4019, + 'parent_id' => 395, + 'name' => '七美乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 19 => + array ( + 'id' => 4020, + 'parent_id' => 395, + 'name' => '白沙乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 20 => + array ( + 'id' => 4021, + 'parent_id' => 395, + 'name' => '湖西乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 21 => + array ( + 'id' => 4022, + 'parent_id' => 396, + 'name' => '南竿乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 22 => + array ( + 'id' => 4023, + 'parent_id' => 396, + 'name' => '北竿乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 23 => + array ( + 'id' => 4024, + 'parent_id' => 396, + 'name' => '莒光乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 24 => + array ( + 'id' => 4025, + 'parent_id' => 396, + 'name' => '东引乡', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 25 => + array ( + 'id' => 4026, + 'parent_id' => 397, + 'name' => '中西区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 26 => + array ( + 'id' => 4027, + 'parent_id' => 397, + 'name' => '湾仔', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 27 => + array ( + 'id' => 4028, + 'parent_id' => 397, + 'name' => '东区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 28 => + array ( + 'id' => 4029, + 'parent_id' => 397, + 'name' => '南区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 29 => + array ( + 'id' => 4030, + 'parent_id' => 398, + 'name' => '九龙城区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 30 => + array ( + 'id' => 4031, + 'parent_id' => 398, + 'name' => '油尖旺区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 31 => + array ( + 'id' => 4032, + 'parent_id' => 398, + 'name' => '深水埗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 32 => + array ( + 'id' => 4033, + 'parent_id' => 398, + 'name' => '黄大仙区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 33 => + array ( + 'id' => 4034, + 'parent_id' => 398, + 'name' => '观塘区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 34 => + array ( + 'id' => 4035, + 'parent_id' => 399, + 'name' => '北区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 35 => + array ( + 'id' => 4036, + 'parent_id' => 399, + 'name' => '大埔区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 36 => + array ( + 'id' => 4037, + 'parent_id' => 399, + 'name' => '沙田区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 37 => + array ( + 'id' => 4038, + 'parent_id' => 399, + 'name' => '西贡区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 38 => + array ( + 'id' => 4039, + 'parent_id' => 399, + 'name' => '元朗区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 39 => + array ( + 'id' => 4040, + 'parent_id' => 399, + 'name' => '屯门区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 40 => + array ( + 'id' => 4041, + 'parent_id' => 399, + 'name' => '荃湾区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 41 => + array ( + 'id' => 4042, + 'parent_id' => 399, + 'name' => '葵青区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + 42 => + array ( + 'id' => 4043, + 'parent_id' => 399, + 'name' => '离岛区', + 'lng' => '0.0000', + 'lat' => '0.0000', + 'type' => 3, + 'agency_id' => 0, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopShipperTableSeeder.php b/database/seeds/ShopShipperTableSeeder.php new file mode 100644 index 0000000..0312666 --- /dev/null +++ b/database/seeds/ShopShipperTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopSpecificationTableSeeder.php b/database/seeds/ShopSpecificationTableSeeder.php new file mode 100644 index 0000000..20f3569 --- /dev/null +++ b/database/seeds/ShopSpecificationTableSeeder.php @@ -0,0 +1,42 @@ +delete(); + + \DB::table('shop_specification')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => '电商系统', + 'sort_order' => 255, + ), + 1 => + array ( + 'id' => 2, + 'name' => '颜色', + 'sort_order' => 255, + ), + 2 => + array ( + 'id' => 3, + 'name' => '系统', + 'sort_order' => 255, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopTopicCategoryTableSeeder.php b/database/seeds/ShopTopicCategoryTableSeeder.php new file mode 100644 index 0000000..40612a4 --- /dev/null +++ b/database/seeds/ShopTopicCategoryTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopTopicTableSeeder.php b/database/seeds/ShopTopicTableSeeder.php new file mode 100644 index 0000000..db53359 --- /dev/null +++ b/database/seeds/ShopTopicTableSeeder.php @@ -0,0 +1,58 @@ +delete(); + + \DB::table('shop_topic')->insert(array ( + 0 => + array ( + 'id' => 1, + 'title' => '专题专题1', + 'content' => '



    ', + 'avatar' => 'images/425e64b4058e4eac54416a9cd8f945df.jpg', + 'item_pic_url' => '["images\\/48b2a2aa5320b59e070bc65667c647fc.jpg","images\\/06ea18b81fab6e1fd8218730d0e0ce46.jpg"]', + 'subtitle' => '专题专题1专题专题1专题专题1', + 'topic_category_id' => 0, + 'price_info' => '11.00', + 'read_count' => '0', + 'scene_pic_url' => 'images/5bebbcef9a6aa7a4fe01dbe13e55f23f.jpg', + 'sort_order' => 255, + 'is_show' => 1, + 'created_at' => '2018-05-31 05:55:54', + 'updated_at' => '2018-06-30 05:50:45', + ), + 1 => + array ( + 'id' => 2, + 'title' => '新增测试专题', + 'content' => '


      

    ', + 'avatar' => 'images/1fcb3ed37b3836bfa5f39855919506e9.jpg', + 'item_pic_url' => '["images\\/cb932c69501fa4ca8dbaa0dd21fef0c1.jpg"]', + 'subtitle' => '新增测试专题哈哈哈哈哈', + 'topic_category_id' => 0, + 'price_info' => '0.00', + 'read_count' => '0', + 'scene_pic_url' => 'images/f83d1277d8bd56a61e908bb9218851e3.jpg', + 'sort_order' => 255, + 'is_show' => 1, + 'created_at' => '2018-05-31 07:30:55', + 'updated_at' => '2018-06-30 05:54:00', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/ShopUserCouponTableSeeder.php b/database/seeds/ShopUserCouponTableSeeder.php new file mode 100644 index 0000000..2efe26c --- /dev/null +++ b/database/seeds/ShopUserCouponTableSeeder.php @@ -0,0 +1,22 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeds/SpecialTableSeeder.php b/database/seeds/SpecialTableSeeder.php new file mode 100644 index 0000000..3871c99 --- /dev/null +++ b/database/seeds/SpecialTableSeeder.php @@ -0,0 +1,80 @@ +delete(); + + \DB::table('special')->insert(array ( + 0 => + array ( + 'id' => 2, + 'class_id' => 0, + 'special_title' => '定制服务', + 'link_url' => '/pages/projectType/projectType', + 'special_desc' => '已经开发完成的系统购买', + 'remark' => '已经开发完成的系统购买', + 'sort' => 255, + 'if_show' => 1, + 'created_at' => '2018-05-10 08:50:36', + 'updated_at' => '2018-07-11 09:35:10', + 'icon' => 'images/心.png', + ), + 1 => + array ( + 'id' => 3, + 'class_id' => 0, + 'special_title' => '精选生鲜', + 'link_url' => '/pages/catalog/catalog?id=4', + 'special_desc' => '已经开发完成的系统购买', + 'remark' => '已经开发完成的系统购买', + 'sort' => 255, + 'if_show' => 1, + 'created_at' => '2018-06-22 08:11:44', + 'updated_at' => '2018-06-22 08:11:44', + 'icon' => 'images/642eebd7a7d65f1fa02e04ef6cbcc3e2.png', + ), + 2 => + array ( + 'id' => 4, + 'class_id' => 0, + 'special_title' => '技术商品', + 'link_url' => '/pages/catalog/catalog', + 'special_desc' => '已经开发完成的系统购买', + 'remark' => '已经开发完成的系统购买', + 'sort' => 255, + 'if_show' => 1, + 'created_at' => '2018-06-22 08:12:20', + 'updated_at' => '2018-06-22 08:12:20', + 'icon' => 'images/kaifa.png', + ), + 3 => + array ( + 'id' => 5, + 'class_id' => 0, + 'special_title' => '精选专题', + 'link_url' => '/pages/topic/topic', + 'special_desc' => '已经开发完成的系统购买', + 'remark' => '已经开发完成的系统购买', + 'sort' => 255, + 'if_show' => 1, + 'created_at' => '2018-06-22 08:14:28', + 'updated_at' => '2018-06-22 08:14:28', + 'icon' => 'images/zhuangti.png', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeds/carousel_boothsTableSeeder.php b/database/seeds/carousel_boothsTableSeeder.php new file mode 100644 index 0000000..495365f --- /dev/null +++ b/database/seeds/carousel_boothsTableSeeder.php @@ -0,0 +1,23 @@ +insert([ + 'booth_type'=>'1', + 'carousel_title'=>str_random(30), + 'carousel_info'=>str_random(20), + 'carousel_img'=>'../images/sqc'.mt_rand(1,3).'.jpg', + 'carousel_link'=>'../index.html', + 'state'=>1, + ]); + } +} diff --git a/database/seeds/missionTableSeeder.php b/database/seeds/missionTableSeeder.php new file mode 100644 index 0000000..ffdb40a --- /dev/null +++ b/database/seeds/missionTableSeeder.php @@ -0,0 +1,30 @@ +insert([ + 'type_id'=>'1', + 'mission_title'=>str_random(16), + 'description'=>str_random(20), + 'Technology_labels'=>'1,2,3', + 'budget_amount'=>1000, + 'deadline'=>1475050602, + 'end_time'=>1475050602, + 'maintain_time'=>1475050602, + 'contacts' => str_random(10), + 'phone' => str_random(11), + 'email' => str_random(10).'@gmail.com', + 'remarks' => str_random(10), + 'service_address' => str_random(10), + ]); + } +} diff --git a/mini/.gitignore b/mini/.gitignore new file mode 100644 index 0000000..2a4d822 --- /dev/null +++ b/mini/.gitignore @@ -0,0 +1 @@ +project.config.json diff --git a/mini/LICENSE b/mini/LICENSE new file mode 100644 index 0000000..5e372ef --- /dev/null +++ b/mini/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 tumobi(tumobi@163.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/mini/app.js b/mini/app.js new file mode 100644 index 0000000..ca4660a --- /dev/null +++ b/mini/app.js @@ -0,0 +1,25 @@ +var util = require('./utils/util.js'); + var api = require('./config/api.js'); +var user = require('./services/user.js'); + +App({ + onLaunch: function () { + //获取用户的登录信息 + user.checkLogin().then(res => { + console.log('app login') + this.globalData.userInfo = wx.getStorageSync('userInfo'); + this.globalData.token = wx.getStorageSync('token'); + }).catch(() => { + + }); + }, + + globalData: { + userInfo: { + nickname: '游客', + username: '去登录', + avatar: 'http://mp.fengyuexingzi.top/images/default_head.png' + }, + token: '', + } +}) \ No newline at end of file diff --git a/mini/app.json b/mini/app.json new file mode 100644 index 0000000..17f9114 --- /dev/null +++ b/mini/app.json @@ -0,0 +1,90 @@ +{ + "pages": [ + "pages/start/start", + "pages/index/index", + "pages/projectType/projectType", + "pages/technologyGoods/technologyGoods", + "pages/catalog/catalog", + "pages/newGoods/newGoods", + "pages/hotGoods/hotGoods", + "pages/ucenter/address/address", + "pages/ucenter/addressAdd/addressAdd", + "pages/ucenter/footprint/footprint", + "pages/ucenter/order/order", + "pages/ucenter/orderDetail/orderDetail", + "pages/ucenter/express/express", + "pages/ucenter/feedback/feedback", + "pages/ucenter/coupon/coupon", + "pages/ucenter/collect/collect", + "pages/auth/login/login", + "pages/auth/register/register", + "pages/auth/reset/reset", + "pages/pay/pay", + "pages/payResult/payResult", + "pages/ucenter/index/index", + "pages/topic/topic", + "pages/comment/comment", + "pages/commentPost/commentPost", + "pages/topicComment/topicComment", + "pages/brand/brand", + "pages/brandDetail/brandDetail", + "pages/search/search", + "pages/category/category", + "pages/cart/cart", + "pages/shopping/checkout/checkout", + "pages/shopping/address/address", + "pages/shopping/addressAdd/addressAdd", + "pages/goods/goods", + "pages/topicDetail/topicDetail" + ], + "window": { + "backgroundTextStyle": "dark", + "navigationBarBackgroundColor": "#fff", + "navigationBarTitleText": "minishop", + "navigationBarTextStyle": "black", + "enablePullDownRefresh": true + }, + "tabBar": { + "backgroundColor": "#fafafa", + "borderStyle": "white", + "selectedColor": "#b4282d", + "color": "#666", + "list": [ + { + "pagePath": "pages/index/index", + "iconPath": "static/images/ic_menu_choice_nor.png", + "selectedIconPath": "static/images/ic_menu_choice_pressed.png", + "text": "首页" + }, + { + "pagePath": "pages/topic/topic", + "iconPath": "static/images/ic_menu_topic_nor.png", + "selectedIconPath": "static/images/ic_menu_topic_pressed.png", + "text": "专题" + }, + { + "pagePath": "pages/catalog/catalog", + "iconPath": "static/images/ic_menu_sort_nor.png", + "selectedIconPath": "static/images/ic_menu_sort_pressed.png", + "text": "分类" + }, + { + "pagePath": "pages/cart/cart", + "iconPath": "static/images/ic_menu_shoping_nor.png", + "selectedIconPath": "static/images/ic_menu_shoping_pressed.png", + "text": "购物车" + }, + { + "pagePath": "pages/ucenter/index/index", + "iconPath": "static/images/ic_menu_me_nor.png", + "selectedIconPath": "static/images/ic_menu_me_pressed.png", + "text": "我的" + } + ] + }, + "networkTimeout": { + "request": 10000, + "downloadFile": 10000 + }, + "debug": true +} \ No newline at end of file diff --git a/mini/app.wxss b/mini/app.wxss new file mode 100644 index 0000000..3d70f73 --- /dev/null +++ b/mini/app.wxss @@ -0,0 +1,19 @@ +/**app.wxss**/ +.container { + box-sizing: border-box; + background-color: #f4f4f4; + font-family: PingFangSC-Light,helvetica,'Heiti SC'; +} + +view,image,text,navigator{ + box-sizing: border-box; + padding:0; + margin:0; + +} + +view,text{ + font-family: PingFangSC-Light,helvetica,'Heiti SC'; + font-size: 29rpx; + color: #333; +} \ No newline at end of file diff --git a/mini/config/api.js b/mini/config/api.js new file mode 100644 index 0000000..1383433 --- /dev/null +++ b/mini/config/api.js @@ -0,0 +1,78 @@ +const ApiRootUrl ='https://mp.fengyuexingzi.top/api/'; + +module.exports = { + IndexUrl: ApiRootUrl + 'index', //首页数据接口 -- + ProjectTypeList: ApiRootUrl + 'project-type-json', //技能类型 ok + ProjectGood: ApiRootUrl + 'project-goods', // 技能组成商品 ok + GoodsTransform:ApiRootUrl + 'project-goods-transform', // 转换成商城商品 + + TopicList: ApiRootUrl + 'topic-list', //专题列表 ok + TopicDetail: ApiRootUrl + 'topic-detail', //专题详情 半ok 评论相关没有处理 + TopicRelated: ApiRootUrl + 'topic-related', //相关专题 -- + + + CatalogList: ApiRootUrl + 'catalog-index', //分类目录全部分类数据接口 ok + CatalogCurrent: ApiRootUrl + 'catalog-current', //分类目录当前分类数据接口 ok + + GoodsCount: ApiRootUrl + 'goods-count', //统计商品总数 + GoodsList: ApiRootUrl + 'goods-list', //获得商品列表 + GoodsCategory: ApiRootUrl + 'goods-category', //获得分类数据 + GoodsDetail: ApiRootUrl + 'goods-detail', //获得商品的详情 + GoodsRelated: ApiRootUrl + 'goods-related', //商品详情页的关联商品(大家都在看) + GoodsNew: ApiRootUrl + 'goods-new', //新品 + GoodsHot: ApiRootUrl + 'goods-hot', //热门 + + CollectAddOrDelete: ApiRootUrl + 'collect-addordelete', //添加或取消收藏 + CollectList: ApiRootUrl + 'collect-list', //收藏列表 + + CartList: ApiRootUrl + 'cart-index', //获取购物车的数据 + CartAdd: ApiRootUrl + 'cart-add', // 添加商品到购物车 + CartUpdate: ApiRootUrl + 'cart-update', // 更新购物车的商品 + CartDelete: ApiRootUrl + 'cart-delete', // 删除购物车的商品 + CartChecked: ApiRootUrl + 'cart-checked', // 选择或取消选择商品 + CartGoodsCount: ApiRootUrl + 'cart-goodscount', // 获取购物车商品件数 + + CommentList: ApiRootUrl + 'comment-list', //评论列表 + CommentCount: ApiRootUrl + 'comment-count', //评论总数 + CommentPost: ApiRootUrl + 'comment-post', //发表评论 + + CartCheckout: ApiRootUrl + 'cart-checkout', // 下单前信息确认 + PayNow: ApiRootUrl + 'pay-now', // 立即购买 + + RegionList: ApiRootUrl + 'region-list', //获取区域列表 + AddressList: ApiRootUrl + 'address-list', //收货地址列表 + AddressDetail: ApiRootUrl + 'address-detail', //收货地址详情 + AddressSave: ApiRootUrl + 'address-save', //保存收货地址 + AddressDelete: ApiRootUrl + 'address-delete', //删除收货地址 + + + OrderSubmit: ApiRootUrl + 'order-submit', // 提交订单 + PayPrepayId: ApiRootUrl + 'pay-prepay', //获取微信统一下单prepay_id + + AuthLoginByWeixin: ApiRootUrl + 'login', //微信登录 + + OrderList: ApiRootUrl + 'order-list', //订单列表 + OrderDetail: ApiRootUrl + 'order-detail', //订单详情 + OrderCancel: ApiRootUrl + 'order-cancel', //取消订单 + OrderExpress: ApiRootUrl + 'order-express', //物流详情 + + FeedBackData: ApiRootUrl + 'feedback-datalist', // 反馈选项 + FeedBackHandle: ApiRootUrl + 'feedback-handle', // 反馈 + + BrandDetail: ApiRootUrl + 'brand-detail', //品牌详情 + + FootprintList: ApiRootUrl + 'footprint-list', //足迹列表 + + /*--------------------------------------------------------------------------------------*/ + + + BrandList: ApiRootUrl + 'brand/list', //品牌列表 + + SearchIndex: ApiRootUrl + 'search/index', //搜索页面数据 + SearchResult: ApiRootUrl + 'search/result', //搜索数据 + SearchHelper: ApiRootUrl + 'search/helper', //搜索帮助 + SearchClearHistory: ApiRootUrl + 'search/clearhistory', //搜索帮助 + + + FootprintDelete: ApiRootUrl + 'footprint/delete', //删除足迹 +}; \ No newline at end of file diff --git a/mini/lib/wxParse/html2json.js b/mini/lib/wxParse/html2json.js new file mode 100644 index 0000000..6ac71c7 --- /dev/null +++ b/mini/lib/wxParse/html2json.js @@ -0,0 +1,242 @@ +/** + * author: Di (微信小程序开发工程师) + * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) + * 垂直微信小程序开发交流社区 + * + * github地址: https://github.com/icindy/wxParse + * + * for: 微信小程序富文本解析 + * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 + */ + +var __placeImgeUrlHttps = "https"; +var __emojisReg = ''; +var __emojisBaseSrc = ''; +var __emojis = {}; +var wxDiscode = require('wxDiscode.js'); +var HTMLParser = require('htmlparser.js'); +// Empty Elements - HTML 5 +var empty = makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"); +// Block Elements - HTML 5 +var block = makeMap("br,a,code,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"); + +// Inline Elements - HTML 5 +var inline = makeMap("abbr,acronym,applet,b,basefont,bdo,big,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); + +// Elements that you can, intentionally, leave open +// (and which close themselves) +var closeSelf = makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); + +// Attributes that have their values filled in disabled="disabled" +var fillAttrs = makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"); + +// Special Elements (can contain anything) +var special = makeMap("wxxxcode-style,script,style,view,scroll-view,block"); +function makeMap(str) { + var obj = {}, items = str.split(","); + for (var i = 0; i < items.length; i++) + obj[items[i]] = true; + return obj; +} + +function q(v) { + return '"' + v + '"'; +} + +function removeDOCTYPE(html) { + return html + .replace(/<\?xml.*\?>\n/, '') + .replace(/\n/, '') + .replace(/\n/, ''); +} + + +function html2json(html, bindName) { + //处理字符串 + html = removeDOCTYPE(html); + html = wxDiscode.strDiscode(html); + //生成node节点 + var bufArray = []; + var results = { + node: bindName, + nodes: [], + images:[], + imageUrls:[] + }; + HTMLParser(html, { + start: function (tag, attrs, unary) { + //debug(tag, attrs, unary); + // node for this element + var node = { + node: 'element', + tag: tag, + }; + + if (block[tag]) { + node.tagType = "block"; + } else if (inline[tag]) { + node.tagType = "inline"; + } else if (closeSelf[tag]) { + node.tagType = "closeSelf"; + } + + if (attrs.length !== 0) { + node.attr = attrs.reduce(function (pre, attr) { + var name = attr.name; + var value = attr.value; + if (name == 'class') { + console.dir(value); + // value = value.join("") + node.classStr = value; + } + // has multi attibutes + // make it array of attribute + if (name == 'style') { + console.dir(value); + // value = value.join("") + node.styleStr = value; + } + if (value.match(/ /)) { + value = value.split(' '); + } + + + // if attr already exists + // merge it + if (pre[name]) { + if (Array.isArray(pre[name])) { + // already array, push to last + pre[name].push(value); + } else { + // single value, make it array + pre[name] = [pre[name], value]; + } + } else { + // not exist, put it + pre[name] = value; + } + + return pre; + }, {}); + } + + //对img添加额外数据 + if (node.tag === 'img') { + node.imgIndex = results.images.length; + var imgUrl = node.attr.src; + imgUrl = wxDiscode.urlToHttpUrl(imgUrl, __placeImgeUrlHttps); + node.attr.src = imgUrl; + node.from = bindName; + results.images.push(node); + results.imageUrls.push(imgUrl); + } + + if (unary) { + // if this tag dosen't have end tag + // like + // add to parents + var parent = bufArray[0] || results; + if (parent.nodes === undefined) { + parent.nodes = []; + } + parent.nodes.push(node); + } else { + bufArray.unshift(node); + } + }, + end: function (tag) { + //debug(tag); + // merge into parent tag + var node = bufArray.shift(); + if (node.tag !== tag) console.error('invalid state: mismatch end tag'); + + if (bufArray.length === 0) { + results.nodes.push(node); + } else { + var parent = bufArray[0]; + if (parent.nodes === undefined) { + parent.nodes = []; + } + parent.nodes.push(node); + } + }, + chars: function (text) { + //debug(text); + var node = { + node: 'text', + text: text, + textArray:transEmojiStr(text) + }; + + if (bufArray.length === 0) { + results.nodes.push(node); + } else { + var parent = bufArray[0]; + if (parent.nodes === undefined) { + parent.nodes = []; + } + parent.nodes.push(node); + } + }, + comment: function (text) { + //debug(text); + var node = { + node: 'comment', + text: text, + }; + var parent = bufArray[0]; + if (parent.nodes === undefined) { + parent.nodes = []; + } + parent.nodes.push(node); + }, + }); + return results; +}; + +function transEmojiStr(str){ + // var eReg = new RegExp("["+__reg+' '+"]"); +// str = str.replace(/\[([^\[\]]+)\]/g,':$1:') + + var emojiObjs = []; + //如果正则表达式为空 + if(__emojisReg.length == 0 || !__emojis){ + var emojiObj = {} + emojiObj.node = "text"; + emojiObj.text = str; + array = [emojiObj]; + return array; + } + //这个地方需要调整 + str = str.replace(/\[([^\[\]]+)\]/g,':$1:') + var eReg = new RegExp("[:]"); + var array = str.split(eReg); + for(var i = 0; i < array.length; i++){ + var ele = array[i]; + var emojiObj = {}; + if(__emojis[ele]){ + emojiObj.node = "element"; + emojiObj.tag = "emoji"; + emojiObj.text = __emojis[ele]; + emojiObj.baseSrc= __emojisBaseSrc; + }else{ + emojiObj.node = "text"; + emojiObj.text = ele; + } + emojiObjs.push(emojiObj); + } + + return emojiObjs; +} + +function emojisInit(reg='',baseSrc="/wxParse/emojis/",emojis){ + __emojisReg = reg; + __emojisBaseSrc=baseSrc; + __emojis=emojis; +} + +module.exports = { + html2json: html2json, + emojisInit:emojisInit +}; + diff --git a/mini/lib/wxParse/htmlparser.js b/mini/lib/wxParse/htmlparser.js new file mode 100644 index 0000000..7406b45 --- /dev/null +++ b/mini/lib/wxParse/htmlparser.js @@ -0,0 +1,182 @@ +/** + * author: Di (微信小程序开发工程师) + * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) + * 垂直微信小程序开发交流社区 + * + * github地址: https://github.com/icindy/wxParse + * + * for: 微信小程序富文本解析 + * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 + */ +// Regular Expressions for parsing tags and attributes +var startTag = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, + endTag = /^<\/([-A-Za-z0-9_]+)[^>]*>/, + attr = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g; + +// Empty Elements - HTML 5 +var empty = makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"); + +// Block Elements - HTML 5 +var block = makeMap("a,address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"); + +// Inline Elements - HTML 5 +var inline = makeMap("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); + +// Elements that you can, intentionally, leave open +// (and which close themselves) +var closeSelf = makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); + +// Attributes that have their values filled in disabled="disabled" +var fillAttrs = makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"); + +// Special Elements (can contain anything) +var special = makeMap("wxxxcode-style,script,style,view,scroll-view,block"); + +function HTMLParser(html, handler) { + var index, chars, match, stack = [], last = html; + stack.last = function () { + return this[this.length - 1]; + }; + + while (html) { + chars = true; + + // Make sure we're not in a script or style element + if (!stack.last() || !special[stack.last()]) { + + // Comment + if (html.indexOf(""); + + if (index >= 0) { + if (handler.comment) + handler.comment(html.substring(4, index)); + html = html.substring(index + 3); + chars = false; + } + + // end tag + } else if (html.indexOf("]*>"), function (all, text) { + text = text.replace(/|/g, "$1$2"); + if (handler.chars) + handler.chars(text); + + return ""; + }); + + + parseEndTag("", stack.last()); + } + + if (html == last) + throw "Parse Error: " + html; + last = html; + } + + // Clean up any remaining tags + parseEndTag(); + + function parseStartTag(tag, tagName, rest, unary) { + tagName = tagName.toLowerCase(); + + if (block[tagName]) { + while (stack.last() && inline[stack.last()]) { + parseEndTag("", stack.last()); + } + } + + if (closeSelf[tagName] && stack.last() == tagName) { + parseEndTag("", tagName); + } + + unary = empty[tagName] || !!unary; + + if (!unary) + stack.push(tagName); + + if (handler.start) { + var attrs = []; + + rest.replace(attr, function (match, name) { + var value = arguments[2] ? arguments[2] : + arguments[3] ? arguments[3] : + arguments[4] ? arguments[4] : + fillAttrs[name] ? name : ""; + + attrs.push({ + name: name, + value: value, + escaped: value.replace(/(^|[^\\])"/g, '$1\\\"') //" + }); + }); + + if (handler.start) { + handler.start(tagName, attrs, unary); + } + + } + } + + function parseEndTag(tag, tagName) { + // If no tag name is provided, clean shop + if (!tagName) + var pos = 0; + + // Find the closest opened tag of the same type + else + for (var pos = stack.length - 1; pos >= 0; pos--) + if (stack[pos] == tagName) + break; + + if (pos >= 0) { + // Close all the open elements, up the stack + for (var i = stack.length - 1; i >= pos; i--) + if (handler.end) + handler.end(stack[i]); + + // Remove the open elements from the stack + stack.length = pos; + } + } +}; + +function makeMap(str) { + var obj = {}, items = str.split(","); + for (var i = 0; i < items.length; i++) + obj[items[i]] = true; + return obj; +} + +module.exports = HTMLParser; diff --git a/mini/lib/wxParse/showdown.js b/mini/lib/wxParse/showdown.js new file mode 100644 index 0000000..a1f830f --- /dev/null +++ b/mini/lib/wxParse/showdown.js @@ -0,0 +1,2529 @@ +/** + * author: Di (微信小程序开发工程师) + * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) + * 垂直微信小程序开发交流社区 + * + * github地址: https://github.com/icindy/wxParse + * + * for: 微信小程序富文本解析 + * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 + */ + +function getDefaultOpts(simple) { + 'use strict'; + + var defaultOptions = { + omitExtraWLInCodeBlocks: { + defaultValue: false, + describe: 'Omit the default extra whiteline added to code blocks', + type: 'boolean' + }, + noHeaderId: { + defaultValue: false, + describe: 'Turn on/off generated header id', + type: 'boolean' + }, + prefixHeaderId: { + defaultValue: false, + describe: 'Specify a prefix to generated header ids', + type: 'string' + }, + headerLevelStart: { + defaultValue: false, + describe: 'The header blocks level start', + type: 'integer' + }, + parseImgDimensions: { + defaultValue: false, + describe: 'Turn on/off image dimension parsing', + type: 'boolean' + }, + simplifiedAutoLink: { + defaultValue: false, + describe: 'Turn on/off GFM autolink style', + type: 'boolean' + }, + literalMidWordUnderscores: { + defaultValue: false, + describe: 'Parse midword underscores as literal underscores', + type: 'boolean' + }, + strikethrough: { + defaultValue: false, + describe: 'Turn on/off strikethrough support', + type: 'boolean' + }, + tables: { + defaultValue: false, + describe: 'Turn on/off tables support', + type: 'boolean' + }, + tablesHeaderId: { + defaultValue: false, + describe: 'Add an id to table headers', + type: 'boolean' + }, + ghCodeBlocks: { + defaultValue: true, + describe: 'Turn on/off GFM fenced code blocks support', + type: 'boolean' + }, + tasklists: { + defaultValue: false, + describe: 'Turn on/off GFM tasklist support', + type: 'boolean' + }, + smoothLivePreview: { + defaultValue: false, + describe: 'Prevents weird effects in live previews due to incomplete input', + type: 'boolean' + }, + smartIndentationFix: { + defaultValue: false, + description: 'Tries to smartly fix identation in es6 strings', + type: 'boolean' + } + }; + if (simple === false) { + return JSON.parse(JSON.stringify(defaultOptions)); + } + var ret = {}; + for (var opt in defaultOptions) { + if (defaultOptions.hasOwnProperty(opt)) { + ret[opt] = defaultOptions[opt].defaultValue; + } + } + return ret; +} + +/** + * Created by Tivie on 06-01-2015. + */ + +// Private properties +var showdown = {}, + parsers = {}, + extensions = {}, + globalOptions = getDefaultOpts(true), + flavor = { + github: { + omitExtraWLInCodeBlocks: true, + prefixHeaderId: 'user-content-', + simplifiedAutoLink: true, + literalMidWordUnderscores: true, + strikethrough: true, + tables: true, + tablesHeaderId: true, + ghCodeBlocks: true, + tasklists: true + }, + vanilla: getDefaultOpts(true) + }; + +/** + * helper namespace + * @type {{}} + */ +showdown.helper = {}; + +/** + * TODO LEGACY SUPPORT CODE + * @type {{}} + */ +showdown.extensions = {}; + +/** + * Set a global option + * @static + * @param {string} key + * @param {*} value + * @returns {showdown} + */ +showdown.setOption = function (key, value) { + 'use strict'; + globalOptions[key] = value; + return this; +}; + +/** + * Get a global option + * @static + * @param {string} key + * @returns {*} + */ +showdown.getOption = function (key) { + 'use strict'; + return globalOptions[key]; +}; + +/** + * Get the global options + * @static + * @returns {{}} + */ +showdown.getOptions = function () { + 'use strict'; + return globalOptions; +}; + +/** + * Reset global options to the default values + * @static + */ +showdown.resetOptions = function () { + 'use strict'; + globalOptions = getDefaultOpts(true); +}; + +/** + * Set the flavor showdown should use as default + * @param {string} name + */ +showdown.setFlavor = function (name) { + 'use strict'; + if (flavor.hasOwnProperty(name)) { + var preset = flavor[name]; + for (var option in preset) { + if (preset.hasOwnProperty(option)) { + globalOptions[option] = preset[option]; + } + } + } +}; + +/** + * Get the default options + * @static + * @param {boolean} [simple=true] + * @returns {{}} + */ +showdown.getDefaultOptions = function (simple) { + 'use strict'; + return getDefaultOpts(simple); +}; + +/** + * Get or set a subParser + * + * subParser(name) - Get a registered subParser + * subParser(name, func) - Register a subParser + * @static + * @param {string} name + * @param {function} [func] + * @returns {*} + */ +showdown.subParser = function (name, func) { + 'use strict'; + if (showdown.helper.isString(name)) { + if (typeof func !== 'undefined') { + parsers[name] = func; + } else { + if (parsers.hasOwnProperty(name)) { + return parsers[name]; + } else { + throw Error('SubParser named ' + name + ' not registered!'); + } + } + } +}; + +/** + * Gets or registers an extension + * @static + * @param {string} name + * @param {object|function=} ext + * @returns {*} + */ +showdown.extension = function (name, ext) { + 'use strict'; + + if (!showdown.helper.isString(name)) { + throw Error('Extension \'name\' must be a string'); + } + + name = showdown.helper.stdExtName(name); + + // Getter + if (showdown.helper.isUndefined(ext)) { + if (!extensions.hasOwnProperty(name)) { + throw Error('Extension named ' + name + ' is not registered!'); + } + return extensions[name]; + + // Setter + } else { + // Expand extension if it's wrapped in a function + if (typeof ext === 'function') { + ext = ext(); + } + + // Ensure extension is an array + if (!showdown.helper.isArray(ext)) { + ext = [ext]; + } + + var validExtension = validate(ext, name); + + if (validExtension.valid) { + extensions[name] = ext; + } else { + throw Error(validExtension.error); + } + } +}; + +/** + * Gets all extensions registered + * @returns {{}} + */ +showdown.getAllExtensions = function () { + 'use strict'; + return extensions; +}; + +/** + * Remove an extension + * @param {string} name + */ +showdown.removeExtension = function (name) { + 'use strict'; + delete extensions[name]; +}; + +/** + * Removes all extensions + */ +showdown.resetExtensions = function () { + 'use strict'; + extensions = {}; +}; + +/** + * Validate extension + * @param {array} extension + * @param {string} name + * @returns {{valid: boolean, error: string}} + */ +function validate(extension, name) { + 'use strict'; + + var errMsg = (name) ? 'Error in ' + name + ' extension->' : 'Error in unnamed extension', + ret = { + valid: true, + error: '' + }; + + if (!showdown.helper.isArray(extension)) { + extension = [extension]; + } + + for (var i = 0; i < extension.length; ++i) { + var baseMsg = errMsg + ' sub-extension ' + i + ': ', + ext = extension[i]; + if (typeof ext !== 'object') { + ret.valid = false; + ret.error = baseMsg + 'must be an object, but ' + typeof ext + ' given'; + return ret; + } + + if (!showdown.helper.isString(ext.type)) { + ret.valid = false; + ret.error = baseMsg + 'property "type" must be a string, but ' + typeof ext.type + ' given'; + return ret; + } + + var type = ext.type = ext.type.toLowerCase(); + + // normalize extension type + if (type === 'language') { + type = ext.type = 'lang'; + } + + if (type === 'html') { + type = ext.type = 'output'; + } + + if (type !== 'lang' && type !== 'output' && type !== 'listener') { + ret.valid = false; + ret.error = baseMsg + 'type ' + type + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"'; + return ret; + } + + if (type === 'listener') { + if (showdown.helper.isUndefined(ext.listeners)) { + ret.valid = false; + ret.error = baseMsg + '. Extensions of type "listener" must have a property called "listeners"'; + return ret; + } + } else { + if (showdown.helper.isUndefined(ext.filter) && showdown.helper.isUndefined(ext.regex)) { + ret.valid = false; + ret.error = baseMsg + type + ' extensions must define either a "regex" property or a "filter" method'; + return ret; + } + } + + if (ext.listeners) { + if (typeof ext.listeners !== 'object') { + ret.valid = false; + ret.error = baseMsg + '"listeners" property must be an object but ' + typeof ext.listeners + ' given'; + return ret; + } + for (var ln in ext.listeners) { + if (ext.listeners.hasOwnProperty(ln)) { + if (typeof ext.listeners[ln] !== 'function') { + ret.valid = false; + ret.error = baseMsg + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + ln + + ' must be a function but ' + typeof ext.listeners[ln] + ' given'; + return ret; + } + } + } + } + + if (ext.filter) { + if (typeof ext.filter !== 'function') { + ret.valid = false; + ret.error = baseMsg + '"filter" must be a function, but ' + typeof ext.filter + ' given'; + return ret; + } + } else if (ext.regex) { + if (showdown.helper.isString(ext.regex)) { + ext.regex = new RegExp(ext.regex, 'g'); + } + if (!ext.regex instanceof RegExp) { + ret.valid = false; + ret.error = baseMsg + '"regex" property must either be a string or a RegExp object, but ' + typeof ext.regex + ' given'; + return ret; + } + if (showdown.helper.isUndefined(ext.replace)) { + ret.valid = false; + ret.error = baseMsg + '"regex" extensions must implement a replace string or function'; + return ret; + } + } + } + return ret; +} + +/** + * Validate extension + * @param {object} ext + * @returns {boolean} + */ +showdown.validateExtension = function (ext) { + 'use strict'; + + var validateExtension = validate(ext, null); + if (!validateExtension.valid) { + console.warn(validateExtension.error); + return false; + } + return true; +}; + +/** + * showdownjs helper functions + */ + +if (!showdown.hasOwnProperty('helper')) { + showdown.helper = {}; +} + +/** + * Check if var is string + * @static + * @param {string} a + * @returns {boolean} + */ +showdown.helper.isString = function isString(a) { + 'use strict'; + return (typeof a === 'string' || a instanceof String); +}; + +/** + * Check if var is a function + * @static + * @param {string} a + * @returns {boolean} + */ +showdown.helper.isFunction = function isFunction(a) { + 'use strict'; + var getType = {}; + return a && getType.toString.call(a) === '[object Function]'; +}; + +/** + * ForEach helper function + * @static + * @param {*} obj + * @param {function} callback + */ +showdown.helper.forEach = function forEach(obj, callback) { + 'use strict'; + if (typeof obj.forEach === 'function') { + obj.forEach(callback); + } else { + for (var i = 0; i < obj.length; i++) { + callback(obj[i], i, obj); + } + } +}; + +/** + * isArray helper function + * @static + * @param {*} a + * @returns {boolean} + */ +showdown.helper.isArray = function isArray(a) { + 'use strict'; + return a.constructor === Array; +}; + +/** + * Check if value is undefined + * @static + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + */ +showdown.helper.isUndefined = function isUndefined(value) { + 'use strict'; + return typeof value === 'undefined'; +}; + +/** + * Standardidize extension name + * @static + * @param {string} s extension name + * @returns {string} + */ +showdown.helper.stdExtName = function (s) { + 'use strict'; + return s.replace(/[_-]||\s/g, '').toLowerCase(); +}; + +function escapeCharactersCallback(wholeMatch, m1) { + 'use strict'; + var charCodeToEscape = m1.charCodeAt(0); + return '~E' + charCodeToEscape + 'E'; +} + +/** + * Callback used to escape characters when passing through String.replace + * @static + * @param {string} wholeMatch + * @param {string} m1 + * @returns {string} + */ +showdown.helper.escapeCharactersCallback = escapeCharactersCallback; + +/** + * Escape characters in a string + * @static + * @param {string} text + * @param {string} charsToEscape + * @param {boolean} afterBackslash + * @returns {XML|string|void|*} + */ +showdown.helper.escapeCharacters = function escapeCharacters(text, charsToEscape, afterBackslash) { + 'use strict'; + // First we have to escape the escape characters so that + // we can build a character class out of them + var regexString = '([' + charsToEscape.replace(/([\[\]\\])/g, '\\$1') + '])'; + + if (afterBackslash) { + regexString = '\\\\' + regexString; + } + + var regex = new RegExp(regexString, 'g'); + text = text.replace(regex, escapeCharactersCallback); + + return text; +}; + +var rgxFindMatchPos = function (str, left, right, flags) { + 'use strict'; + var f = flags || '', + g = f.indexOf('g') > -1, + x = new RegExp(left + '|' + right, 'g' + f.replace(/g/g, '')), + l = new RegExp(left, f.replace(/g/g, '')), + pos = [], + t, s, m, start, end; + + do { + t = 0; + while ((m = x.exec(str))) { + if (l.test(m[0])) { + if (!(t++)) { + s = x.lastIndex; + start = s - m[0].length; + } + } else if (t) { + if (!--t) { + end = m.index + m[0].length; + var obj = { + left: {start: start, end: s}, + match: {start: s, end: m.index}, + right: {start: m.index, end: end}, + wholeMatch: {start: start, end: end} + }; + pos.push(obj); + if (!g) { + return pos; + } + } + } + } + } while (t && (x.lastIndex = s)); + + return pos; +}; + +/** + * matchRecursiveRegExp + * + * (c) 2007 Steven Levithan + * MIT License + * + * Accepts a string to search, a left and right format delimiter + * as regex patterns, and optional regex flags. Returns an array + * of matches, allowing nested instances of left/right delimiters. + * Use the "g" flag to return all matches, otherwise only the + * first is returned. Be careful to ensure that the left and + * right format delimiters produce mutually exclusive matches. + * Backreferences are not supported within the right delimiter + * due to how it is internally combined with the left delimiter. + * When matching strings whose format delimiters are unbalanced + * to the left or right, the output is intentionally as a + * conventional regex library with recursion support would + * produce, e.g. "<" and ">" both produce ["x"] when using + * "<" and ">" as the delimiters (both strings contain a single, + * balanced instance of ""). + * + * examples: + * matchRecursiveRegExp("test", "\\(", "\\)") + * returns: [] + * matchRecursiveRegExp(">>t<>", "<", ">", "g") + * returns: ["t<>", ""] + * matchRecursiveRegExp("
    test
    ", "]*>", "", "gi") + * returns: ["test"] + */ +showdown.helper.matchRecursiveRegExp = function (str, left, right, flags) { + 'use strict'; + + var matchPos = rgxFindMatchPos (str, left, right, flags), + results = []; + + for (var i = 0; i < matchPos.length; ++i) { + results.push([ + str.slice(matchPos[i].wholeMatch.start, matchPos[i].wholeMatch.end), + str.slice(matchPos[i].match.start, matchPos[i].match.end), + str.slice(matchPos[i].left.start, matchPos[i].left.end), + str.slice(matchPos[i].right.start, matchPos[i].right.end) + ]); + } + return results; +}; + +/** + * + * @param {string} str + * @param {string|function} replacement + * @param {string} left + * @param {string} right + * @param {string} flags + * @returns {string} + */ +showdown.helper.replaceRecursiveRegExp = function (str, replacement, left, right, flags) { + 'use strict'; + + if (!showdown.helper.isFunction(replacement)) { + var repStr = replacement; + replacement = function () { + return repStr; + }; + } + + var matchPos = rgxFindMatchPos(str, left, right, flags), + finalStr = str, + lng = matchPos.length; + + if (lng > 0) { + var bits = []; + if (matchPos[0].wholeMatch.start !== 0) { + bits.push(str.slice(0, matchPos[0].wholeMatch.start)); + } + for (var i = 0; i < lng; ++i) { + bits.push( + replacement( + str.slice(matchPos[i].wholeMatch.start, matchPos[i].wholeMatch.end), + str.slice(matchPos[i].match.start, matchPos[i].match.end), + str.slice(matchPos[i].left.start, matchPos[i].left.end), + str.slice(matchPos[i].right.start, matchPos[i].right.end) + ) + ); + if (i < lng - 1) { + bits.push(str.slice(matchPos[i].wholeMatch.end, matchPos[i + 1].wholeMatch.start)); + } + } + if (matchPos[lng - 1].wholeMatch.end < str.length) { + bits.push(str.slice(matchPos[lng - 1].wholeMatch.end)); + } + finalStr = bits.join(''); + } + return finalStr; +}; + +/** + * POLYFILLS + */ +if (showdown.helper.isUndefined(console)) { + console = { + warn: function (msg) { + 'use strict'; + alert(msg); + }, + log: function (msg) { + 'use strict'; + alert(msg); + }, + error: function (msg) { + 'use strict'; + throw msg; + } + }; +} + +/** + * Created by Estevao on 31-05-2015. + */ + +/** + * Showdown Converter class + * @class + * @param {object} [converterOptions] + * @returns {Converter} + */ +showdown.Converter = function (converterOptions) { + 'use strict'; + + var + /** + * Options used by this converter + * @private + * @type {{}} + */ + options = {}, + + /** + * Language extensions used by this converter + * @private + * @type {Array} + */ + langExtensions = [], + + /** + * Output modifiers extensions used by this converter + * @private + * @type {Array} + */ + outputModifiers = [], + + /** + * Event listeners + * @private + * @type {{}} + */ + listeners = {}; + + _constructor(); + + /** + * Converter constructor + * @private + */ + function _constructor() { + converterOptions = converterOptions || {}; + + for (var gOpt in globalOptions) { + if (globalOptions.hasOwnProperty(gOpt)) { + options[gOpt] = globalOptions[gOpt]; + } + } + + // Merge options + if (typeof converterOptions === 'object') { + for (var opt in converterOptions) { + if (converterOptions.hasOwnProperty(opt)) { + options[opt] = converterOptions[opt]; + } + } + } else { + throw Error('Converter expects the passed parameter to be an object, but ' + typeof converterOptions + + ' was passed instead.'); + } + + if (options.extensions) { + showdown.helper.forEach(options.extensions, _parseExtension); + } + } + + /** + * Parse extension + * @param {*} ext + * @param {string} [name=''] + * @private + */ + function _parseExtension(ext, name) { + + name = name || null; + // If it's a string, the extension was previously loaded + if (showdown.helper.isString(ext)) { + ext = showdown.helper.stdExtName(ext); + name = ext; + + // LEGACY_SUPPORT CODE + if (showdown.extensions[ext]) { + console.warn('DEPRECATION WARNING: ' + ext + ' is an old extension that uses a deprecated loading method.' + + 'Please inform the developer that the extension should be updated!'); + legacyExtensionLoading(showdown.extensions[ext], ext); + return; + // END LEGACY SUPPORT CODE + + } else if (!showdown.helper.isUndefined(extensions[ext])) { + ext = extensions[ext]; + + } else { + throw Error('Extension "' + ext + '" could not be loaded. It was either not found or is not a valid extension.'); + } + } + + if (typeof ext === 'function') { + ext = ext(); + } + + if (!showdown.helper.isArray(ext)) { + ext = [ext]; + } + + var validExt = validate(ext, name); + if (!validExt.valid) { + throw Error(validExt.error); + } + + for (var i = 0; i < ext.length; ++i) { + switch (ext[i].type) { + + case 'lang': + langExtensions.push(ext[i]); + break; + + case 'output': + outputModifiers.push(ext[i]); + break; + } + if (ext[i].hasOwnProperty(listeners)) { + for (var ln in ext[i].listeners) { + if (ext[i].listeners.hasOwnProperty(ln)) { + listen(ln, ext[i].listeners[ln]); + } + } + } + } + + } + + /** + * LEGACY_SUPPORT + * @param {*} ext + * @param {string} name + */ + function legacyExtensionLoading(ext, name) { + if (typeof ext === 'function') { + ext = ext(new showdown.Converter()); + } + if (!showdown.helper.isArray(ext)) { + ext = [ext]; + } + var valid = validate(ext, name); + + if (!valid.valid) { + throw Error(valid.error); + } + + for (var i = 0; i < ext.length; ++i) { + switch (ext[i].type) { + case 'lang': + langExtensions.push(ext[i]); + break; + case 'output': + outputModifiers.push(ext[i]); + break; + default:// should never reach here + throw Error('Extension loader error: Type unrecognized!!!'); + } + } + } + + /** + * Listen to an event + * @param {string} name + * @param {function} callback + */ + function listen(name, callback) { + if (!showdown.helper.isString(name)) { + throw Error('Invalid argument in converter.listen() method: name must be a string, but ' + typeof name + ' given'); + } + + if (typeof callback !== 'function') { + throw Error('Invalid argument in converter.listen() method: callback must be a function, but ' + typeof callback + ' given'); + } + + if (!listeners.hasOwnProperty(name)) { + listeners[name] = []; + } + listeners[name].push(callback); + } + + function rTrimInputText(text) { + var rsp = text.match(/^\s*/)[0].length, + rgx = new RegExp('^\\s{0,' + rsp + '}', 'gm'); + return text.replace(rgx, ''); + } + + /** + * Dispatch an event + * @private + * @param {string} evtName Event name + * @param {string} text Text + * @param {{}} options Converter Options + * @param {{}} globals + * @returns {string} + */ + this._dispatch = function dispatch (evtName, text, options, globals) { + if (listeners.hasOwnProperty(evtName)) { + for (var ei = 0; ei < listeners[evtName].length; ++ei) { + var nText = listeners[evtName][ei](evtName, text, this, options, globals); + if (nText && typeof nText !== 'undefined') { + text = nText; + } + } + } + return text; + }; + + /** + * Listen to an event + * @param {string} name + * @param {function} callback + * @returns {showdown.Converter} + */ + this.listen = function (name, callback) { + listen(name, callback); + return this; + }; + + /** + * Converts a markdown string into HTML + * @param {string} text + * @returns {*} + */ + this.makeHtml = function (text) { + //check if text is not falsy + if (!text) { + return text; + } + + var globals = { + gHtmlBlocks: [], + gHtmlMdBlocks: [], + gHtmlSpans: [], + gUrls: {}, + gTitles: {}, + gDimensions: {}, + gListLevel: 0, + hashLinkCounts: {}, + langExtensions: langExtensions, + outputModifiers: outputModifiers, + converter: this, + ghCodeBlocks: [] + }; + + // attacklab: Replace ~ with ~T + // This lets us use tilde as an escape char to avoid md5 hashes + // The choice of character is arbitrary; anything that isn't + // magic in Markdown will work. + text = text.replace(/~/g, '~T'); + + // attacklab: Replace $ with ~D + // RegExp interprets $ as a special character + // when it's in a replacement string + text = text.replace(/\$/g, '~D'); + + // Standardize line endings + text = text.replace(/\r\n/g, '\n'); // DOS to Unix + text = text.replace(/\r/g, '\n'); // Mac to Unix + + if (options.smartIndentationFix) { + text = rTrimInputText(text); + } + + // Make sure text begins and ends with a couple of newlines: + //text = '\n\n' + text + '\n\n'; + text = text; + // detab + text = showdown.subParser('detab')(text, options, globals); + + // stripBlankLines + text = showdown.subParser('stripBlankLines')(text, options, globals); + + //run languageExtensions + showdown.helper.forEach(langExtensions, function (ext) { + text = showdown.subParser('runExtension')(ext, text, options, globals); + }); + + // run the sub parsers + text = showdown.subParser('hashPreCodeTags')(text, options, globals); + text = showdown.subParser('githubCodeBlocks')(text, options, globals); + text = showdown.subParser('hashHTMLBlocks')(text, options, globals); + text = showdown.subParser('hashHTMLSpans')(text, options, globals); + text = showdown.subParser('stripLinkDefinitions')(text, options, globals); + text = showdown.subParser('blockGamut')(text, options, globals); + text = showdown.subParser('unhashHTMLSpans')(text, options, globals); + text = showdown.subParser('unescapeSpecialChars')(text, options, globals); + + // attacklab: Restore dollar signs + text = text.replace(/~D/g, '$$'); + + // attacklab: Restore tildes + text = text.replace(/~T/g, '~'); + + // Run output modifiers + showdown.helper.forEach(outputModifiers, function (ext) { + text = showdown.subParser('runExtension')(ext, text, options, globals); + }); + return text; + }; + + /** + * Set an option of this Converter instance + * @param {string} key + * @param {*} value + */ + this.setOption = function (key, value) { + options[key] = value; + }; + + /** + * Get the option of this Converter instance + * @param {string} key + * @returns {*} + */ + this.getOption = function (key) { + return options[key]; + }; + + /** + * Get the options of this Converter instance + * @returns {{}} + */ + this.getOptions = function () { + return options; + }; + + /** + * Add extension to THIS converter + * @param {{}} extension + * @param {string} [name=null] + */ + this.addExtension = function (extension, name) { + name = name || null; + _parseExtension(extension, name); + }; + + /** + * Use a global registered extension with THIS converter + * @param {string} extensionName Name of the previously registered extension + */ + this.useExtension = function (extensionName) { + _parseExtension(extensionName); + }; + + /** + * Set the flavor THIS converter should use + * @param {string} name + */ + this.setFlavor = function (name) { + if (flavor.hasOwnProperty(name)) { + var preset = flavor[name]; + for (var option in preset) { + if (preset.hasOwnProperty(option)) { + options[option] = preset[option]; + } + } + } + }; + + /** + * Remove an extension from THIS converter. + * Note: This is a costly operation. It's better to initialize a new converter + * and specify the extensions you wish to use + * @param {Array} extension + */ + this.removeExtension = function (extension) { + if (!showdown.helper.isArray(extension)) { + extension = [extension]; + } + for (var a = 0; a < extension.length; ++a) { + var ext = extension[a]; + for (var i = 0; i < langExtensions.length; ++i) { + if (langExtensions[i] === ext) { + langExtensions[i].splice(i, 1); + } + } + for (var ii = 0; ii < outputModifiers.length; ++i) { + if (outputModifiers[ii] === ext) { + outputModifiers[ii].splice(i, 1); + } + } + } + }; + + /** + * Get all extension of THIS converter + * @returns {{language: Array, output: Array}} + */ + this.getAllExtensions = function () { + return { + language: langExtensions, + output: outputModifiers + }; + }; +}; + +/** + * Turn Markdown link shortcuts into XHTML tags. + */ +showdown.subParser('anchors', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('anchors.before', text, options, globals); + + var writeAnchorTag = function (wholeMatch, m1, m2, m3, m4, m5, m6, m7) { + if (showdown.helper.isUndefined(m7)) { + m7 = ''; + } + wholeMatch = m1; + var linkText = m2, + linkId = m3.toLowerCase(), + url = m4, + title = m7; + + if (!url) { + if (!linkId) { + // lower-case and turn embedded newlines into spaces + linkId = linkText.toLowerCase().replace(/ ?\n/g, ' '); + } + url = '#' + linkId; + + if (!showdown.helper.isUndefined(globals.gUrls[linkId])) { + url = globals.gUrls[linkId]; + if (!showdown.helper.isUndefined(globals.gTitles[linkId])) { + title = globals.gTitles[linkId]; + } + } else { + if (wholeMatch.search(/\(\s*\)$/m) > -1) { + // Special case for explicit empty url + url = ''; + } else { + return wholeMatch; + } + } + } + + url = showdown.helper.escapeCharacters(url, '*_', false); + var result = ''; + + return result; + }; + + // First, handle reference-style links: [link text] [id] + /* + text = text.replace(/ + ( // wrap whole match in $1 + \[ + ( + (?: + \[[^\]]*\] // allow brackets nested one level + | + [^\[] // or anything else + )* + ) + \] + + [ ]? // one optional space + (?:\n[ ]*)? // one optional newline followed by spaces + + \[ + (.*?) // id = $3 + \] + )()()()() // pad remaining backreferences + /g,_DoAnchors_callback); + */ + text = text.replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g, writeAnchorTag); + + // + // Next, inline-style links: [link text](url "optional title") + // + + /* + text = text.replace(/ + ( // wrap whole match in $1 + \[ + ( + (?: + \[[^\]]*\] // allow brackets nested one level + | + [^\[\]] // or anything else + ) + ) + \] + \( // literal paren + [ \t]* + () // no id, so leave $3 empty + ? // href = $4 + [ \t]* + ( // $5 + (['"]) // quote char = $6 + (.*?) // Title = $7 + \6 // matching quote + [ \t]* // ignore any spaces/tabs between closing quote and ) + )? // title is optional + \) + ) + /g,writeAnchorTag); + */ + text = text.replace(/(\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g, + writeAnchorTag); + + // + // Last, handle reference-style shortcuts: [link text] + // These must come last in case you've also got [link test][1] + // or [link test](/foo) + // + + /* + text = text.replace(/ + ( // wrap whole match in $1 + \[ + ([^\[\]]+) // link text = $2; can't contain '[' or ']' + \] + )()()()()() // pad rest of backreferences + /g, writeAnchorTag); + */ + text = text.replace(/(\[([^\[\]]+)])()()()()()/g, writeAnchorTag); + + text = globals.converter._dispatch('anchors.after', text, options, globals); + return text; +}); + +showdown.subParser('autoLinks', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('autoLinks.before', text, options, globals); + + var simpleURLRegex = /\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/gi, + delimUrlRegex = /<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi, + simpleMailRegex = /(?:^|[ \n\t])([A-Za-z0-9!#$%&'*+-/=?^_`\{|}~\.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?:$|[ \n\t])/gi, + delimMailRegex = /<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi; + + text = text.replace(delimUrlRegex, replaceLink); + text = text.replace(delimMailRegex, replaceMail); + // simpleURLRegex = /\b(((https?|ftp|dict):\/\/|www\.)[-.+~:?#@!$&'()*,;=[\]\w]+)\b/gi, + // Email addresses: + + if (options.simplifiedAutoLink) { + text = text.replace(simpleURLRegex, replaceLink); + text = text.replace(simpleMailRegex, replaceMail); + } + + function replaceLink(wm, link) { + var lnkTxt = link; + if (/^www\./i.test(link)) { + link = link.replace(/^www\./i, 'http://www.'); + } + return '' + lnkTxt + ''; + } + + function replaceMail(wholeMatch, m1) { + var unescapedStr = showdown.subParser('unescapeSpecialChars')(m1); + return showdown.subParser('encodeEmailAddress')(unescapedStr); + } + + text = globals.converter._dispatch('autoLinks.after', text, options, globals); + + return text; +}); + +/** + * These are all the transformations that form block-level + * tags like paragraphs, headers, and list items. + */ +showdown.subParser('blockGamut', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('blockGamut.before', text, options, globals); + + // we parse blockquotes first so that we can have headings and hrs + // inside blockquotes + text = showdown.subParser('blockQuotes')(text, options, globals); + text = showdown.subParser('headers')(text, options, globals); + + // Do Horizontal Rules: + var key = showdown.subParser('hashBlock')('
    ', options, globals); + text = text.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm, key); + text = text.replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm, key); + text = text.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm, key); + + text = showdown.subParser('lists')(text, options, globals); + text = showdown.subParser('codeBlocks')(text, options, globals); + text = showdown.subParser('tables')(text, options, globals); + + // We already ran _HashHTMLBlocks() before, in Markdown(), but that + // was to escape raw HTML in the original Markdown source. This time, + // we're escaping the markup we've just created, so that we don't wrap + //

    tags around block-level tags. + text = showdown.subParser('hashHTMLBlocks')(text, options, globals); + text = showdown.subParser('paragraphs')(text, options, globals); + + text = globals.converter._dispatch('blockGamut.after', text, options, globals); + + return text; +}); + +showdown.subParser('blockQuotes', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('blockQuotes.before', text, options, globals); + /* + text = text.replace(/ + ( // Wrap whole match in $1 + ( + ^[ \t]*>[ \t]? // '>' at the start of a line + .+\n // rest of the first line + (.+\n)* // subsequent consecutive lines + \n* // blanks + )+ + ) + /gm, function(){...}); + */ + + text = text.replace(/((^[ \t]{0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm, function (wholeMatch, m1) { + var bq = m1; + + // attacklab: hack around Konqueror 3.5.4 bug: + // "----------bug".replace(/^-/g,"") == "bug" + bq = bq.replace(/^[ \t]*>[ \t]?/gm, '~0'); // trim one level of quoting + + // attacklab: clean up hack + bq = bq.replace(/~0/g, ''); + + bq = bq.replace(/^[ \t]+$/gm, ''); // trim whitespace-only lines + bq = showdown.subParser('githubCodeBlocks')(bq, options, globals); + bq = showdown.subParser('blockGamut')(bq, options, globals); // recurse + + bq = bq.replace(/(^|\n)/g, '$1 '); + // These leading spaces screw with

     content, so we need to fix that:
    +    bq = bq.replace(/(\s*
    [^\r]+?<\/pre>)/gm, function (wholeMatch, m1) {
    +      var pre = m1;
    +      // attacklab: hack around Konqueror 3.5.4 bug:
    +      pre = pre.replace(/^  /mg, '~0');
    +      pre = pre.replace(/~0/g, '');
    +      return pre;
    +    });
    +
    +    return showdown.subParser('hashBlock')('
    \n' + bq + '\n
    ', options, globals); + }); + + text = globals.converter._dispatch('blockQuotes.after', text, options, globals); + return text; +}); + +/** + * Process Markdown `
    ` blocks.
    + */
    +showdown.subParser('codeBlocks', function (text, options, globals) {
    +  'use strict';
    +
    +  text = globals.converter._dispatch('codeBlocks.before', text, options, globals);
    +  /*
    +   text = text.replace(text,
    +   /(?:\n\n|^)
    +   (								// $1 = the code block -- one or more lines, starting with a space/tab
    +   (?:
    +   (?:[ ]{4}|\t)			// Lines must start with a tab or a tab-width of spaces - attacklab: g_tab_width
    +   .*\n+
    +   )+
    +   )
    +   (\n*[ ]{0,3}[^ \t\n]|(?=~0))	// attacklab: g_tab_width
    +   /g,function(){...});
    +   */
    +
    +  // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
    +  text += '~0';
    +
    +  var pattern = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g;
    +  text = text.replace(pattern, function (wholeMatch, m1, m2) {
    +    var codeblock = m1,
    +        nextChar = m2,
    +        end = '\n';
    +
    +    codeblock = showdown.subParser('outdent')(codeblock);
    +    codeblock = showdown.subParser('encodeCode')(codeblock);
    +    codeblock = showdown.subParser('detab')(codeblock);
    +    codeblock = codeblock.replace(/^\n+/g, ''); // trim leading newlines
    +    codeblock = codeblock.replace(/\n+$/g, ''); // trim trailing newlines
    +
    +    if (options.omitExtraWLInCodeBlocks) {
    +      end = '';
    +    }
    +
    +    codeblock = '
    ' + codeblock + end + '
    '; + + return showdown.subParser('hashBlock')(codeblock, options, globals) + nextChar; + }); + + // attacklab: strip sentinel + text = text.replace(/~0/, ''); + + text = globals.converter._dispatch('codeBlocks.after', text, options, globals); + return text; +}); + +/** + * + * * Backtick quotes are used for spans. + * + * * You can use multiple backticks as the delimiters if you want to + * include literal backticks in the code span. So, this input: + * + * Just type ``foo `bar` baz`` at the prompt. + * + * Will translate to: + * + *

    Just type foo `bar` baz at the prompt.

    + * + * There's no arbitrary limit to the number of backticks you + * can use as delimters. If you need three consecutive backticks + * in your code, use four for delimiters, etc. + * + * * You can use spaces to get literal backticks at the edges: + * + * ... type `` `bar` `` ... + * + * Turns to: + * + * ... type `bar` ... + */ +showdown.subParser('codeSpans', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('codeSpans.before', text, options, globals); + + /* + text = text.replace(/ + (^|[^\\]) // Character before opening ` can't be a backslash + (`+) // $2 = Opening run of ` + ( // $3 = The code block + [^\r]*? + [^`] // attacklab: work around lack of lookbehind + ) + \2 // Matching closer + (?!`) + /gm, function(){...}); + */ + + if (typeof(text) === 'undefined') { + text = ''; + } + text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, + function (wholeMatch, m1, m2, m3) { + var c = m3; + c = c.replace(/^([ \t]*)/g, ''); // leading whitespace + c = c.replace(/[ \t]*$/g, ''); // trailing whitespace + c = showdown.subParser('encodeCode')(c); + return m1 + '' + c + ''; + } + ); + + text = globals.converter._dispatch('codeSpans.after', text, options, globals); + return text; +}); + +/** + * Convert all tabs to spaces + */ +showdown.subParser('detab', function (text) { + 'use strict'; + + // expand first n-1 tabs + text = text.replace(/\t(?=\t)/g, ' '); // g_tab_width + + // replace the nth with two sentinels + text = text.replace(/\t/g, '~A~B'); + + // use the sentinel to anchor our regex so it doesn't explode + text = text.replace(/~B(.+?)~A/g, function (wholeMatch, m1) { + var leadingText = m1, + numSpaces = 4 - leadingText.length % 4; // g_tab_width + + // there *must* be a better way to do this: + for (var i = 0; i < numSpaces; i++) { + leadingText += ' '; + } + + return leadingText; + }); + + // clean up sentinels + text = text.replace(/~A/g, ' '); // g_tab_width + text = text.replace(/~B/g, ''); + + return text; + +}); + +/** + * Smart processing for ampersands and angle brackets that need to be encoded. + */ +showdown.subParser('encodeAmpsAndAngles', function (text) { + 'use strict'; + // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin: + // http://bumppo.net/projects/amputator/ + text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, '&'); + + // Encode naked <'s + text = text.replace(/<(?![a-z\/?\$!])/gi, '<'); + + return text; +}); + +/** + * Returns the string, with after processing the following backslash escape sequences. + * + * attacklab: The polite way to do this is with the new escapeCharacters() function: + * + * text = escapeCharacters(text,"\\",true); + * text = escapeCharacters(text,"`*_{}[]()>#+-.!",true); + * + * ...but we're sidestepping its use of the (slow) RegExp constructor + * as an optimization for Firefox. This function gets called a LOT. + */ +showdown.subParser('encodeBackslashEscapes', function (text) { + 'use strict'; + text = text.replace(/\\(\\)/g, showdown.helper.escapeCharactersCallback); + text = text.replace(/\\([`*_{}\[\]()>#+-.!])/g, showdown.helper.escapeCharactersCallback); + return text; +}); + +/** + * Encode/escape certain characters inside Markdown code runs. + * The point is that in code, these characters are literals, + * and lose their special Markdown meanings. + */ +showdown.subParser('encodeCode', function (text) { + 'use strict'; + + // Encode all ampersands; HTML entities are not + // entities within a Markdown code span. + text = text.replace(/&/g, '&'); + + // Do the angle bracket song and dance: + text = text.replace(//g, '>'); + + // Now, escape characters that are magic in Markdown: + text = showdown.helper.escapeCharacters(text, '*_{}[]\\', false); + + // jj the line above breaks this: + //--- + //* Item + // 1. Subitem + // special char: * + // --- + + return text; +}); + +/** + * Input: an email address, e.g. "foo@example.com" + * + * Output: the email address as a mailto link, with each character + * of the address encoded as either a decimal or hex entity, in + * the hopes of foiling most address harvesting spam bots. E.g.: + * + * foo + * @example.com + * + * Based on a filter by Matthew Wickline, posted to the BBEdit-Talk + * mailing list: + * + */ +showdown.subParser('encodeEmailAddress', function (addr) { + 'use strict'; + + var encode = [ + function (ch) { + return '&#' + ch.charCodeAt(0) + ';'; + }, + function (ch) { + return '&#x' + ch.charCodeAt(0).toString(16) + ';'; + }, + function (ch) { + return ch; + } + ]; + + addr = 'mailto:' + addr; + + addr = addr.replace(/./g, function (ch) { + if (ch === '@') { + // this *must* be encoded. I insist. + ch = encode[Math.floor(Math.random() * 2)](ch); + } else if (ch !== ':') { + // leave ':' alone (to spot mailto: later) + var r = Math.random(); + // roughly 10% raw, 45% hex, 45% dec + ch = ( + r > 0.9 ? encode[2](ch) : r > 0.45 ? encode[1](ch) : encode[0](ch) + ); + } + return ch; + }); + + addr = '' + addr + ''; + addr = addr.replace(/">.+:/g, '">'); // strip the mailto: from the visible part + + return addr; +}); + +/** + * Within tags -- meaning between < and > -- encode [\ ` * _] so they + * don't conflict with their use in Markdown for code, italics and strong. + */ +showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text) { + 'use strict'; + + // Build a regex to find HTML tags and comments. See Friedl's + // "Mastering Regular Expressions", 2nd Ed., pp. 200-201. + var regex = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi; + + text = text.replace(regex, function (wholeMatch) { + var tag = wholeMatch.replace(/(.)<\/?code>(?=.)/g, '$1`'); + tag = showdown.helper.escapeCharacters(tag, '\\`*_', false); + return tag; + }); + + return text; +}); + +/** + * Handle github codeblocks prior to running HashHTML so that + * HTML contained within the codeblock gets escaped properly + * Example: + * ```ruby + * def hello_world(x) + * puts "Hello, #{x}" + * end + * ``` + */ +showdown.subParser('githubCodeBlocks', function (text, options, globals) { + 'use strict'; + + // early exit if option is not enabled + if (!options.ghCodeBlocks) { + return text; + } + + text = globals.converter._dispatch('githubCodeBlocks.before', text, options, globals); + + text += '~0'; + + text = text.replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g, function (wholeMatch, language, codeblock) { + var end = (options.omitExtraWLInCodeBlocks) ? '' : '\n'; + + // First parse the github code block + codeblock = showdown.subParser('encodeCode')(codeblock); + codeblock = showdown.subParser('detab')(codeblock); + codeblock = codeblock.replace(/^\n+/g, ''); // trim leading newlines + codeblock = codeblock.replace(/\n+$/g, ''); // trim trailing whitespace + + codeblock = '
    ' + codeblock + end + '
    '; + + codeblock = showdown.subParser('hashBlock')(codeblock, options, globals); + + // Since GHCodeblocks can be false positives, we need to + // store the primitive text and the parsed text in a global var, + // and then return a token + return '\n\n~G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n'; + }); + + // attacklab: strip sentinel + text = text.replace(/~0/, ''); + + return globals.converter._dispatch('githubCodeBlocks.after', text, options, globals); +}); + +showdown.subParser('hashBlock', function (text, options, globals) { + 'use strict'; + text = text.replace(/(^\n+|\n+$)/g, ''); + return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n'; +}); + +showdown.subParser('hashElement', function (text, options, globals) { + 'use strict'; + + return function (wholeMatch, m1) { + var blockText = m1; + + // Undo double lines + blockText = blockText.replace(/\n\n/g, '\n'); + blockText = blockText.replace(/^\n/, ''); + + // strip trailing blank lines + blockText = blockText.replace(/\n+$/g, ''); + + // Replace the element text with a marker ("~KxK" where x is its key) + blockText = '\n\n~K' + (globals.gHtmlBlocks.push(blockText) - 1) + 'K\n\n'; + + return blockText; + }; +}); + +showdown.subParser('hashHTMLBlocks', function (text, options, globals) { + 'use strict'; + + var blockTags = [ + 'pre', + 'div', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'blockquote', + 'table', + 'dl', + 'ol', + 'ul', + 'script', + 'noscript', + 'form', + 'fieldset', + 'iframe', + 'math', + 'style', + 'section', + 'header', + 'footer', + 'nav', + 'article', + 'aside', + 'address', + 'audio', + 'canvas', + 'figure', + 'hgroup', + 'output', + 'video', + 'p' + ], + repFunc = function (wholeMatch, match, left, right) { + var txt = wholeMatch; + // check if this html element is marked as markdown + // if so, it's contents should be parsed as markdown + if (left.search(/\bmarkdown\b/) !== -1) { + txt = left + globals.converter.makeHtml(match) + right; + } + return '\n\n~K' + (globals.gHtmlBlocks.push(txt) - 1) + 'K\n\n'; + }; + + for (var i = 0; i < blockTags.length; ++i) { + text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^(?: |\\t){0,3}<' + blockTags[i] + '\\b[^>]*>', '', 'gim'); + } + + // HR SPECIAL CASE + text = text.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g, + showdown.subParser('hashElement')(text, options, globals)); + + // Special case for standalone HTML comments: + text = text.replace(/()/g, + showdown.subParser('hashElement')(text, options, globals)); + + // PHP and ASP-style processor instructions ( and <%...%>) + text = text.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g, + showdown.subParser('hashElement')(text, options, globals)); + return text; +}); + +/** + * Hash span elements that should not be parsed as markdown + */ +showdown.subParser('hashHTMLSpans', function (text, config, globals) { + 'use strict'; + + var matches = showdown.helper.matchRecursiveRegExp(text, ']*>', '', 'gi'); + + for (var i = 0; i < matches.length; ++i) { + text = text.replace(matches[i][0], '~L' + (globals.gHtmlSpans.push(matches[i][0]) - 1) + 'L'); + } + return text; +}); + +/** + * Unhash HTML spans + */ +showdown.subParser('unhashHTMLSpans', function (text, config, globals) { + 'use strict'; + + for (var i = 0; i < globals.gHtmlSpans.length; ++i) { + text = text.replace('~L' + i + 'L', globals.gHtmlSpans[i]); + } + + return text; +}); + +/** + * Hash span elements that should not be parsed as markdown + */ +showdown.subParser('hashPreCodeTags', function (text, config, globals) { + 'use strict'; + + var repFunc = function (wholeMatch, match, left, right) { + // encode html entities + var codeblock = left + showdown.subParser('encodeCode')(match) + right; + return '\n\n~G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n'; + }; + + text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^(?: |\\t){0,3}]*>\\s*]*>', '^(?: |\\t){0,3}\\s*
    ', 'gim'); + return text; +}); + +showdown.subParser('headers', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('headers.before', text, options, globals); + + var prefixHeader = options.prefixHeaderId, + headerLevelStart = (isNaN(parseInt(options.headerLevelStart))) ? 1 : parseInt(options.headerLevelStart), + + // Set text-style headers: + // Header 1 + // ======== + // + // Header 2 + // -------- + // + setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, + setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm; + + text = text.replace(setextRegexH1, function (wholeMatch, m1) { + + var spanGamut = showdown.subParser('spanGamut')(m1, options, globals), + hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"', + hLevel = headerLevelStart, + hashBlock = '' + spanGamut + ''; + return showdown.subParser('hashBlock')(hashBlock, options, globals); + }); + + text = text.replace(setextRegexH2, function (matchFound, m1) { + var spanGamut = showdown.subParser('spanGamut')(m1, options, globals), + hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"', + hLevel = headerLevelStart + 1, + hashBlock = '' + spanGamut + ''; + return showdown.subParser('hashBlock')(hashBlock, options, globals); + }); + + // atx-style headers: + // # Header 1 + // ## Header 2 + // ## Header 2 with closing hashes ## + // ... + // ###### Header 6 + // + text = text.replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm, function (wholeMatch, m1, m2) { + var span = showdown.subParser('spanGamut')(m2, options, globals), + hID = (options.noHeaderId) ? '' : ' id="' + headerId(m2) + '"', + hLevel = headerLevelStart - 1 + m1.length, + header = '' + span + ''; + + return showdown.subParser('hashBlock')(header, options, globals); + }); + + function headerId(m) { + var title, escapedId = m.replace(/[^\w]/g, '').toLowerCase(); + + if (globals.hashLinkCounts[escapedId]) { + title = escapedId + '-' + (globals.hashLinkCounts[escapedId]++); + } else { + title = escapedId; + globals.hashLinkCounts[escapedId] = 1; + } + + // Prefix id to prevent causing inadvertent pre-existing style matches. + if (prefixHeader === true) { + prefixHeader = 'section'; + } + + if (showdown.helper.isString(prefixHeader)) { + return prefixHeader + title; + } + return title; + } + + text = globals.converter._dispatch('headers.after', text, options, globals); + return text; +}); + +/** + * Turn Markdown image shortcuts into tags. + */ +showdown.subParser('images', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('images.before', text, options, globals); + + var inlineRegExp = /!\[(.*?)]\s?\([ \t]*()?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g, + referenceRegExp = /!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g; + + function writeImageTag (wholeMatch, altText, linkId, url, width, height, m5, title) { + + var gUrls = globals.gUrls, + gTitles = globals.gTitles, + gDims = globals.gDimensions; + + linkId = linkId.toLowerCase(); + + if (!title) { + title = ''; + } + + if (url === '' || url === null) { + if (linkId === '' || linkId === null) { + // lower-case and turn embedded newlines into spaces + linkId = altText.toLowerCase().replace(/ ?\n/g, ' '); + } + url = '#' + linkId; + + if (!showdown.helper.isUndefined(gUrls[linkId])) { + url = gUrls[linkId]; + if (!showdown.helper.isUndefined(gTitles[linkId])) { + title = gTitles[linkId]; + } + if (!showdown.helper.isUndefined(gDims[linkId])) { + width = gDims[linkId].width; + height = gDims[linkId].height; + } + } else { + return wholeMatch; + } + } + + altText = altText.replace(/"/g, '"'); + altText = showdown.helper.escapeCharacters(altText, '*_', false); + url = showdown.helper.escapeCharacters(url, '*_', false); + var result = '' + altText + 'x "optional title") + text = text.replace(inlineRegExp, writeImageTag); + + text = globals.converter._dispatch('images.after', text, options, globals); + return text; +}); + +showdown.subParser('italicsAndBold', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('italicsAndBold.before', text, options, globals); + + if (options.literalMidWordUnderscores) { + //underscores + // Since we are consuming a \s character, we need to add it + text = text.replace(/(^|\s|>|\b)__(?=\S)([\s\S]+?)__(?=\b|<|\s|$)/gm, '$1$2'); + text = text.replace(/(^|\s|>|\b)_(?=\S)([\s\S]+?)_(?=\b|<|\s|$)/gm, '$1$2'); + //asterisks + text = text.replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g, '$2'); + text = text.replace(/(\*)(?=\S)([^\r]*?\S)\1/g, '$2'); + + } else { + // must go first: + text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, '$2'); + text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, '$2'); + } + + text = globals.converter._dispatch('italicsAndBold.after', text, options, globals); + return text; +}); + +/** + * Form HTML ordered (numbered) and unordered (bulleted) lists. + */ +showdown.subParser('lists', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('lists.before', text, options, globals); + /** + * Process the contents of a single ordered or unordered list, splitting it + * into individual list items. + * @param {string} listStr + * @param {boolean} trimTrailing + * @returns {string} + */ + function processListItems (listStr, trimTrailing) { + // The $g_list_level global keeps track of when we're inside a list. + // Each time we enter a list, we increment it; when we leave a list, + // we decrement. If it's zero, we're not in a list anymore. + // + // We do this because when we're not inside a list, we want to treat + // something like this: + // + // I recommend upgrading to version + // 8. Oops, now this line is treated + // as a sub-list. + // + // As a single paragraph, despite the fact that the second line starts + // with a digit-period-space sequence. + // + // Whereas when we're inside a list (or sub-list), that line will be + // treated as the start of a sub-list. What a kludge, huh? This is + // an aspect of Markdown's syntax that's hard to parse perfectly + // without resorting to mind-reading. Perhaps the solution is to + // change the syntax rules such that sub-lists must start with a + // starting cardinal number; e.g. "1." or "a.". + globals.gListLevel++; + + // trim trailing blank lines: + listStr = listStr.replace(/\n{2,}$/, '\n'); + + // attacklab: add sentinel to emulate \z + listStr += '~0'; + + var rgx = /(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm, + isParagraphed = (/\n[ \t]*\n(?!~0)/.test(listStr)); + + listStr = listStr.replace(rgx, function (wholeMatch, m1, m2, m3, m4, taskbtn, checked) { + checked = (checked && checked.trim() !== ''); + var item = showdown.subParser('outdent')(m4, options, globals), + bulletStyle = ''; + + // Support for github tasklists + if (taskbtn && options.tasklists) { + bulletStyle = ' class="task-list-item" style="list-style-type: none;"'; + item = item.replace(/^[ \t]*\[(x|X| )?]/m, function () { + var otp = ' -1)) { + item = showdown.subParser('githubCodeBlocks')(item, options, globals); + item = showdown.subParser('blockGamut')(item, options, globals); + } else { + // Recursion for sub-lists: + item = showdown.subParser('lists')(item, options, globals); + item = item.replace(/\n$/, ''); // chomp(item) + if (isParagraphed) { + item = showdown.subParser('paragraphs')(item, options, globals); + } else { + item = showdown.subParser('spanGamut')(item, options, globals); + } + } + item = '\n' + item + '\n'; + return item; + }); + + // attacklab: strip sentinel + listStr = listStr.replace(/~0/g, ''); + + globals.gListLevel--; + + if (trimTrailing) { + listStr = listStr.replace(/\s+$/, ''); + } + + return listStr; + } + + /** + * Check and parse consecutive lists (better fix for issue #142) + * @param {string} list + * @param {string} listType + * @param {boolean} trimTrailing + * @returns {string} + */ + function parseConsecutiveLists(list, listType, trimTrailing) { + // check if we caught 2 or more consecutive lists by mistake + // we use the counterRgx, meaning if listType is UL we look for UL and vice versa + var counterRxg = (listType === 'ul') ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm, + subLists = [], + result = ''; + + if (list.search(counterRxg) !== -1) { + (function parseCL(txt) { + var pos = txt.search(counterRxg); + if (pos !== -1) { + // slice + result += '\n\n<' + listType + '>' + processListItems(txt.slice(0, pos), !!trimTrailing) + '\n\n'; + + // invert counterType and listType + listType = (listType === 'ul') ? 'ol' : 'ul'; + counterRxg = (listType === 'ul') ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm; + + //recurse + parseCL(txt.slice(pos)); + } else { + result += '\n\n<' + listType + '>' + processListItems(txt, !!trimTrailing) + '\n\n'; + } + })(list); + for (var i = 0; i < subLists.length; ++i) { + + } + } else { + result = '\n\n<' + listType + '>' + processListItems(list, !!trimTrailing) + '\n\n'; + } + + return result; + } + + // attacklab: add sentinel to hack around khtml/safari bug: + // http://bugs.webkit.org/show_bug.cgi?id=11231 + text += '~0'; + + // Re-usable pattern to match any entire ul or ol list: + var wholeList = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; + + if (globals.gListLevel) { + text = text.replace(wholeList, function (wholeMatch, list, m2) { + var listType = (m2.search(/[*+-]/g) > -1) ? 'ul' : 'ol'; + return parseConsecutiveLists(list, listType, true); + }); + } else { + wholeList = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; + //wholeList = /(\n\n|^\n?)( {0,3}([*+-]|\d+\.)[ \t]+[\s\S]+?)(?=(~0)|(\n\n(?!\t| {2,}| {0,3}([*+-]|\d+\.)[ \t])))/g; + text = text.replace(wholeList, function (wholeMatch, m1, list, m3) { + + var listType = (m3.search(/[*+-]/g) > -1) ? 'ul' : 'ol'; + return parseConsecutiveLists(list, listType); + }); + } + + // attacklab: strip sentinel + text = text.replace(/~0/, ''); + + text = globals.converter._dispatch('lists.after', text, options, globals); + return text; +}); + +/** + * Remove one level of line-leading tabs or spaces + */ +showdown.subParser('outdent', function (text) { + 'use strict'; + + // attacklab: hack around Konqueror 3.5.4 bug: + // "----------bug".replace(/^-/g,"") == "bug" + text = text.replace(/^(\t|[ ]{1,4})/gm, '~0'); // attacklab: g_tab_width + + // attacklab: clean up hack + text = text.replace(/~0/g, ''); + + return text; +}); + +/** + * + */ +showdown.subParser('paragraphs', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('paragraphs.before', text, options, globals); + // Strip leading and trailing lines: + text = text.replace(/^\n+/g, ''); + text = text.replace(/\n+$/g, ''); + + var grafs = text.split(/\n{2,}/g), + grafsOut = [], + end = grafs.length; // Wrap

    tags + + for (var i = 0; i < end; i++) { + var str = grafs[i]; + // if this is an HTML marker, copy it + if (str.search(/~(K|G)(\d+)\1/g) >= 0) { + grafsOut.push(str); + } else { + str = showdown.subParser('spanGamut')(str, options, globals); + str = str.replace(/^([ \t]*)/g, '

    '); + str += '

    '; + grafsOut.push(str); + } + } + + /** Unhashify HTML blocks */ + end = grafsOut.length; + for (i = 0; i < end; i++) { + var blockText = '', + grafsOutIt = grafsOut[i], + codeFlag = false; + // if this is a marker for an html block... + while (grafsOutIt.search(/~(K|G)(\d+)\1/) >= 0) { + var delim = RegExp.$1, + num = RegExp.$2; + + if (delim === 'K') { + blockText = globals.gHtmlBlocks[num]; + } else { + // we need to check if ghBlock is a false positive + if (codeFlag) { + // use encoded version of all text + blockText = showdown.subParser('encodeCode')(globals.ghCodeBlocks[num].text); + } else { + blockText = globals.ghCodeBlocks[num].codeblock; + } + } + blockText = blockText.replace(/\$/g, '$$$$'); // Escape any dollar signs + + grafsOutIt = grafsOutIt.replace(/(\n\n)?~(K|G)\d+\2(\n\n)?/, blockText); + // Check if grafsOutIt is a pre->code + if (/^]*>\s*]*>/.test(grafsOutIt)) { + codeFlag = true; + } + } + grafsOut[i] = grafsOutIt; + } + text = grafsOut.join('\n\n'); + // Strip leading and trailing lines: + text = text.replace(/^\n+/g, ''); + text = text.replace(/\n+$/g, ''); + return globals.converter._dispatch('paragraphs.after', text, options, globals); +}); + +/** + * Run extension + */ +showdown.subParser('runExtension', function (ext, text, options, globals) { + 'use strict'; + + if (ext.filter) { + text = ext.filter(text, globals.converter, options); + + } else if (ext.regex) { + // TODO remove this when old extension loading mechanism is deprecated + var re = ext.regex; + if (!re instanceof RegExp) { + re = new RegExp(re, 'g'); + } + text = text.replace(re, ext.replace); + } + + return text; +}); + +/** + * These are all the transformations that occur *within* block-level + * tags like paragraphs, headers, and list items. + */ +showdown.subParser('spanGamut', function (text, options, globals) { + 'use strict'; + + text = globals.converter._dispatch('spanGamut.before', text, options, globals); + text = showdown.subParser('codeSpans')(text, options, globals); + text = showdown.subParser('escapeSpecialCharsWithinTagAttributes')(text, options, globals); + text = showdown.subParser('encodeBackslashEscapes')(text, options, globals); + + // Process anchor and image tags. Images must come first, + // because ![foo][f] looks like an anchor. + text = showdown.subParser('images')(text, options, globals); + text = showdown.subParser('anchors')(text, options, globals); + + // Make links out of things like `` + // Must come after _DoAnchors(), because you can use < and > + // delimiters in inline links like [this](). + text = showdown.subParser('autoLinks')(text, options, globals); + text = showdown.subParser('encodeAmpsAndAngles')(text, options, globals); + text = showdown.subParser('italicsAndBold')(text, options, globals); + text = showdown.subParser('strikethrough')(text, options, globals); + + // Do hard breaks: + text = text.replace(/ +\n/g, '
    \n'); + + text = globals.converter._dispatch('spanGamut.after', text, options, globals); + return text; +}); + +showdown.subParser('strikethrough', function (text, options, globals) { + 'use strict'; + + if (options.strikethrough) { + text = globals.converter._dispatch('strikethrough.before', text, options, globals); + text = text.replace(/(?:~T){2}([\s\S]+?)(?:~T){2}/g, '$1'); + text = globals.converter._dispatch('strikethrough.after', text, options, globals); + } + + return text; +}); + +/** + * Strip any lines consisting only of spaces and tabs. + * This makes subsequent regexs easier to write, because we can + * match consecutive blank lines with /\n+/ instead of something + * contorted like /[ \t]*\n+/ + */ +showdown.subParser('stripBlankLines', function (text) { + 'use strict'; + return text.replace(/^[ \t]+$/mg, ''); +}); + +/** + * Strips link definitions from text, stores the URLs and titles in + * hash references. + * Link defs are in the form: ^[id]: url "optional title" + * + * ^[ ]{0,3}\[(.+)\]: // id = $1 attacklab: g_tab_width - 1 + * [ \t]* + * \n? // maybe *one* newline + * [ \t]* + * ? // url = $2 + * [ \t]* + * \n? // maybe one newline + * [ \t]* + * (?: + * (\n*) // any lines skipped = $3 attacklab: lookbehind removed + * ["(] + * (.+?) // title = $4 + * [")] + * [ \t]* + * )? // title is optional + * (?:\n+|$) + * /gm, + * function(){...}); + * + */ +showdown.subParser('stripLinkDefinitions', function (text, options, globals) { + 'use strict'; + + var regex = /^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm; + + // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug + text += '~0'; + + text = text.replace(regex, function (wholeMatch, linkId, url, width, height, blankLines, title) { + linkId = linkId.toLowerCase(); + globals.gUrls[linkId] = showdown.subParser('encodeAmpsAndAngles')(url); // Link IDs are case-insensitive + + if (blankLines) { + // Oops, found blank lines, so it's not a title. + // Put back the parenthetical statement we stole. + return blankLines + title; + + } else { + if (title) { + globals.gTitles[linkId] = title.replace(/"|'/g, '"'); + } + if (options.parseImgDimensions && width && height) { + globals.gDimensions[linkId] = { + width: width, + height: height + }; + } + } + // Completely remove the definition from the text + return ''; + }); + + // attacklab: strip sentinel + text = text.replace(/~0/, ''); + + return text; +}); + +showdown.subParser('tables', function (text, options, globals) { + 'use strict'; + + if (!options.tables) { + return text; + } + + var tableRgx = /^[ \t]{0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm; + + function parseStyles(sLine) { + if (/^:[ \t]*--*$/.test(sLine)) { + return ' style="text-align:left;"'; + } else if (/^--*[ \t]*:[ \t]*$/.test(sLine)) { + return ' style="text-align:right;"'; + } else if (/^:[ \t]*--*[ \t]*:$/.test(sLine)) { + return ' style="text-align:center;"'; + } else { + return ''; + } + } + + function parseHeaders(header, style) { + var id = ''; + header = header.trim(); + if (options.tableHeaderId) { + id = ' id="' + header.replace(/ /g, '_').toLowerCase() + '"'; + } + header = showdown.subParser('spanGamut')(header, options, globals); + + return '' + header + '\n'; + } + + function parseCells(cell, style) { + var subText = showdown.subParser('spanGamut')(cell, options, globals); + return '' + subText + '\n'; + } + + function buildTable(headers, cells) { + var tb = '\n\n\n', + tblLgn = headers.length; + + for (var i = 0; i < tblLgn; ++i) { + tb += headers[i]; + } + tb += '\n\n\n'; + + for (i = 0; i < cells.length; ++i) { + tb += '\n'; + for (var ii = 0; ii < tblLgn; ++ii) { + tb += cells[i][ii]; + } + tb += '\n'; + } + tb += '\n
    \n'; + return tb; + } + + text = globals.converter._dispatch('tables.before', text, options, globals); + + text = text.replace(tableRgx, function (rawTable) { + + var i, tableLines = rawTable.split('\n'); + + // strip wrong first and last column if wrapped tables are used + for (i = 0; i < tableLines.length; ++i) { + if (/^[ \t]{0,3}\|/.test(tableLines[i])) { + tableLines[i] = tableLines[i].replace(/^[ \t]{0,3}\|/, ''); + } + if (/\|[ \t]*$/.test(tableLines[i])) { + tableLines[i] = tableLines[i].replace(/\|[ \t]*$/, ''); + } + } + + var rawHeaders = tableLines[0].split('|').map(function (s) { return s.trim();}), + rawStyles = tableLines[1].split('|').map(function (s) { return s.trim();}), + rawCells = [], + headers = [], + styles = [], + cells = []; + + tableLines.shift(); + tableLines.shift(); + + for (i = 0; i < tableLines.length; ++i) { + if (tableLines[i].trim() === '') { + continue; + } + rawCells.push( + tableLines[i] + .split('|') + .map(function (s) { + return s.trim(); + }) + ); + } + + if (rawHeaders.length < rawStyles.length) { + return rawTable; + } + + for (i = 0; i < rawStyles.length; ++i) { + styles.push(parseStyles(rawStyles[i])); + } + + for (i = 0; i < rawHeaders.length; ++i) { + if (showdown.helper.isUndefined(styles[i])) { + styles[i] = ''; + } + headers.push(parseHeaders(rawHeaders[i], styles[i])); + } + + for (i = 0; i < rawCells.length; ++i) { + var row = []; + for (var ii = 0; ii < headers.length; ++ii) { + if (showdown.helper.isUndefined(rawCells[i][ii])) { + + } + row.push(parseCells(rawCells[i][ii], styles[ii])); + } + cells.push(row); + } + + return buildTable(headers, cells); + }); + + text = globals.converter._dispatch('tables.after', text, options, globals); + + return text; +}); + +/** + * Swap back in all the special characters we've hidden. + */ +showdown.subParser('unescapeSpecialChars', function (text) { + 'use strict'; + + text = text.replace(/~E(\d+)E/g, function (wholeMatch, m1) { + var charCodeToReplace = parseInt(m1); + return String.fromCharCode(charCodeToReplace); + }); + return text; +}); +module.exports = showdown; diff --git a/mini/lib/wxParse/wxDiscode.js b/mini/lib/wxParse/wxDiscode.js new file mode 100644 index 0000000..e339f7a --- /dev/null +++ b/mini/lib/wxParse/wxDiscode.js @@ -0,0 +1,206 @@ +// HTML 支持的数学符号 +function strNumDiscode(str){ + str = str.replace(/∀/g, '∀'); + str = str.replace(/∂/g, '∂'); + str = str.replace(/&exists;/g, '∃'); + str = str.replace(/∅/g, '∅'); + str = str.replace(/∇/g, '∇'); + str = str.replace(/∈/g, '∈'); + str = str.replace(/∉/g, '∉'); + str = str.replace(/∋/g, '∋'); + str = str.replace(/∏/g, '∏'); + str = str.replace(/∑/g, '∑'); + str = str.replace(/−/g, '−'); + str = str.replace(/∗/g, '∗'); + str = str.replace(/√/g, '√'); + str = str.replace(/∝/g, '∝'); + str = str.replace(/∞/g, '∞'); + str = str.replace(/∠/g, '∠'); + str = str.replace(/∧/g, '∧'); + str = str.replace(/∨/g, '∨'); + str = str.replace(/∩/g, '∩'); + str = str.replace(/∩/g, '∪'); + str = str.replace(/∫/g, '∫'); + str = str.replace(/∴/g, '∴'); + str = str.replace(/∼/g, '∼'); + str = str.replace(/≅/g, '≅'); + str = str.replace(/≈/g, '≈'); + str = str.replace(/≠/g, '≠'); + str = str.replace(/≤/g, '≤'); + str = str.replace(/≥/g, '≥'); + str = str.replace(/⊂/g, '⊂'); + str = str.replace(/⊃/g, '⊃'); + str = str.replace(/⊄/g, '⊄'); + str = str.replace(/⊆/g, '⊆'); + str = str.replace(/⊇/g, '⊇'); + str = str.replace(/⊕/g, '⊕'); + str = str.replace(/⊗/g, '⊗'); + str = str.replace(/⊥/g, '⊥'); + str = str.replace(/⋅/g, '⋅'); + return str; +} + +//HTML 支持的希腊字母 +function strGreeceDiscode(str){ + str = str.replace(/Α/g, 'Α'); + str = str.replace(/Β/g, 'Β'); + str = str.replace(/Γ/g, 'Γ'); + str = str.replace(/Δ/g, 'Δ'); + str = str.replace(/Ε/g, 'Ε'); + str = str.replace(/Ζ/g, 'Ζ'); + str = str.replace(/Η/g, 'Η'); + str = str.replace(/Θ/g, 'Θ'); + str = str.replace(/Ι/g, 'Ι'); + str = str.replace(/Κ/g, 'Κ'); + str = str.replace(/Λ/g, 'Λ'); + str = str.replace(/Μ/g, 'Μ'); + str = str.replace(/Ν/g, 'Ν'); + str = str.replace(/Ξ/g, 'Ν'); + str = str.replace(/Ο/g, 'Ο'); + str = str.replace(/Π/g, 'Π'); + str = str.replace(/Ρ/g, 'Ρ'); + str = str.replace(/Σ/g, 'Σ'); + str = str.replace(/Τ/g, 'Τ'); + str = str.replace(/Υ/g, 'Υ'); + str = str.replace(/Φ/g, 'Φ'); + str = str.replace(/Χ/g, 'Χ'); + str = str.replace(/Ψ/g, 'Ψ'); + str = str.replace(/Ω/g, 'Ω'); + + str = str.replace(/α/g, 'α'); + str = str.replace(/β/g, 'β'); + str = str.replace(/γ/g, 'γ'); + str = str.replace(/δ/g, 'δ'); + str = str.replace(/ε/g, 'ε'); + str = str.replace(/ζ/g, 'ζ'); + str = str.replace(/η/g, 'η'); + str = str.replace(/θ/g, 'θ'); + str = str.replace(/ι/g, 'ι'); + str = str.replace(/κ/g, 'κ'); + str = str.replace(/λ/g, 'λ'); + str = str.replace(/μ/g, 'μ'); + str = str.replace(/ν/g, 'ν'); + str = str.replace(/ξ/g, 'ξ'); + str = str.replace(/ο/g, 'ο'); + str = str.replace(/π/g, 'π'); + str = str.replace(/ρ/g, 'ρ'); + str = str.replace(/ς/g, 'ς'); + str = str.replace(/σ/g, 'σ'); + str = str.replace(/τ/g, 'τ'); + str = str.replace(/υ/g, 'υ'); + str = str.replace(/φ/g, 'φ'); + str = str.replace(/χ/g, 'χ'); + str = str.replace(/ψ/g, 'ψ'); + str = str.replace(/ω/g, 'ω'); + str = str.replace(/ϑ/g, 'ϑ'); + str = str.replace(/ϒ/g, 'ϒ'); + str = str.replace(/ϖ/g, 'ϖ'); + str = str.replace(/·/g, '·'); + return str; +} + +// + +function strcharacterDiscode(str){ + // 加入常用解析 + str = str.replace(/ /g, ' '); + str = str.replace(/"/g, '"'); + str = str.replace(/&/g, '&'); + // str = str.replace(/</g, '‹'); + // str = str.replace(/>/g, '›'); + + str = str.replace(/</g, '<'); + str = str.replace(/>/g, '>'); + + return str; +} + +// HTML 支持的其他实体 +function strOtherDiscode(str){ + str = str.replace(/Œ/g, 'Œ'); + str = str.replace(/œ/g, 'œ'); + str = str.replace(/Š/g, 'Š'); + str = str.replace(/š/g, 'š'); + str = str.replace(/Ÿ/g, 'Ÿ'); + str = str.replace(/ƒ/g, 'ƒ'); + str = str.replace(/ˆ/g, 'ˆ'); + str = str.replace(/˜/g, '˜'); + str = str.replace(/ /g, ''); + str = str.replace(/ /g, ''); + str = str.replace(/ /g, ''); + str = str.replace(/‌/g, ''); + str = str.replace(/‍/g, ''); + str = str.replace(/‎/g, ''); + str = str.replace(/‏/g, ''); + str = str.replace(/–/g, '–'); + str = str.replace(/—/g, '—'); + str = str.replace(/‘/g, '‘'); + str = str.replace(/’/g, '’'); + str = str.replace(/‚/g, '‚'); + str = str.replace(/“/g, '“'); + str = str.replace(/”/g, '”'); + str = str.replace(/„/g, '„'); + str = str.replace(/†/g, '†'); + str = str.replace(/‡/g, '‡'); + str = str.replace(/•/g, '•'); + str = str.replace(/…/g, '…'); + str = str.replace(/‰/g, '‰'); + str = str.replace(/′/g, '′'); + str = str.replace(/″/g, '″'); + str = str.replace(/‹/g, '‹'); + str = str.replace(/›/g, '›'); + str = str.replace(/‾/g, '‾'); + str = str.replace(/€/g, '€'); + str = str.replace(/™/g, '™'); + + str = str.replace(/←/g, '←'); + str = str.replace(/↑/g, '↑'); + str = str.replace(/→/g, '→'); + str = str.replace(/↓/g, '↓'); + str = str.replace(/↔/g, '↔'); + str = str.replace(/↵/g, '↵'); + str = str.replace(/⌈/g, '⌈'); + str = str.replace(/⌉/g, '⌉'); + + str = str.replace(/⌊/g, '⌊'); + str = str.replace(/⌋/g, '⌋'); + str = str.replace(/◊/g, '◊'); + str = str.replace(/♠/g, '♠'); + str = str.replace(/♣/g, '♣'); + str = str.replace(/♥/g, '♥'); + + str = str.replace(/♦/g, '♦'); + + return str; +} + +function strMoreDiscode(str){ + str = str.replace(/\r\n/g,""); + str = str.replace(/\n/g,""); + + str = str.replace(/code/g,"wxxxcode-style"); + return str; +} + +function strDiscode(str){ + str = strNumDiscode(str); + str = strGreeceDiscode(str); + str = strcharacterDiscode(str); + str = strOtherDiscode(str); + str = strMoreDiscode(str); + return str; +} +function urlToHttpUrl(url,rep){ + + var patt1 = new RegExp("^//"); + var result = patt1.test(url); + if(result){ + url = rep+":"+url; + } + return url; +} + +module.exports = { + strDiscode:strDiscode, + urlToHttpUrl:urlToHttpUrl +} \ No newline at end of file diff --git a/mini/lib/wxParse/wxParse.js b/mini/lib/wxParse/wxParse.js new file mode 100644 index 0000000..fa3b567 --- /dev/null +++ b/mini/lib/wxParse/wxParse.js @@ -0,0 +1,146 @@ +/** + * author: Di (微信小程序开发工程师) + * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) + * 垂直微信小程序开发交流社区 + * + * github地址: https://github.com/icindy/wxParse + * + * for: 微信小程序富文本解析 + * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 + */ + +/** + * utils函数引入 + **/ +import showdown from 'showdown.js'; +import HtmlToJson from 'html2json.js'; +/** + * 配置及公有属性 + **/ +/** + * 主函数入口区 + **/ +function wxParse(bindName = 'wxParseData', type='html', data='
    数据不能为空
    ', target,imagePadding) { + var that = target; + var transData = {};//存放转化后的数据 + if (type == 'html') { + transData = HtmlToJson.html2json(data, bindName); + console.log(JSON.stringify(transData, ' ', ' ')); + } else if (type == 'md' || type == 'markdown') { + var converter = new showdown.Converter(); + var html = converter.makeHtml(data); + transData = HtmlToJson.html2json(html, bindName); + console.log(JSON.stringify(transData, ' ', ' ')); + } + transData.view = {}; + transData.view.imagePadding = 0; + if(typeof(imagePadding) != 'undefined'){ + transData.view.imagePadding = imagePadding + } + var bindData = {}; + bindData[bindName] = transData; + that.setData(bindData) + that.wxParseImgLoad = wxParseImgLoad; + that.wxParseImgTap = wxParseImgTap; +} +// 图片点击事件 +function wxParseImgTap(e) { + var that = this; + var nowImgUrl = e.target.dataset.src; + var tagFrom = e.target.dataset.from; + if (typeof (tagFrom) != 'undefined' && tagFrom.length > 0) { + wx.previewImage({ + current: nowImgUrl, // 当前显示图片的http链接 + urls: that.data[tagFrom].imageUrls // 需要预览的图片http链接列表 + }) + } +} + +/** + * 图片视觉宽高计算函数区 + **/ +function wxParseImgLoad(e) { + var that = this; + var tagFrom = e.target.dataset.from; + var idx = e.target.dataset.idx; + if (typeof (tagFrom) != 'undefined' && tagFrom.length > 0) { + calMoreImageInfo(e, idx, that, tagFrom) + } +} +// 假循环获取计算图片视觉最佳宽高 +function calMoreImageInfo(e, idx, that, bindName) { + var temData = that.data[bindName]; + if (temData.images.length == 0) { + return; + } + var temImages = temData.images; + //因为无法获取view宽度 需要自定义padding进行计算,稍后处理 + var recal = wxAutoImageCal(e.detail.width, e.detail.height,that,bindName); + temImages[idx].width = recal.imageWidth; + temImages[idx].height = recal.imageheight; + temData.images = temImages; + var bindData = {}; + bindData[bindName] = temData; + that.setData(bindData); +} + +// 计算视觉优先的图片宽高 +function wxAutoImageCal(originalWidth, originalHeight,that,bindName) { + //获取图片的原始长宽 + var windowWidth = 0, windowHeight = 0; + var autoWidth = 0, autoHeight = 0; + var results = {}; + wx.getSystemInfo({ + success: function (res) { + var padding = that.data[bindName].view.imagePadding; + windowWidth = res.windowWidth-2*padding; + windowHeight = res.windowHeight; + //判断按照那种方式进行缩放 + console.log("windowWidth" + windowWidth); + if (originalWidth > windowWidth) {//在图片width大于手机屏幕width时候 + autoWidth = windowWidth; + console.log("autoWidth" + autoWidth); + autoHeight = (autoWidth * originalHeight) / originalWidth; + console.log("autoHeight" + autoHeight); + results.imageWidth = autoWidth; + results.imageheight = autoHeight; + } else {//否则展示原来的数据 + results.imageWidth = originalWidth; + results.imageheight = originalHeight; + } + } + }) + return results; +} + +function wxParseTemArray(temArrayName,bindNameReg,total,that){ + var array = []; + var temData = that.data; + var obj = null; + for(var i = 0; i < total; i++){ + var simArr = temData[bindNameReg+i].nodes; + array.push(simArr); + } + + temArrayName = temArrayName || 'wxParseTemArray'; + obj = JSON.parse('{"'+ temArrayName +'":""}'); + obj[temArrayName] = array; + that.setData(obj); +} + +/** + * 配置emojis + * + */ + +function emojisInit(reg='',baseSrc="/wxParse/emojis/",emojis){ + HtmlToJson.emojisInit(reg,baseSrc,emojis); +} + +module.exports = { + wxParse: wxParse, + wxParseTemArray:wxParseTemArray, + emojisInit:emojisInit +} + + diff --git a/mini/lib/wxParse/wxParse.wxml b/mini/lib/wxParse/wxParse.wxml new file mode 100644 index 0000000..963a1b1 --- /dev/null +++ b/mini/lib/wxParse/wxParse.wxml @@ -0,0 +1,928 @@ + + + + + + + + + + + + +