From 126feca0a78c30393f10083751cc14ceaf31d7ad Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 21 Nov 2023 15:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=97=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/Controllers/LoginController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/24Hour/Controllers/LoginController.cs b/24Hour/Controllers/LoginController.cs index 7a9b05d..400aba0 100644 --- a/24Hour/Controllers/LoginController.cs +++ b/24Hour/Controllers/LoginController.cs @@ -479,6 +479,10 @@ namespace _24Hour.Controllers UserModel.Id = Guid.NewGuid().ToString(); UserModel.usertype = 1; UserModel.audit = 2; + if (string.IsNullOrEmpty(UserModel.photo)) + { + UserModel.photo = "/CaseFile/resource/headicon.png"; + } //Δ¬ΘΟΓάΒλ UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); @@ -504,6 +508,10 @@ namespace _24Hour.Controllers //Δ¬ΘΟΓάΒλ UserModel.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); + if (string.IsNullOrEmpty(UserModel.photo)) + { + UserModel.photo = "/CaseFile/resource/headicon.png"; + } var num = await _db.Insertable(UserModel).ExecuteCommandAsync(); _db.CommitTran(); if (num > 0)