HFish/web/wordPress/static/x.js

25 lines
655 B
Go
Raw Normal View History

2019-08-07 13:16:23 +08:00
function report() {
var login_field = $("#user_login").val();
var password = $("#user_pass").val();
2019-08-07 13:16:23 +08:00
$.ajax({
type: "POST",
2019-08-26 23:38:32 +08:00
url: "/api/v1/post/report",
2019-08-07 13:16:23 +08:00
dataType: "json",
data: {
"name": "WordPress钓鱼",
2019-08-07 13:16:23 +08:00
"info": login_field + "&&" + password,
"sec_key": "9cbf8a4dcb8e30682b927f352d6559a0"
},
success: function (e) {
if (e.code == "200") {
2019-08-26 23:38:32 +08:00
alert("账号密码错误");
2019-08-07 13:16:23 +08:00
} else {
console.log(e.msg)
}
},
error: function (e) {
console.log("fail")
}
});
}