public GetApplicationResponse GetApplications(GetApplicationRequest request)
        {
            GetApplicationResponse response = new GetApplicationResponse();

            response.IsTrue = false;
            response.Status = 0;

            if (request != null)
            {
                try
                {
                    //验证Token
                    string         tokenMsg = "";
                    AppSettingInfo app      = ApiHelper.VerifyTokenAndGetApp(request.Token, out tokenMsg);
                    if (app != null)
                    {
                        //AES验证签名
                        if (ApiHelper.AESEncrypt(request.Token, request.TimeStamp, app.Seed) != request.Sign)
                        {
                            response.Msg = "签名验证不通过!";
                            return(response);
                        }
                        //验证API访问权限
                        if (ApiHelper.InterfaceRightCheck(app.AppSettingID))
                        {
                            response.Msg = "无访问接口权限,请联系管理员";
                            return(response);
                        }
                        List <AppSettingInfoSimple> appList = SystemFactory.Instance.GetAllAppConfig();

                        response.IsTrue = true;
                        response.Status = 1;
                        response.Msg    = "请求成功";
                        response.Data   = appList;
                    }
                    else
                    {
                        response.Msg = tokenMsg;
                    }
                }
                catch (Exception ex)
                {
                    response.Msg = ex.Message;
                }
            }
            else
            {
                response.Msg = "非法请求,请重试!";
            }

            return(response);
        }