diff --git a/app/index/controller/Base.php b/app/index/controller/Base.php index edd7468..2bd7250 100644 --- a/app/index/controller/Base.php +++ b/app/index/controller/Base.php @@ -40,7 +40,7 @@ class Base extends BaseController $this->assign('user_id', $this->userId); } //判断是否关闭站点。 - if (!web_config('web_close')) { + if (web_config('web_close')) { $this->error('网站暂时关闭!', '', 'stop'); } //判断后台统计配置是否开启 1 开启 diff --git a/public/template/default/pc/public/header.html b/public/template/default/pc/public/header.html index 449d039..660b71d 100644 --- a/public/template/default/pc/public/header.html +++ b/public/template/default/pc/public/header.html @@ -142,7 +142,7 @@ {else /} - + {/notempty} diff --git a/public/template/default/pc/user/login.html b/public/template/default/pc/user/login.html index dc8dd51..4fdc43a 100644 --- a/public/template/default/pc/user/login.html +++ b/public/template/default/pc/user/login.html @@ -25,14 +25,14 @@

登录账户

- 注册用户 + 注册用户
-
@@ -80,7 +80,7 @@ $("#login-note").text("登录中,请稍后"); $("#login-note").css("visibility", "visible"); $.post( - "{:url('/user/login/verify')}", + "{:url('/index/user/verify')}", { action: "login", username: username, @@ -109,7 +109,7 @@ function recodeimg() { $(".img-code").attr( "src", - "/user/login/captcha?d=" + Math.random() + "/index/user/captcha?d=" + Math.random() ); } diff --git a/public/template/default/pc/user/register.html b/public/template/default/pc/user/register.html index 726510d..6225d95 100644 --- a/public/template/default/pc/user/register.html +++ b/public/template/default/pc/user/register.html @@ -38,12 +38,12 @@
- +
已有账户?
- 立即登录 + 立即登录
@@ -64,7 +64,7 @@ }); function recodeimg() { - $('.img-code').attr('src', "/user/login/captcha?d=" + Math.random()); + $('.img-code').attr('src', "/index/user/captcha?d=" + Math.random()); } $('input[name="repassword"],input[name="username"],input[name="email"]').click(function () { @@ -114,7 +114,7 @@ $('#login-note').text('正在注册,请稍后'); $('#login-note').css('visibility', 'visible'); - $.post('/user/login/registerVerify', { + $.post('/index/user/registerVerify', { username: username, email: email, password: password,