示例#1
0
        /// <summary>
        /// 写日志
        /// </summary>
        protected virtual void WriteLog <TResponse>(WechatPayConfig config, WechatPayParameterBuilder builder, WechatPayResult <TResponse> result) where TResponse : WechatPayResponse
        {
            var logContent = LogContentBuilder.CreateLogContentBuilder()
                             .SetEventId(Guid.NewGuid()).SetMoudle(GetType().FullName).SetTitle("微信支付")
                             .AddContent($"支付方式 : {GetType()}")
                             .AddContent($"支付网关 : {config.GetOrderUrl()}")
                             .AddContent($"原始响应:{result?.Raw}")
                             .Build();

            Logger.LogInfo(logContent);
        }
 /// <summary>
 /// 获取功能Url
 /// </summary>
 /// <returns></returns>
 protected override string GetRequestUrl(WechatPayConfig config, WechatPayPayRequestBase param)
 {
     return(config.GetOrderUrl());
 }