23
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
using MyCode.Project.Domain.Message.Response.User;
|
||||
using MyCode.Project.Infrastructure.Constant;
|
||||
using MyCode.Project.WebApi.Controllers;
|
||||
using MyCode.Project.Domain.Config;
|
||||
|
||||
namespace MyCode.Project.WebApi.Areas.Member.Controllers
|
||||
{
|
||||
public class BaseMemberController : BaseAPIController
|
||||
{
|
||||
/// <summary>
|
||||
/// 取得登录信息
|
||||
/// </summary>
|
||||
protected MemberLoginInfo CurrentLogin
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
var obj = this.RequestContext.RouteData.Values[Const.LoginInfoKey];
|
||||
|
||||
return ((JObject)obj).ToObject<MemberLoginInfo>();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user