修复vaptcha验证
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="../static/frame/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="../static/frame/static/css/style.css">
|
||||
<link rel="icon" href="../static/frame/static/image/code.png">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
<style>
|
||||
#canvas-cont {
|
||||
background-color: #222B3A;
|
||||
@@ -86,7 +86,7 @@
|
||||
url: 'ajax.php?mod=login',
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: 'username=' + data.field.username + '&password=' + data.field.password + '&token=' + token,
|
||||
data: 'username=' + data.field.username + '&password=' + data.field.password + '&accesstoken=' + token,
|
||||
success: function (data) {
|
||||
layer.close(loading);
|
||||
if (data.code === '1') {
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="../static/frame/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="../static/frame/static/css/style.css">
|
||||
<link rel="icon" href="../static/frame/static/image/code.png">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
<style>
|
||||
#canvas-cont {
|
||||
background-color: #222B3A;
|
||||
|
||||
@@ -99,7 +99,7 @@ switch ($_GET['mod']) {
|
||||
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
|
||||
<title>授权在线开通 - '.$G['config']['sitename'].'</title>
|
||||
<link rel="stylesheet" href="./mdl/material.min.css">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
</head>
|
||||
<body class="flat-blue landing-page">';
|
||||
$output .= '<div id="submit_div" style="padding: 20px;">';
|
||||
@@ -642,7 +642,7 @@ function dofill() {
|
||||
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
|
||||
<title>使用卡密'.$_GET['kami'].' - '.$G['config']['sitename'].'</title>
|
||||
<link rel="stylesheet" href="./mdl/material.min.css">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
</head>
|
||||
<body class="flat-blue landing-page">';
|
||||
$output .= '<div id="submit_div" style="padding: 20px;">';
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
|
||||
<title>套餐卡密在线使用开通授权 - <?php echo $G['config']['sitename'] ?></title>
|
||||
<link rel="stylesheet" href="./mdl/material.min.css">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
<?php include './function/color.inc.html' ?>
|
||||
</head>
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
|
||||
<title>授权绑定在线更换 - <?php echo $G['config']['sitename'] ?></title>
|
||||
<link rel="stylesheet" href="./mdl/material.min.css">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
<?php include './function/color.inc.html'?>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class Verification
|
||||
die(' <div class="vaptcha-init-main">
|
||||
<div class="vaptcha-init-loading">
|
||||
<a href="/" target="_blank">
|
||||
<img src="https://cdn.vaptcha.com/vaptcha-loading.gif" />
|
||||
<img src="https://r.vaptcha.net/public/img/vaptcha-loading.gif" />
|
||||
</a>
|
||||
<span class="vaptcha-text">Vaptcha启动中...</span>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@ class Verification
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$info = json_decode(curl_request('http://api.vaptcha.com/v2/validate', 'id=' . $G['config']['codevid'] . '&secretkey=' . $G['config']['codekey'] . '&token=' . $token . '&ip=' . get_real_ip()), true);
|
||||
$info = json_decode(curl_request('http://0.vaptcha.com/validate', 'id=' . $G['config']['codevid'] . '&secretkey=' . $G['config']['codekey'] . '&token=' . $token . '&ip=' . get_real_ip()), true);
|
||||
if ($info['success'] == '1') {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
|
||||
<title>代理在线开通 - <?php echo $G['config']['sitename'] ?></title>
|
||||
<link rel="stylesheet" href="./mdl/material.min.css">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
<?php include './function/color.inc.html'?>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
|
||||
<title>授权在线查询 - <?php echo $G['config']['sitename'] ?></title>
|
||||
<link rel="stylesheet" href="./mdl/material.min.css">
|
||||
<script src="https://cdn.vaptcha.com/v2.js"></script>
|
||||
<script src="https://v.vaptcha.com/v3.js"></script>
|
||||
<?php include './function/color.inc.html'?>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user