예제 #1
0
        public static DPay Instance(PaidType type)
        {
            switch (type)
            {
            case PaidType.Alipay:
                return(new Factory.Alipay());

            case PaidType.Weixin:
                return(new Weixin());

            default:
                return(null);
            }
        }
예제 #2
0
파일: DPay.cs 프로젝트: shoy160/Shoy.Common
 protected PlatConfig Get(PaidType type)
 {
     var config = ConfigUtils<OnlinePayConfig>.Instance.Get();
     return config?.Platforms?.FirstOrDefault(t => t.Type == type);
 }
예제 #3
0
        protected PlatConfig Get(PaidType type)
        {
            var config = ConfigUtils <OnlinePayConfig> .Instance.Get();

            return(config?.Platforms?.FirstOrDefault(t => t.Type == type));
        }