/// <summary> /// 从授码码得到授权用户 /// </summary> /// <param name="code"></param> /// <returns></returns> public virtual AuthUser FromCode(string code) { return(AuthUser.Create(this, UserTokenStore, code)); }
/// <summary> /// 从缓存中得到授权用户 /// </summary> /// <param name="openId"></param> /// <returns></returns> public virtual AuthUser FromCache(string openId) { return(AuthUser.CreateFromCache(this, UserTokenStore, openId)); }