public async Task WeChatPaymentNotify(WeChatPaymentNotifyMessageDTO model) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("gooiosapikey", "896960bff18111e799160126c7e9f007"); var reqUrl = $"http://paymentservice.gooios.com/api/wechatpaymentnotify/v1"; var data = JsonConvert.SerializeObject(model); var content = new StringContent(data, Encoding.UTF8, "application/json"); var res = await client.PostAsync(reqUrl, content); } }
public void Post([FromBody] WeChatPaymentNotifyMessageDTO model) { var logTask = LogProvider.Trace(new Log { ApplicationKey = "968960bff18111e799160126c7e9f008", AppServiceName = "PartnerGateway", BizData = JsonConvert.SerializeObject(model), CallerApplicationKey = "wechat", Exception = "", Level = LogLevel.INFO, LogTime = DateTime.Now, Operation = "paymentnotify", ReturnValue = "" }); _notifyMessageAppService.AddWeChatPaymentNotifyMessage(model); }
public void Post([FromBody] WeChatPaymentNotifyMessageDTO model) { _notifyMessageAppService.AddWeChatPaymentNotifyMessage(model); }
public async Task WeChatPaymentNotify(WeChatPaymentNotifyMessageDTO model) { await _paymentServiceProxy.WeChatPaymentNotify(model); }