css版本设置 #1

Merged
liuyu merged 1 commits from wpd_css into master 2 months ago
  1. 3
      config/define.php
  2. 9
      control/index.php
  3. 4
      index.php
  4. 2
      view/templates/index/login.html
  5. 6
      view/templates/weibo/home.html

3
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('WEIXIN_OPEN_GET_PERSONAL_INFORMATION','https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s');
define('CSS_URL', '//know.checkcopy.com'); 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_ID', 'LTAI5tRBq7yr1vcdvhqNMb7P');
define('ALIYUN_OSS_ACCESS_KEY_SECRET', 'E4No4AjlWGrHSULsR8apZkTAC8DMw6'); define('ALIYUN_OSS_ACCESS_KEY_SECRET', 'E4No4AjlWGrHSULsR8apZkTAC8DMw6');

9
control/index.php

@ -12,11 +12,8 @@ class index extends publicBase {
} }
public function login() { public function login() {
// $url = $this->get('url'); }
//
// $this->agent_login(); public function loginout() {
// $msg = $this->get('msg');
// $this->view['msg'] = $msg;
// $this->view['tb_auth_url'] = $GLOBALS['auth_url'][PAY_TYPE_TAOBAO]."?agentupgrade=2";
} }
} }

4
index.php

@ -31,7 +31,7 @@ error_reporting(E_ERROR); // 记录所有级别的错误
$this->control_name = $array[0]; $this->control_name = $array[0];
$this->control_func = !isset($array[1]) || $array[1]=='' ? 'home' : $array[1]; $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_name = 'index';
$this->control_func = $array[0]; $this->control_func = $array[0];
} }
@ -68,7 +68,7 @@ error_reporting(E_ERROR); // 记录所有级别的错误
//登陆检查 //登陆检查
$needlogin = false; $needlogin = false;
if ($this->control_name == 'index') { 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; $needlogin = false;
} }
}elseif($this->control_name == 'callback'){ }elseif($this->control_name == 'callback'){

2
view/templates/index/login.html

@ -7,7 +7,7 @@
<title>登陆页</title> <title>登陆页</title>
<script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js" type="text/javascript"></script> <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> <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} {literal}
<style> <style>
.login-wrap { .login-wrap {

6
view/templates/weibo/home.html

@ -5,8 +5,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Document</title>
<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}">
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/index.css"> <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> <script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js"></script>
</head> </head>
@ -181,6 +181,6 @@
</div> </div>
</div> </div>
</body> </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> </html>
Loading…
Cancel
Save