refactor(linuxdo): 重构 Linuxdo 账号绑定页面
- 移除了多余的 HTML 结构,将页面内容嵌入到 PHP 逻辑中 - 优化了 JavaScript 函数定义,提高了代码的可读性和可维护性 - 调整了页面样式,简化了 CSS 样式规则 - 重构了 PHP 代码,提高了代码的逻辑清晰度
This commit is contained in:
22
linuxdo.php
22
linuxdo.php
@@ -137,21 +137,8 @@ function get_curl($url, $post = 0, $referer = 0, $cookie = 0, $header = 0, $ua =
|
||||
curl_close($ch);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
?>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php if (empty($row)) { ?>
|
||||
if (empty($row)) {
|
||||
?>
|
||||
当前尚未有你的游戏账号,请选择<br>
|
||||
<a onclick="registerDirect">Linuxdo账号绑定</a></br>
|
||||
<input type="hidden" id="linuxdo" value="<?= $userInfo['user_username'] ?>">
|
||||
@@ -192,7 +179,4 @@ function get_curl($url, $post = 0, $referer = 0, $cookie = 0, $header = 0, $ua =
|
||||
disableautocomplete>
|
||||
<input type="password" id="password" placeholder="请输入密码">
|
||||
<button type="submit" @click="linkAccount">绑定并登录</button>
|
||||
<?php } ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user