This commit is contained in:
dimengzhe
2025-04-22 11:31:49 +08:00
parent e4f98271b6
commit 66419b39a7
3 changed files with 10 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -15,6 +15,7 @@ layui.use([ 'carousel', 'form' ], function() {
var url = basePath + "/captcha/captchaImage?type=" + type + "&timestamp=" + timestamp; var url = basePath + "/captcha/captchaImage?type=" + type + "&timestamp=" + 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 + "&timestamp=" + timestamp; var url = basePath + "/captcha/captchaImage?type=" + type + "&timestamp=" + 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',