예제 #1
0
        /// <summary>
        /// 拼接保留域
        /// </summary>
        /// <param name="req">请求要素</param>
        /// <returns>保留域</returns>
        public static String BuildReserved(Dictionary <String, String> req)
        {
            StringBuilder merReserved = new StringBuilder();

            merReserved.Append("{");
            merReserved.Append(UpmpCore.CreateLinkString(req, false, true));
            merReserved.Append("}");
            return(merReserved.ToString());
        }
예제 #2
0
        /// <summary>
        /// 拼接请求字符串
        /// </summary>
        /// <param name="req"></param>
        /// <param name="resp"></param>
        /// <returns></returns>
        private static String BuildReq(Dictionary <String, String> req, Dictionary <String, String> resp)
        {
            // 生成签名结果
            String signature = UpmpCore.BuildSignature(req);

            // 签名结果与签名方式加入请求提交参数组中
            req[UpmpConfig.GetInstance().SIGNATURE]   = signature;
            req[UpmpConfig.GetInstance().SIGN_METHOD] = UpmpConfig.GetInstance().SIGN_TYPE;

            return(UpmpCore.CreateLinkString(req, false, true));
        }