修改
This commit is contained in:
@@ -95,7 +95,7 @@ public class EMAccountController extends BaseController {
|
|||||||
return modelMap;
|
return modelMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
account.setPassword(Md5Utils.hash("c1234567"));
|
account.setPassword(Md5Utils.hash("Yxt@67508182"));
|
||||||
accountService.add4m(account);
|
accountService.add4m(account);
|
||||||
|
|
||||||
modelMap.put(RESULT, true);
|
modelMap.put(RESULT, true);
|
||||||
@@ -103,6 +103,11 @@ public class EMAccountController extends BaseController {
|
|||||||
return modelMap;
|
return modelMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String pa = Md5Utils.hash("Yxt@67508182");
|
||||||
|
System.out.println(pa);
|
||||||
|
}
|
||||||
|
|
||||||
@RequestMapping("/update")
|
@RequestMapping("/update")
|
||||||
public @ResponseBody ModelMap update(HttpServletRequest request, EAccount account) {
|
public @ResponseBody ModelMap update(HttpServletRequest request, EAccount account) {
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public class PAccountController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
account.setId(null);
|
account.setId(null);
|
||||||
account.setPassword(Md5Utils.hash("k1234567"));
|
account.setPassword(Md5Utils.hash("Yxt@67508182"));
|
||||||
accountService.add(account);
|
accountService.add(account);
|
||||||
|
|
||||||
modelMap.put(RESULT, true);
|
modelMap.put(RESULT, true);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ layui.use([ 'carousel', 'form' ], function() {
|
|||||||
var url = basePath + "/captcha/captchaImage?type=" + type + "×tamp=" + timestamp;
|
var url = basePath + "/captcha/captchaImage?type=" + type + "×tamp=" + timestamp;
|
||||||
console.log("点击验证码啦啦啦啦啦")
|
console.log("点击验证码啦啦啦啦啦")
|
||||||
$(".imgcode").attr("src", url);
|
$(".imgcode").attr("src", url);
|
||||||
|
$(".imgcode").data("ts", timestamp); // 👈 存一下
|
||||||
}
|
}
|
||||||
|
|
||||||
// 页面加载时刷新验证码
|
// 页面加载时刷新验证码
|
||||||
@@ -28,6 +29,7 @@ layui.use([ 'carousel', 'form' ], function() {
|
|||||||
var type = system_config?.captchaType || "math";
|
var type = system_config?.captchaType || "math";
|
||||||
var url = basePath + "/captcha/captchaImage?type=" + type + "×tamp=" + timestamp;
|
var url = basePath + "/captcha/captchaImage?type=" + type + "×tamp=" + timestamp;
|
||||||
$(this).attr("src", url);
|
$(this).attr("src", url);
|
||||||
|
$(".imgcode").data("ts", timestamp); // 👈 存一下
|
||||||
});
|
});
|
||||||
// 监听提交
|
// 监听提交
|
||||||
form.on('submit(login_)', function(data) {
|
form.on('submit(login_)', function(data) {
|
||||||
@@ -57,7 +59,7 @@ layui.use([ 'carousel', 'form' ], function() {
|
|||||||
"telephone":telephone,
|
"telephone":telephone,
|
||||||
"password":MD5(password),
|
"password":MD5(password),
|
||||||
"captcha":captcha,
|
"captcha":captcha,
|
||||||
"timestamp":timestamp
|
"timestamp":$(".imgcode").data("ts")
|
||||||
},
|
},
|
||||||
type : 'post',
|
type : 'post',
|
||||||
dataType : 'json',
|
dataType : 'json',
|
||||||
|
|||||||
Reference in New Issue
Block a user