/// <summary> /// 获取单例对象 /// </summary> /// <returns></returns> internal static MpHelper Instance() { if (_instance == null) { lock (lockObject) { if (_instance == null) { _instance = new MpHelper(); } } } return(_instance); }
/// <summary> /// 获取MpHelper,MpHelper是关于公众号的方法,避免方法名称冲突 /// </summary> /// <param name="helper"></param> /// <returns></returns> public static MpHelper Mp(this APIHelper helper) { return(MpHelper.Instance()); }