public OnlineSettle(int plat, string mchid) { SettlePlat p = PlatList.Find(pp => pp.Plat_id == plat); if (p == null || p.Plat_id != plat) { return; } SettleMch m = MchList.Find(mm => mm.Plat_id == plat && mm.Mch_id == mchid); if (m == null || m.Plat_id != plat || m.Mch_id != mchid) { return; } this.Plat = new SettlePlat(); this.Plat.Plat_id = p.Plat_id; this.Plat.Plat_name = p.Plat_name; this.Plat.Pay_gateway = p.Pay_gateway; this.Plat.Banklist = p.Banklist; this.Plat.Req_gateway = p.Req_gateway; this.Plat.Plat_class = p.Plat_class; this.Callback_Host = m.Callback_host; this.ID = m.Id; this.MchID = m.Mch_id; this.MchKey = m.Mch_key; this.MchKey2 = m.Mch_key2; this.MchName = m.Mch_name; this.Plat_Id = m.Plat_id; }
public void setInfo(int plat_ID, string mch_ID) { Pay_plat p = PlatList.Find(pp => pp.Plat_id == plat_ID); if (p == null || p.Plat_id != plat_ID) { return; } Pay_mch m = MchList.Find(mm => mm.Plat_id == plat_ID && mm.Mch_id == mch_ID); if (m == null || m.Plat_id != plat_ID || m.Mch_id != mch_ID) { return; } this.Plat = new PayPlat(); this.Plat.Id = p.Plat_id; this.Plat.Name = p.Plat_name; this.Plat.Pay_gateway = p.Pay_gateway; this.Plat.Pay_type_list = p.Pay_type_list; this.Plat.Req_gateway = p.Req_gateway; this.Plat.Class = p.Plat_class; this.Callback_Host = m.Callback_host; this.ID = m.Id; this.MchID = m.Mch_id; this.MchKey = m.Mch_key; this.MchKey2 = m.Mch_key2; this.MchName = m.Mch_name; this.Plat_Id = m.Plat_id; }