李昊 5 년 전
부모
커밋
c78ee49960
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

+ 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);