Skip to content

Commit 3d7c0cb

Browse files
committed
修改一下更新个人信息BUG
1 parent 0022f80 commit 3d7c0cb

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

admin/src/main/resources/public/addBlog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
hljs.initHighlightingOnLoad();
2020
</script>
2121
<script type="text/javascript">
22-
$(function () {
23-
$("#textarea-1").markDownEditor({});
24-
});
25-
</script>
22+
$(function () {
23+
$("#textarea-1").markDownEditor({});
24+
});
25+
</script>
2626
</head>
2727
<body>
2828
<form action="/admin/blog/add" method="post">

web/src/main/java/info/xiaomo/web/controller/UserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public HashMap<String, Object> update(
177177
) throws UserNotFoundException, IOException {
178178
UserModel userModel = service.findUserByEmail(email);
179179
//找不到用户
180-
if (userModel != null) {
180+
if (userModel == null) {
181181
result.put(code, error);
182182
return result;
183183
}

web/src/main/resources/public/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>用户登陆</title>
66
</head>
77
<body>
8-
<form action="/api/web/user/login" method="post">
8+
<form action="/web/user/login" method="post">
99
<input type="text" name="userName" title=""><br>
1010
<input type="password" name="password" title=""><br>
1111
<button type="submit">登陆</button>

web/src/main/resources/public/register.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css">
77
</head>
88
<body>
9-
<form action="/api/web/user/register" method="post" enctype="multipart/form-data">
9+
<form action="/web/user/update" method="post" enctype="multipart/form-data">
1010
<div class="container">
1111
<div class="panel panel-default">
1212
<div class="panel-heading">

web/src/main/resources/public/test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$.ajax({
1212
cache: true,
1313
type: "POST",
14-
url: '/api/web/user/register',
14+
url: '/web/user/register',
1515
data: $('#aform').serialize(),
1616
async: false,
1717
error: function (request) {

web/src/main/resources/public/update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css">
77
</head>
88
<body>
9-
<form action="/api/web/user/upate" method="post">
9+
<form action="/web/user/upate" method="post">
1010
<div class="container">
1111
<div class="panel panel-default">
1212
<div class="panel-heading">

0 commit comments

Comments
 (0)