/** 获取带参数的请求URL @return String */ public virtual string getRequestURL() { this.createSign(); StringBuilder sb = new StringBuilder(); ArrayList akeys = new ArrayList(parameters.Keys); akeys.Sort(); foreach (string k in akeys) { string v = (string)parameters[k]; if (null != v && "key".CompareTo(k) != 0) { sb.Append(k + "=" + TenpayUtil.UrlEncode(v, getCharset()) + "&"); } } //去掉最后一个& if (sb.Length > 0) { sb.Remove(sb.Length - 1, 1); } return(this.getGateUrl() + "?" + sb.ToString()); }
/// <summary> /// 保存插件设置 /// </summary> public static void SavePluginSet(PluginSetInfo pluginSetInfo) { lock (_locker) { IOHelper.SerializeToXml(pluginSetInfo, IOHelper.GetMapPath(_dbfilepath)); _pluginsetinfo = null; TenpayUtil.ReSet(); } }