牌位排版調整
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using MINOM.COM.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
@@ -47,12 +48,21 @@ public class ezAuthorizeAttribute : AuthorizeAttribute
|
||||
|
||||
protected override bool IsAuthorized(HttpActionContext actionContext)
|
||||
{
|
||||
MyWeb.admin admin = new MyWeb.admin();
|
||||
bool isLogin = admin.isLoign();
|
||||
//if (admin.chkAdmIP && (admin.chkTwIP || admin.chkAdmIP_Enable)) { }
|
||||
//判斷是否登入
|
||||
if (!isLogin) {
|
||||
return false;
|
||||
try
|
||||
{
|
||||
MyWeb.admin admin = new MyWeb.admin();
|
||||
bool isLogin = admin.isLoign();
|
||||
//if (admin.chkAdmIP && (admin.chkTwIP || admin.chkAdmIP_Enable)) { }
|
||||
//判斷是否登入
|
||||
if (!isLogin)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtility log = new LogUtility();
|
||||
log.writeErrorPath(ex.ToString()+ex.StackTrace);
|
||||
}
|
||||
/*
|
||||
if (actionContext == null)
|
||||
|
||||
Reference in New Issue
Block a user