public static IWXUser GetFactory() { if (factory == null) { Type type = Type.GetType("Common." + SystemDefaultConfig.DatabaseProvider + "Repository.WeiXin.WXUserDAL,Common." + SystemDefaultConfig.DatabaseProvider + "Repository", true); factory = (IWXUser)Activator.CreateInstance(type); } return(factory); }
/// <summary> /// 获取关注的用户信息 /// </summary> /// <param name="sPlateNo">用户绑定的车辆</param> /// <returns></returns> public static WX_Info GetWXInfoByPlateNo(string sPlateNo) { IWXUser factory = WXUserFactory.GetFactory(); return(factory.GetWXInfoByPlateNo(sPlateNo)); }