Esempio n. 1
0
        /// <summary>
        /// 获取用户拥有的优惠券
        /// </summary>
        /// <param name="method"></param>
        /// <returns></returns>
        public string GetCoupons()
        {
            var loginUser = GetUserInfo();

            if (loginUser != null)
            {
                Guid managerId  = GetManagerId(loginUser);
                var  couponList = _active.GetCouponByUserId(loginUser.UserId);
                _response.Result = couponList;
                _response.Stutas = true;
            }
            else
            {
                _response.Stutas = false;
                _response.Msg    = "请先登录";
            }
            string result = Utils.SerializeObject(_response);

            return(result);
        }