ConfigData getRechargeData(string version, string ip) { string ipKey = IP.FindQuit(ip); ipKey = FormatOpenCloseKey(version, ipKey); //ConsoleLog.showNotifyInfo(ipKey + ":" + ip); if (false == _versionDataDic.ContainsKey(version)) { version = "error"; } Dictionary <string, ConfigData> ocd = _versionDataDic[version]; if (false == ocd.ContainsKey(ipKey)) { ipKey = _defaultOpenCloseKey; } return(ocd[ipKey]); }