Пример #1
0
        public JsonResult SysJDRegions()
        {
            var isOpenJdRegion = RegionApplication.IsOpenJdRegion();

            if (!isOpenJdRegion)
            {
                return(Json(new Result()
                {
                    success = false, msg = "此版本不支持同步京东地址库!"
                }));
            }
            RegionApplication.SysJDRegions();
            return(Json(new Result()
            {
                success = true, msg = "同步成功!"
            }));
        }