diff --git a/app/admin/view/default/config/index.html b/app/admin/view/default/config/index.html index d26e46e3d..1faa93a10 100755 --- a/app/admin/view/default/config/index.html +++ b/app/admin/view/default/config/index.html @@ -43,7 +43,7 @@ {{/foreach}} -
1. 默认背景图片位于[ public/static/admin/default/images/login ]目录下
2. 变更图片后、需要在[ app/admin/controller/Admin.php ]文件中[ LoginInfo ]方法中修改[ bg_images_list ]变量
一些常用的数据加解密使用、比如用户登录信息加密临时存储
+1. 默认空、则仅对当前访问域名有效
+2. 如需要二级域名也共享cookie则填写顶级域名、如:baidu.com
+2. 站点域名未设置则使用当前站点域名域名地址[ {{$my_domain}} ]
2. 附件和静态地址未设置则使用当前站点静态域名地址[ {{$my_public_url}} ]
+3. 如服务器端不是以public设为根目录的、则这里配置【附件cdn域名、css/js静态文件cdn域名】需要后面再加public、如:{{$my_public_url}}public/
在命令行模式下运行项目,该区域地址必须配置、否则项目中一些地址会缺失域名信息。
请勿乱配置、错误地址会导致网站无法访问(地址配置以http开头)
diff --git a/app/common.php b/app/common.php index 879c51ff3..a2025a7fd 100755 --- a/app/common.php +++ b/app/common.php @@ -2559,8 +2559,7 @@ function Authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) $ckey_length = 4; // 密匙 - // $GLOBALS['discuz_auth_key'] 这里可以根据自己的需要修改 - $key = md5($key ? $key : 'shopxo'); + $key = md5(empty($key) ? MyC('common_data_encryption_secret', 'shopxo', true) : $key); // 密匙a会参与加解密 $keya = md5(substr($key, 0, 16)); diff --git a/app/service/ConfigService.php b/app/service/ConfigService.php index add9c69c4..e74b810ac 100755 --- a/app/service/ConfigService.php +++ b/app/service/ConfigService.php @@ -110,6 +110,9 @@ class ConfigService // 是否采用https连接商店 'common_is_https_connect_store', + + // cookie有效域名 + 'common_cookie_domain', ]; /** diff --git a/config/cookie.php b/config/cookie.php index b97a3cc1d..264f1aff3 100644 --- a/config/cookie.php +++ b/config/cookie.php @@ -18,7 +18,7 @@ return [ // cookie 保存路径 'path' => '/', // cookie 有效域名 - 'domain' => __MY_MAIN_DOMAIN__, + 'domain' => MyFileConfig('common_cookie_domain', '', '', true), // cookie 启用安全传输 'secure' => false, // httponly设置 diff --git a/public/static/common/css/common.css b/public/static/common/css/common.css index 15c95e665..5ef0a1b04 100755 --- a/public/static/common/css/common.css +++ b/public/static/common/css/common.css @@ -48,6 +48,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom: .chosen-container { width: 100% !important; } .am-tagsinput { display: block; padding: 3px 5px; border-radius: 2px; min-height: 30px; } .chosen-choices, .chosen-single { border-radius: 2px; } +.chosen-choices li { overflow: hidden; } .chosen-choices li.search-field input[type="text"] { height: 29px !important; } .chosen-choices li.search-field input[type="text"]:hover, .am-tagsinput input[type="text"]:hover { box-shadow: 0 0 0 #fff !important; border: 0 !important; } @@ -61,6 +62,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom: .chosen-disabled .chosen-choices, .chosen-disabled .chosen-single { background-color: #ccc; } .chosen-disabled .search-choice { background: #d6d6d6 !important; } .chosen-container-multi .chosen-choices li.search-choice {margin: 4px 4px 4px 0;} +.chosen-container-multi .chosen-choices li.search-choice .search-choice-close { top: 0; right: 0; padding: 2px; background: #f4f4f4; width: auto; height: auto;} /** * 公共提示信息