From d47565bee39818a5bed69696d151c018473f0f08 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期四, 15 八月 2024 11:10:17 +0800 Subject: [PATCH] 调整登录流程。完成登录测试,登录OK --- cylsg/cylsg.Application/LogoInController.cs | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cylsg/cylsg.Application/LogoInController.cs b/cylsg/cylsg.Application/LogoInController.cs index 6f00d81..8521f42 100644 --- a/cylsg/cylsg.Application/LogoInController.cs +++ b/cylsg/cylsg.Application/LogoInController.cs @@ -1,6 +1,7 @@ 锘縰sing cylsg.Authorization; using cylsg.Core; using cylsg.Model.UserModel; +using cylsg.utility.Extend; using EzWechat; using System; using System.Collections.Generic; @@ -39,7 +40,7 @@ var UserRes = new BaseRepository<User>(); - var user = await UserRes.GetFirstAsync(x => x.WxAppId == opeid); + var user = await UserRes.GetFirstAsync(x => x.WxOpenId == opeid); if (user == null) { throw Oops.Oh("娌℃壘鍒扮敤鎴�,闇�瑕侀噸鏂版敞鍐岀櫥褰�"); @@ -76,7 +77,7 @@ var UserRes = new BaseRepository<User>(); - var user = await UserRes.GetFirstAsync(x => x.WxAppId == opeid); + var user = await UserRes.GetFirstAsync(x => x.WxOpenId == opeid); if (user == null) { //娌℃湁鐢ㄦ埛 锛岄渶瑕佹柊寤虹敤鎴� @@ -86,12 +87,12 @@ { Avatar = phone, - Nickname = Param.Nickname, + Nickname = Param.Nickname??phone.PrivacyStr(), name = Param.Name ?? phone, Phone = phone, ItCode = phone, PassWord = "123456", - WxAppId = opeid, + WxOpenId = opeid, -- Gitblit v1.9.1