AyaWo.Business/UsersInfoSys/UsersInfoService.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AyaWo.DB;
using AyaWo.Util;
namespace AyaWo.Business
{
public class UsersInfoService
{
public static UsersInfoSys CheckLogin(string username, string password)
{
try
{
UsersInfoSys usersInfoSys = new UsersInfoSys();
if (username.IsNullOrWhiteSpace())
{
usersInfoSys.LoginMsg = "用户名为空....";
return usersInfoSys;
}
if (password.IsNullOrWhiteSpace())
{
usersInfoSys.LoginMsg = "密码为空....";
return usersInfoSys;
}
usersInfoSys = ctx.Init().Single<UsersInfoSys>("select * from usersinfo where Account=@0 and Password=@1 ", username, password);
if (usersInfoSys != null)
{
usersInfoSys.LoginOk = true;
}
else
{
usersInfoSys.LoginOk = false;
usersInfoSys.LoginMsg = "用户名或者密码错误";
}
return usersInfoSys;
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
public static int UpdataPassWorrd(UsersInfoSys obj)
{
try
{
//var ty = ctx.Init().Get<UsersInfoSys>(obj.UserID);
后面还有 195 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。