Himall.Web/Areas/Web/Controllers/RegisterController.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Himall.Core;
using Himall.Core.Helper;
using Himall.Core.Plugins.Message;
using Himall.IServices;
using Himall.Model;
using Himall.Web.Framework;
using Microsoft.CSharp.RuntimeBinder;
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Mvc;
namespace Himall.Web.Areas.Web.Controllers
{
public class RegisterController : BaseController
{
private const string CHECK_CODE_KEY = "regist_CheckCode";
public RegisterController()
{
}
[HttpPost]
public JsonResult CheckCheckCode(string checkCode)
{
return Json(new { success = true, result = (base.Session["regist_CheckCode"] == null ? false : checkCode.ToLower() == base.Session["regist_CheckCode"].ToString().ToLower()) });
}
[HttpPost]
public JsonResult CheckCode(string pluginId, string code, string destination)
{
object obj = Cache.Get(CacheKeyCollection.MemberPluginCheck(destination, pluginId));
if (obj != null && obj.ToString() == code)
{
Result result = new Result()
{
success = true,
msg = "验证正确"
};
return Json(result);
}
Result result1 = new Result()
{
success = false,
msg = "验证码不正确或者已经超时"
};
return Json(result1);
}
[HttpPost]
public JsonResult CheckManagerUser(string username)
{
bool flag = ServiceHelper.Create<IManagerService>().CheckUserNameExist(username, false);
return Json(new { success = true, result = flag });
}
[HttpPost]
public JsonResult CheckMobile(string mobile)
{
后面还有 96 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
