private Response createUser(Request <GetUserRelatedFilter> req)
        {
            User user = new User();

            user.PetName       = req.Filter.PetName;
            user.Sex           = req.Filter.Sex;
            user.Password      = "******" + Ext.NewId(); //给默认密码
            user.Password      = user.Password.Substring(0, user.Password.Length - 8);
            user.WeiXinUnionId = req.Filter.WeiXinUnionId;
            user.HeadUrl       = req.Filter.HeadUrl;
            user.Mobile        = req.Filter.Mobile;
            Response rsp = new Response();

            if (!string.IsNullOrEmpty(req.Filter.WeiXinUnionId))
            {
                rsp       = new SaveQuickUser().RegisterUser(user);
                user.Code = rsp.Tag.ToString();
                rsp.Entities.Clear();
                rsp.Entities.Add(user);
            }
            else
            {
                rsp.IsSuccess = false;
                rsp.Message   = "创建用户失败";
            }

            return(rsp);
        }
        private Response createUser(Request <GetUserRelatedFilter> req)
        {
            string QQOpenId = req.Filter.QQOpenId;
            User   user     = new User();

            user.PetName  = req.Filter.PetName;
            user.Password = "******" + Ext.NewId(); //给默认密码
            user.Password = user.Password.Substring(0, user.Password.Length - 8);
            user.Sex      = req.Filter.Sex;
            user.Mobile   = req.Filter.Mobile;
            user.QQOpenId = QQOpenId;
            user.HeadUrl  = SystemHelper.Instance.DownloadImageFromURL(req.Filter.HeadUrl);
            Response rsp = new Response();

            if (!string.IsNullOrEmpty(QQOpenId) && !string.IsNullOrEmpty(req.Filter.PetName))
            {
                rsp       = new SaveQuickUser().RegisterUser(user);
                user.Code = rsp.Tag.ToString();
                rsp.Entities.Clear();
                rsp.Entities.Add(user);
            }
            else
            {
                rsp.IsSuccess = false;
                rsp.Message   = "登陆失败";
            }

            return(rsp);
        }