Exemple #1
0
 public BaseResponse <bool> IsAuthorized(IsAuthorizedParameter param)
 {
     if (this.ValidateData <IsAuthorizedParameter>(param))
     {
         return(utilityManager.IsAuthorized(param));
     }
     else
     {
         BaseResponse <bool> result = new BaseResponse <bool>();
         result.IsSuccessful = false;
         result.Code         = "001371";
         LogHelper.WriteLog(string.Format("未通过安全验证:({0}:{1}", result.Code, result.Reason));
         return(result);
     }
 }