public IHttpActionResult UserLogin(UserLoginModelGet userLoginModelGet)
        {
            try
            {
                DataTable dtUserInfo = _userInfoDal.LoginUser(userLoginModelGet.Account, userLoginModelGet.PhoneAreaId, userLoginModelGet.Type, userLoginModelGet.Password);
                if (dtUserInfo.Rows.Count != 1)
                {
                    return(Json(new ResultDataModel <UserInfoModelResult> {
                        Code = -1, Messages = "用户名或密码错误"
                    }));
                }
                IList <UserInfoModelResult> list = ModelConvertHelper <UserInfoModelResult> .ConvertToModel(dtUserInfo);

                var model = list.First();
                model.Token    = ServerHelper.GetToken;
                model.RealRank = _userInfoDal.CheckUserVipRank(model.Id);
                WebCacheHelper.SetCache(model.Id + "_" + 1, model.Token);
                return(Json(new ResultDataModel <UserInfoModelResult> {
                    Data = model
                }));
            }
            catch (Exception exception)
            {
                LogHelper.error(exception.ToString());
                return(Json(new ResultDataModel <UserInfoModelResult> {
                    Code = 4001, Messages = "服务器繁忙,请稍后重试"
                }));
            }
        }
        public IHttpActionResult CheckStoreOrderPayState(PayDetailModelGet payDetailModelGet)
        {
            DataTable dtStoreOrderState = _storeOrderDal.CheckStoreOrderState(payDetailModelGet.OrderNo);

            if (dtStoreOrderState.Rows.Count != 1)
            {
                return(Json(new ResultDataModel <StoreOrderPayStateModelResult> {
                    Code = -1, Messages = "订单号不存在"
                }));
            }
            IList <StoreOrderPayStateModelResult> storeOrderPayStateModelResults =
                ModelConvertHelper <StoreOrderPayStateModelResult> .ConvertToModel(dtStoreOrderState);

            var model = storeOrderPayStateModelResults.FirstOrDefault();

            model.RealRank = _userInfoDal.CheckUserVipRank(Convert.ToUInt32(payDetailModelGet.UserId));
            return(Json(new ResultDataModel <StoreOrderPayStateModelResult> {
                Code = 0, Data = model
            }));
        }