Merge pull request #20 from AnonymousDotNet/lida_dev

Lida dev
This commit is contained in:
Haiping 2024-10-11 07:13:46 -05:00 committed by GitHub
commit 07fcc8d24f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -544,6 +544,11 @@ public class UserService : IUserService
return false;
}
if ((record.UserName.Substring(0, 3) == "+86" || record.FirstName.Substring(0, 3) == "+86") && phone.Substring(0, 3) != "+86")
{
phone = $"+86{phone}";
}
db.UpdateUserPhone(record.Id, phone);
return true;
}