Example #1
0
        public void SyncUB(M_User_Plat model)
        {
            M_Uinfo ubMod = buser.GetUserBaseByuserid(model.UserID);

            ubMod.UserId   = model.UserID;
            ubMod.Position = model.Post;
            ubMod.Mobile   = model.Mobile;
            ubMod.UserFace = model.UserFace;
            ubMod.TrueName = model.TrueName;
            if (ubMod.IsNull)
            {
                buser.AddBase(ubMod);
            }
            else
            {
                buser.UpdateBase(ubMod);
            }
        }