JumboTCMS_src/JumboTCMS.Utils/IPSearchHelp.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 程序名称: JumboTCMS(将博内容管理系统通用版)
*
* 程序版本: 7.x
*
* 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
*
* 版权申明: http://www.jumbotcms.net/about/copyright.html
*
* 技术答疑: http://forum.jumbotcms.net/
*
*/
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.IO;
namespace JumboTCMS.Utils.IPSearchHelp
{
/// <summary>
/// 城市信息
/// </summary>
public class Location
{
public Location(string _area)
{
if (_area.Contains("省") && _area.Contains("市"))
{
this._areatype = 0;
this._captical = _area.Substring(0, _area.IndexOf('省'));
this._city = _area.Substring(_area.IndexOf('省') + 1, _area.IndexOf('市') - _area.IndexOf('省') - 1);
}
if (this._areatype == 4)//没匹配到
{
for (int i = 0; i < _capital1.Length; i++)
{
if (_area.StartsWith(_capital1[i]))//表示直辖市
{
this._areatype = 1;
this._captical = _capital1[i];
if (_area.Length > _capital1[i].Length + 1)//表示有区
this._city = _area.Substring(_capital1[i].Length + 1).Replace("区", "");
}
}
}
if (this._areatype == 4)//没匹配到
{
for (int j = 0; j < _capital2.Length; j++)
{
if (_area.StartsWith(_capital2[j]))//表示自治区
{
this._areatype = 2;
this._captical = _capital2[j];
if (_area.Length > _capital2[j].Length)//表示有市
this._city = _area.Substring(_capital2[j].Length + 1).Replace("市", "");
}
}
}
后面还有 422 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。