Exemplo n.º 1
0
        /// 消费优惠券
        public static ConsumeWxCouponResult consumeCoupon(string ip, string companyCode, string couponflag, out string errorDesc)
        {
            var json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "consumeCoupon",
                companyCode   = companyCode,
                couponflag    = couponflag
            });

            return(HttpCon <ConsumeWxCouponResult> .run_json(ip, json, out errorDesc));
        }
Exemplo n.º 2
0
        //查询某店铺
        public static Customer queryCustomer(string ip, string companyCode, out string errorDesc)
        {
            string json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryCompany",
                companyCode   = companyCode
            });

            var jsresut = HttpCon <Customer> .run_json(ip, json, out errorDesc);

            return(jsresut);
        }
Exemplo n.º 3
0
        /// 查询某店某用户的优惠券记录,包括使用和未使用的
        public static ShopUserCoupontResult queryCouponByUser(string ip, string companyCode, string openid, out string errorDesc)
        {
            string json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryCouponByUser",
                openid        = openid,
                companyCode   = companyCode
            });

            var jsonResult = HttpCon <ShopUserCoupontResult> .run_json(ip, json, out errorDesc);

            return(jsonResult);
        }
Exemplo n.º 4
0
        //查询指定时间范围内的优惠券使用记录
        public static List <userCoupon> queryCouponRecords(string ip, string companyCode, string openid, string startTime, string endTime, out string errorDesc)
        {
            var json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryCouponRecords",
                companyCode   = companyCode,
                openid        = openid,
                startTime     = startTime,
                endTime       = endTime
            });

            return(HttpCon <List <userCoupon> > .run_json(ip, json, out errorDesc));
        }
Exemplo n.º 5
0
        //查询多个店的业绩
        public static List <ShopYeJi> queryYeJi(string ip, List <string> companyCodes, string date, string dateType, out string errorDesc)
        {
            string json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryMultiData",
                table         = "account",
                companyCode   = new JavaScriptSerializer().Serialize(companyCodes),
                dateType      = dateType,
                date          = date
            });

            var jsresut = HttpCon <List <ShopYeJi> > .run_json(ip, json, out errorDesc);

            return(jsresut);
        }
Exemplo n.º 6
0
        /// 查找门店优惠券
        public static List <ShopCoupon> queryCouponByCompany(string ip, string companyCode, out string errorDesc)
        {
            string json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryCouponByCompany",
                companyCode   = companyCode
            });

            var jsonResult = HttpCon <ShopCouponResult> .run_json(ip, json, out errorDesc);

            if (jsonResult == null)
            {
                return(null);
            }
            return(jsonResult.couponStatList);
        }
Exemplo n.º 7
0
        //查询店铺的微信客户反馈
        public static List <WxFeedback> queryCommentByCompany(string ip, string companyCode, out string errorDesc)
        {
            string json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryCommentByCompany",
                companyCode   = companyCode
            });

            var feedback = HttpCon <WxFeedBackResult> .run_json(ip, json, out errorDesc);

            if (feedback == null)
            {
                return(null);
            }

            return(feedback.commentList);
        }
Exemplo n.º 8
0
        public static List <WxUser> queryWxUser(string ip, string nickName, string companyCode, out string errorDesc)
        {
            string json = new JavaScriptSerializer().Serialize(new
            {
                operationType = "queryWxUser",
                nickName      = nickName,
                companyCode   = companyCode
            });

            var jsonResult = HttpCon <WxUserResult> .run_json(ip, json, out errorDesc);

            if (jsonResult == null)
            {
                return(null);
            }

            return(jsonResult.wxUserList);
        }