mirror of
https://github.com/201206030/novel-plus.git
synced 2025-07-15 13:46:39 +00:00
docs: 错别字修改
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>后台管理-登陆</title>
|
<title>后台管理-登录</title>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta http-equiv="Access-Control-Allow-Origin" content="*">
|
<meta http-equiv="Access-Control-Allow-Origin" content="*">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
|
@ -18,7 +18,7 @@ public enum ResponseStatus implements IResultCode {
|
|||||||
/**
|
/**
|
||||||
* 用户相关错误
|
* 用户相关错误
|
||||||
* */
|
* */
|
||||||
NO_LOGIN(1001, "未登录或登陆失效!"),
|
NO_LOGIN(1001, "未登录或登录失效!"),
|
||||||
VEL_CODE_ERROR(1002, "验证码错误!"),
|
VEL_CODE_ERROR(1002, "验证码错误!"),
|
||||||
USERNAME_EXIST(1003,"该手机号已注册!"),
|
USERNAME_EXIST(1003,"该手机号已注册!"),
|
||||||
USERNAME_PASS_ERROR(1004,"手机号或密码错误!"),
|
USERNAME_PASS_ERROR(1004,"手机号或密码错误!"),
|
||||||
|
@ -50,7 +50,7 @@ public class PayController extends BaseController {
|
|||||||
|
|
||||||
UserDetails userDetails = getUserDetails(request);
|
UserDetails userDetails = getUserDetails(request);
|
||||||
if (userDetails == null) {
|
if (userDetails == null) {
|
||||||
//未登录,跳转到登陆页面
|
//未登录,跳转到登录页面
|
||||||
httpResponse.sendRedirect("/user/login.html?originUrl=/pay/index.html");
|
httpResponse.sendRedirect("/user/login.html?originUrl=/pay/index.html");
|
||||||
} else {
|
} else {
|
||||||
//创建充值订单
|
//创建充值订单
|
||||||
|
@ -40,12 +40,12 @@ public class UserController extends BaseController {
|
|||||||
private final BookService bookService;
|
private final BookService bookService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登陆
|
* 登录
|
||||||
*/
|
*/
|
||||||
@PostMapping("login")
|
@PostMapping("login")
|
||||||
public RestResult<Map<String, Object>> login(User user) {
|
public RestResult<Map<String, Object>> login(User user) {
|
||||||
|
|
||||||
//登陆
|
//登录
|
||||||
UserDetails userDetails = userService.login(user);
|
UserDetails userDetails = userService.login(user);
|
||||||
|
|
||||||
Map<String, Object> data = new HashMap<>(1);
|
Map<String, Object> data = new HashMap<>(1);
|
||||||
|
@ -26,8 +26,8 @@ public interface UserService {
|
|||||||
UserDetails register(User user);
|
UserDetails register(User user);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户登陆
|
* 用户登录
|
||||||
* @param user 用户登陆信息类
|
* @param user 用户登录信息类
|
||||||
* @return jwt载体信息类
|
* @return jwt载体信息类
|
||||||
* */
|
* */
|
||||||
UserDetails login(User user);
|
UserDetails login(User user);
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
},
|
},
|
||||||
SaveComment: function (cmtBId, cmtCId, cmtDetail) {
|
SaveComment: function (cmtBId, cmtCId, cmtDetail) {
|
||||||
if (!isLogin) {
|
if (!isLogin) {
|
||||||
layer.alert('请先登陆');
|
layer.alert('请先登录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
||||||
@ -137,7 +137,7 @@
|
|||||||
|
|
||||||
SaveCommentReply: function (cmtBId, cmtCId, cmtDetail) {
|
SaveCommentReply: function (cmtBId, cmtCId, cmtDetail) {
|
||||||
if (!isLogin) {
|
if (!isLogin) {
|
||||||
layer.alert('请先登陆');
|
layer.alert('请先登录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="userBox cf">
|
<div class="userBox cf">
|
||||||
<div class="user_l">
|
<div class="user_l">
|
||||||
<form method="post" action="./login.html" id="form1">
|
<form method="post" action="./login.html" id="form1">
|
||||||
<h3 th:text="'登陆'+${application.website.name}"></h3>
|
<h3 th:text="'登录'+${application.website.name}"></h3>
|
||||||
<ul class="log_list">
|
<ul class="log_list">
|
||||||
<li><span id="LabErr"></span></li>
|
<li><span id="LabErr"></span></li>
|
||||||
<li><input name="txtUName" type="text" id="txtUName" placeholder="手机号码" class="s_input icon_name" /></li>
|
<li><input name="txtUName" type="text" id="txtUName" placeholder="手机号码" class="s_input icon_name" /></li>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="userBox cf">
|
<div class="userBox cf">
|
||||||
<div class="user_l">
|
<div class="user_l">
|
||||||
<form method="post" action="./login.html" id="form1">
|
<form method="post" action="./login.html" id="form1">
|
||||||
<h3 th:text="'登陆'+${application.website.name}"></h3>
|
<h3 th:text="'登录'+${application.website.name}"></h3>
|
||||||
<ul class="log_list">
|
<ul class="log_list">
|
||||||
<li><span id="LabErr"></span></li>
|
<li><span id="LabErr"></span></li>
|
||||||
<li><input name="txtUName" type="text" id="txtUName" placeholder="手机号码" class="s_input icon_name" /></li>
|
<li><input name="txtUName" type="text" id="txtUName" placeholder="手机号码" class="s_input icon_name" /></li>
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
},
|
},
|
||||||
SaveComment: function (cmtBId, cmtCId, cmtDetail) {
|
SaveComment: function (cmtBId, cmtCId, cmtDetail) {
|
||||||
if (!isLogin) {
|
if (!isLogin) {
|
||||||
layer.alert('请先登陆');
|
layer.alert('请先登录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="userBox cf">
|
<div class="userBox cf">
|
||||||
<div class="user_l">
|
<div class="user_l">
|
||||||
<form method="post" action="./login.html" id="form1">
|
<form method="post" action="./login.html" id="form1">
|
||||||
<h3 th:text="'登陆'+${application.website.name}"></h3>
|
<h3 th:text="'登录'+${application.website.name}"></h3>
|
||||||
<ul class="log_list">
|
<ul class="log_list">
|
||||||
<li><span id="LabErr"></span></li>
|
<li><span id="LabErr"></span></li>
|
||||||
<li><input name="txtUName" type="text" id="txtUName" placeholder="手机号码" class="s_input icon_name" /></li>
|
<li><input name="txtUName" type="text" id="txtUName" placeholder="手机号码" class="s_input icon_name" /></li>
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
},
|
},
|
||||||
SaveComment: function (cmtBId, cmtCId, cmtDetail) {
|
SaveComment: function (cmtBId, cmtCId, cmtDetail) {
|
||||||
if(!isLogin){
|
if(!isLogin){
|
||||||
layer.alert('请先登陆');
|
layer.alert('请先登录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
var cmtDetailTemp = cmtDetail.replace(/(^\s*)/g, "");
|
||||||
|
Reference in New Issue
Block a user