Esempio n. 1
0
 /// <summary>
 /// 设置token无效结果
 /// </summary>
 /// <param name="actionContext"></param>
 /// <param name="code"></param>
 private void SetTokenInvalidResponse(HttpActionContext actionContext, ResultCode code)
 {
     actionContext.Response = actionContext.Request.CreateResponse(HttpStatusCode.OK, new ResultModel()
     {
         code = code, Message = code.GetFieldDisplay()
     });
 }