using PaySharp.Core.Request; using PaySharp.Core.Response; namespace PaySharp.Alipay.Request { public class BaseRequest : Request where TResponse : IResponse { public BaseRequest(string method) { RequestUrl = "/gateway.do?charset=UTF-8"; GatewayData.Add("method", method); } public override void AddGatewayData(TModel model) { base.AddGatewayData(model); GatewayData.Add("biz_content", PaySharp.Core.Utils.Util.SerializeObject(model)); } } }