Esempio n. 1
0
        public bool AssetInfo(long userid, out object info)
        {
            info = "";
            var user = userBLL.GetModel(userid);

            if (user == null)
            {
                info = "用户ID不存在";
                return(false);
            }

            lgk.BLL.tb_InviteInfo inviteInfoBLL = new lgk.BLL.tb_InviteInfo();
            var model = inviteInfoBLL.GetModel(1);

            Dictionary <string, object> dict = new Dictionary <string, object>();

            dict.Add("YD", user.Emoney);                                         //注册分
            dict.Add("WalletAddress", user.User010 == null ? "" : user.User010); //第三方交易平台钱包地址
            dict.Add("Intro", model == null ? "" : model.Intro);                 //介绍
            dict.Add("nickname", user.NiceName);                                 //昵称

            info = dict;
            return(true);
        }