/// <summary> /// 用于检测通道状态 /// </summary> /// <param name="tid"></param> public Submit(int tid, ConfigMonitor cfg) { //var cfg = new ConfigMonitor(tid); _partner = cfg.partner; _private_key = cfg.private_key; _input_charset = cfg.input_charset.Trim().ToLower(); _sign_type = cfg.sign_type.Trim().ToUpper(); }
/// <summary> /// 构造函数 /// 从配置文件中初始化变量 /// </summary> /// <param name="inputPara">通知返回参数数组</param> /// <param name="notify_id">通知验证ID</param> public Notify(int tid) { //初始化基础配置信息 ConfigMonitor cfg = new ConfigMonitor(tid); _partner = cfg.partner.Trim(); alipay_public_key = cfg.public_key.Trim(); _input_charset = cfg.input_charset.Trim().ToLower(); _sign_type = cfg.sign_type.Trim().ToUpper(); }