public LogRequestHelper(jsonReturn resultJson, List <string> parameter) { try { var httpRequest = WebOperationContext.Current.IncomingRequest; if (httpRequest.Method.ToLower() == "get") { Request = httpRequest.UriTemplateMatch.RequestUri.ToString(); Function = httpRequest.UriTemplateMatch.RelativePathSegments.FirstOrDefault(); Param = httpRequest.UriTemplateMatch.RelativePathSegments.Where( p => p != httpRequest.UriTemplateMatch.RelativePathSegments.FirstOrDefault()).ToList(); } else { Function = httpRequest.Headers["SOAPAction"]; Param = parameter; } Method = WebOperationContext.Current.IncomingRequest.Method; ResultJson = resultJson; } catch (Exception ex) { // On ne fait rien } }
public override bool TakeAction() { ConsoleLog.showNotifyInfo("360 callBack . Action2500 call" + urlParams); // 回调后。 // 验证订单是否ok Dictionary <string, string> dic = getDic(); if (false == dic.ContainsKey("app_order_id") || false == dic.ContainsKey("app_uid") || false == dic.ContainsKey("order_id")) { ConsoleLog.showErrorInfo(0, "PayLog importent id NotFind:" + urlParams); TraceLog.WriteError("PayLog importent id NotFind:" + urlParams); return(false); } server_orderid = dic["app_order_id"]; order_id = dic["order_id"]; app_uid = dic["app_uid"]; //ConsoleLog.showErrorInfo(0,"order_id:" + orderId+" the3rdID:"+dic["app_uid"]); string p = geturlParam(dic); if ("" != p) { //ConsoleLog.showNotifyInfo("process order:" + urlParams); //ConsoleLog.showNotifyInfo("geturlParam :" + p); //TraceLog.ReleaseWrite("geturlParam :" + p); //TraceLog.ReleaseWrite("process order:" + urlParams); string result = utils.HttpPost(urlVerfily, p); jsonReturn jr = JsonHelper.ParseFromJson <jsonReturn>(result); bool bSuccess = jr.ret.Equals(verfilyOK, System.StringComparison.OrdinalIgnoreCase); bool hasGet = ProcessHMD(server_orderid, dic, bSuccess, jr.ret); processCache(server_orderid, dic, bSuccess, jr.ret, hasGet); } return(true); }