Esempio n. 1
0
        public IHttpActionResult GetVipPoint(string openId = "")
        {
            var vip   = _vipService.GetVipInfo(openId);
            var point = _pointService.GetVipPoint(vip);

            if (point != null)
            {
                var pointRecord = _pointService.GetVipPointRecord(vip);
                return(Json(new { success = true, message = new { score = point.VipPoint, pointRecord = pointRecord } }));
            }
            return(Json(new { success = false, message = "发生错误!" }));
        }