移动系统liao
2024-08-15 d47565bee39818a5bed69696d151c018473f0f08
cylsg/cylsg.Application/LogoInController.cs
@@ -1,6 +1,7 @@
using 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,