33 lines
847 B
C#
33 lines
847 B
C#
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>();
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|