diff --git a/config/define.php b/config/define.php index 78fb636..09a469e 100644 --- a/config/define.php +++ b/config/define.php @@ -27,7 +27,8 @@ define('WEIXIN_OPEN_GET_PERSONAL_INFORMATION','https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s'); define('CSS_URL', '//know.checkcopy.com'); - + //css/js版本 + define('CSS_JS_VERSION', '1.0.0000001'); define('ALIYUN_OSS_ACCESS_KEY_ID', 'LTAI5tRBq7yr1vcdvhqNMb7P'); define('ALIYUN_OSS_ACCESS_KEY_SECRET', 'E4No4AjlWGrHSULsR8apZkTAC8DMw6'); diff --git a/control/index.php b/control/index.php index a0c712a..fea1ade 100644 --- a/control/index.php +++ b/control/index.php @@ -12,11 +12,8 @@ class index extends publicBase { } public function login() { -// $url = $this->get('url'); -// -// $this->agent_login(); -// $msg = $this->get('msg'); -// $this->view['msg'] = $msg; -// $this->view['tb_auth_url'] = $GLOBALS['auth_url'][PAY_TYPE_TAOBAO]."?agentupgrade=2"; + } + + public function loginout() { } } diff --git a/index.php b/index.php index f69ccfc..127fc90 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,7 @@ error_reporting(E_ERROR); // 记录所有级别的错误 $this->control_name = $array[0]; $this->control_func = !isset($array[1]) || $array[1]=='' ? 'home' : $array[1]; - if(preg_match('/^(login|login_submit|2UcNOgLCeM.txt).*/', $this->control_name)){ + if(preg_match('/^(login|login_submit).*/', $this->control_name)){ $this->control_name = 'index'; $this->control_func = $array[0]; } @@ -68,7 +68,7 @@ error_reporting(E_ERROR); // 记录所有级别的错误 //登陆检查 $needlogin = false; if ($this->control_name == 'index') { - if (preg_match('/^(login|login_submit|2UcNOgLCeM.txt).*/', $this->control_func)) { + if (preg_match('/^(login|login_submit).*/', $this->control_func)) { $needlogin = false; } }elseif($this->control_name == 'callback'){ diff --git a/view/templates/index/login.html b/view/templates/index/login.html index a9f90af..1783959 100644 --- a/view/templates/index/login.html +++ b/view/templates/index/login.html @@ -7,7 +7,7 @@ <title>登陆页</title> <script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js" type="text/javascript"></script> <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> - <link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css"> + <link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css?v={$smarty.const.CSS_JS_VERSION}"> {literal} <style> .login-wrap { diff --git a/view/templates/weibo/home.html b/view/templates/weibo/home.html index 26e243b..4bc2c3f 100644 --- a/view/templates/weibo/home.html +++ b/view/templates/weibo/home.html @@ -5,8 +5,8 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> - <link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css"> - <link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/index.css"> + <link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css?v={$smarty.const.CSS_JS_VERSION}"> + <link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/index.css?v={$smarty.const.CSS_JS_VERSION}"> <script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js"></script> </head> @@ -181,6 +181,6 @@ </div> </div> </body> -<script src="{$smarty.const.CSS_URL}/js/index.js"></script> +<script src="{$smarty.const.CSS_URL}/js/index.js?v={$smarty.const.CSS_JS_VERSION}"></script> </html> \ No newline at end of file