/// <summary>
        /// 积分购物车
        /// </summary>
        /// <param name="type">操作类型</param>
        /// <param name="userId">用户</param>
        /// <param name="entId">机构</param>
        /// <param name="goodsId">积分商品</param>
        /// <param name="num">数目</param>
        /// <returns></returns>
        public ActionResult IntegralCart()
        {
            try
            {
                string result;
                string userId = Request.Params["userId"].ToString();
                string entId  = Request.Params["entId"].ToString();
                string type   = Request.Params["type"].ToString();
                if (string.IsNullOrEmpty(userId))
                {
                    return(Content(JsonHelper.GetErrorJson(3, 0, "请登录后再加入礼品车"), "json"));
                }
                IntegralStoreDal integralStoreDal = new IntegralStoreDal();
                if (type == "addgwc" || type == "delGoods" || type == "changeNum")
                {
                    string  goodsId = Request.Params["goodsId"].ToString();
                    decimal num     = decimal.Parse(Request.Params["num"].ToString());
                    int     Temp    = integralStoreDal.AddGwc(type, userId, goodsId, entId, num);
                    string  msg;
                    if (Temp > 0)
                    {
                        switch (type)
                        {
                        case "addgwc": msg = "礼品车添加成功"; break;

                        case "delGoods": msg = "礼品车商品删除成功"; break;

                        case "changeNum": msg = "礼品车商品修改成功"; break;

                        default: msg = "未知操作"; break;
                        }
                        result = JsonHelper.GetErrorJson(0, 0, msg);
                    }
                    else
                    {
                        switch (type)
                        {
                        case "addgwc": msg = "礼品车添加失败"; break;

                        case "delGoods": msg = "礼品车商品删除失败"; break;

                        case "changeNum": msg = "礼品车商品修改失败"; break;

                        default: msg = "未知操作"; break;
                        }
                        result = JsonHelper.GetErrorJson(1, 0, msg);
                    }
                    return(Content(result, "json"));
                }
                if (type == "getAddress" || type == "getGwc")
                {
                    string msg = integralStoreDal.GetAddress(type, userId, entId);
                    return(Content(msg, "json"));
                }
                else
                {
                    result = JsonHelper.GetErrorJson(1, 0, "操作类型type无效");
                    return(Content(result, "json"));
                }
            }
            catch (Exception ex)
            {
                LogQueue.Write(LogType.Error, "IntegralStore/IntegralCart", ex.Message.ToString());
                return(Content(JsonHelper.GetErrorJson(1, 0, ex.Message.ToString()), "json"));
            }
        }