|
@@ -310,7 +310,11 @@ namespace GxPress.Repository.Implement
|
|
|
user = await GetByPhoneAsync(request.Phone);
|
|
|
//用户不存在,自动注册
|
|
|
if (user == null)
|
|
|
- throw new BusinessException("用户不存在");
|
|
|
+ {
|
|
|
+ user.Name = request.Phone;
|
|
|
+ user.Phone = request.Phone;
|
|
|
+ user.Id = await InsertAsync(user);
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
user = await GetByOpenIdAsync(request.OpenId);
|