wxr
2020-11-12 a715181089be0d31cd737a5367ffd02690b9d77f
HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs
@@ -75,13 +75,20 @@
                    try
                    {
                        var headImageString = dataStr.GetValue("HeadImage").ToString();
                        var jsonString = Newtonsoft.Json.JsonConvert.SerializeObject(headImageString);
                        var headImageBytes = Newtonsoft.Json.JsonConvert.DeserializeObject<byte[]>(jsonString);
                        var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/", mInfo.DistributedMark + ".png");
                        fs = new FileStream(filePath, FileMode.Create, FileAccess.Write);
                        fs.Write(headImageBytes, 0, headImageBytes.Length);
                        fs.Flush();
                        mInfo.headImagePagePath = filePath;
                        if (!string.IsNullOrEmpty(headImageString))
                        {
                            var jsonString = Newtonsoft.Json.JsonConvert.SerializeObject(headImageString);
                            var headImageBytes = Newtonsoft.Json.JsonConvert.DeserializeObject<byte[]>(jsonString);
                            var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/", mInfo.DistributedMark + ".png");
                            fs = new FileStream(filePath, FileMode.Create, FileAccess.Write);
                            fs.Write(headImageBytes, 0, headImageBytes.Length);
                            fs.Flush();
                            mInfo.headImagePagePath = filePath;
                        }
                        if(string.IsNullOrEmpty(mInfo.Nickname))
                        {
                            mInfo.Nickname = mInfo.UserName;
                        }
                    }
                    catch (Exception ex)
                    {
@@ -130,7 +137,7 @@
                    var tip = new Tip()
                    {
                        Text = tipStr,
                        CloseTime = 3,
                        CloseTime = 1,
                        Direction = AMPopTipDirection.None
                    };
                    tip.Show(bodyView);
@@ -189,7 +196,7 @@
                    {
                        new Tip()
                        {
                            CloseTime = 3,
                            CloseTime = 1,
                            Text = Language.StringByID(StringId.NicknameCannotBeEmpty),
                            Direction = AMPopTipDirection.None,
                        }.Show(bodyView);
@@ -228,7 +235,7 @@
                                    var tip = new Tip()
                                    {
                                        Text = tipStr,
                                        CloseTime = 3,
                                        CloseTime = 1,
                                        Direction = AMPopTipDirection.None
                                    };
                                    tip.Show(bodyView);
@@ -253,7 +260,6 @@
            };
            btn1.MouseUpEventHandler = eventHandler;
            btn2.MouseUpEventHandler = eventHandler;
        }
        /// <summary>
@@ -292,7 +298,7 @@
                                var tip = new Tip()
                                {
                                    Text = tipStr,
                                    CloseTime = 3,
                                    CloseTime = 1,
                                    Direction = AMPopTipDirection.None
                                };
                                tip.Show(bodyView);
@@ -317,6 +323,5 @@
            btn2.MouseUpEventHandler = eventHandler;
        }
    }
}