李昊 4 anni fa
parent
commit
c78ee49960

+ 1 - 0
GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -311,6 +311,7 @@ namespace GxPress.Repository.Implement
                     //用户不存在,自动注册
                     if (user == null)
                     {
+                        user=new User();
                         user.Name = request.Phone;
                         user.Phone = request.Phone;
                         user.Id = await InsertAsync(user);