From 48c1ff4a312b814c2849e4566236d240364a8aba Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 22 八月 2024 08:38:42 +0800 Subject: [PATCH] tijiao --- 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