删除没用代码
This commit is contained in:
parent
6967d2083f
commit
3906b7b44c
@ -11,8 +11,6 @@ namespace Infrastructure
|
|||||||
public static string ConnBus = "conn_bus";
|
public static string ConnBus = "conn_bus";
|
||||||
public static string ConnBusDbType = "conn_bus_type";
|
public static string ConnBusDbType = "conn_bus_type";
|
||||||
|
|
||||||
public static string DbKey = "DbKey";
|
|
||||||
|
|
||||||
public string Redis { get; set; }
|
public string Redis { get; set; }
|
||||||
public string Database { get; set; }
|
public string Database { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -131,7 +131,7 @@ namespace ZR.Admin.WebApi.Framework
|
|||||||
{
|
{
|
||||||
var userData = jwtToken.FirstOrDefault(x => x.Type == ClaimTypes.UserData).Value;
|
var userData = jwtToken.FirstOrDefault(x => x.Type == ClaimTypes.UserData).Value;
|
||||||
var loginUser = JsonConvert.DeserializeObject<LoginUser>(userData);
|
var loginUser = JsonConvert.DeserializeObject<LoginUser>(userData);
|
||||||
var permissions = loginUser.Permissions;//TODO (List<string>)CacheHelper.GetCache(GlobalConstant.UserPermKEY + loginUser?.UserId);
|
var permissions = (List<string>)CacheHelper.GetCache(GlobalConstant.UserPermKEY + loginUser?.UserId);
|
||||||
if (loginUser?.UserName == "admin")
|
if (loginUser?.UserName == "admin")
|
||||||
{
|
{
|
||||||
permissions = new List<string>() { GlobalConstant.AdminPerm };
|
permissions = new List<string>() { GlobalConstant.AdminPerm };
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
using Infrastructure.Model;
|
using SqlSugar;
|
||||||
using SqlSugar;
|
|
||||||
using SqlSugar.IOC;
|
using SqlSugar.IOC;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Linq;
|
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Reflection;
|
|
||||||
using ZR.Model;
|
using ZR.Model;
|
||||||
|
|
||||||
namespace ZR.Repository
|
namespace ZR.Repository
|
||||||
@ -35,7 +32,7 @@ namespace ZR.Repository
|
|||||||
itenant = DbScoped.SugarScope;//设置租户接口
|
itenant = DbScoped.SugarScope;//设置租户接口
|
||||||
if (Context == null)
|
if (Context == null)
|
||||||
{
|
{
|
||||||
Context = context ?? DbScoped.SugarScope.GetConnection(1);//根据类传入的ConfigId自动选择
|
Context = DbScoped.SugarScope.GetConnection(1);//根据类传入的ConfigId自动选择
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user