移动系统liao
2024-09-24 72e71a7a31b14f30f38a2a3acecb7311049c608a
cylsg/cylsg.Application/LogoInController.cs
@@ -84,6 +84,9 @@
                //没有用户 ,需要新建用户
                var phone = await _wechatService.GetPhone(Param.Bindgetphonenumber);
                 user = await UserRes.GetFirstAsync(x => x.ItCode == phone);
                if(user == null) {
                user = new User
                {
@@ -94,12 +97,19 @@
                    ItCode = phone,
                    PassWord = "123456",
                    WxOpenId = opeid,
                    CreateBy="微信注册登录",
                    CreateTime = DateTime.UtcNow,
                };
                await UserRes.EzInsertAsync(user);
              user=    await UserRes.InsertReturnEntityAsync(user);
                }
                else
                {
                    user.WxOpenId = opeid;
                    await UserRes.EzUpdateAsync(user);
                }
               
            }
@@ -122,8 +132,6 @@
        }