Exemple #1
0
        /// <summary>
        /// 請求站內付SP_Token
        /// </summary>
        /// <returns>站內付API回傳結果</returns>
        public string Excute()
        {
            HttpTool http = new HttpTool();

            //設置參數
            SetParamter();
            string ParameterString = _paraHelper.DictionaryToParamter(PostCollection).Replace("+", "%2B");

            string Result = http.DoRequestStrData(ServiceURL, ParameterString);


            return(Result);
        }
        /// <summary>
        /// 請求站內付SP_Token
        /// </summary>
        /// <returns>站內付API回傳結果</returns>
        public string Excute()
        {
            HttpTool http = new HttpTool();

            //設置參數
            SetParamter();
            string ParameterString = _paraHelper.DictionaryToParamter(PostCollection).Replace("+", "%2B");

            // 紀錄記錄檔
            Logger.Logger.WriteLine(String.Format("INFO   {0}  INPUT  SP.CkeckOutAip: {1}  ServiceURL:{2}",
                                                  DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), ParameterString, ServiceURL));

            string Result = http.DoRequestStrData(ServiceURL, ParameterString);

            // 紀錄記錄檔
            Logger.Logger.WriteLine(String.Format("INFO   {0}  OUTPUT  SP.CkeckOutAip: {1}",
                                                  DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), Result));

            return(Result);
        }