public static bool IsWXUser(string openid)
        {
            Dictionary <string, string> dic = WXOperate.GetUserInfoByOpenID(openid);

            if (dic.Keys.Contains("subscribe"))
            {
                string tag = dic["subscribe"];
                if (tag == "1")
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            return(false);
        }
        public static WxUser GetWxUser(string code)
        {
            WxUser user = new WxUser();
            Dictionary <string, string> dic = WXOperate.GetUserInfo(code);

            if (dic != null && dic.Count > 0)
            {
                user.openid     = dic["openid"];
                user.nickname   = dic["nickname"];
                user.sex        = dic["sex"];
                user.province   = dic["province"];
                user.city       = dic["city"];
                user.country    = dic["country"];
                user.headimgurl = dic["headimgurl"];
                user.unionid    = dic["unionid"];
            }
            return(user);
        }
        public static WxUser GetWxUser(string openid)
        {
            WxUser user = new WxUser();
            Dictionary <string, string> dic = WXOperate.GetUserInfoByOpenID(openid);

            if (dic != null && dic.Count > 0)
            {
                user.subscribe = dic.Keys.Contains("subscribe") ? dic["subscribe"] : "0";
                user.openid    = dic["openid"];
                //user.nickname = dic["nickname"];
                //user.sex = dic["sex"];
                //user.language = dic["language"];
                //user.city = dic["city"];
                //user.province = dic["province"];
                //user.country = dic["country"];
                //user.headimgurl = dic["headimgurl"];
                //user.subscribe_time = dic["subscribe_time"];
            }
            return(user);
        }