修复后台菜单问题
7
.env
@ -1,16 +1,15 @@
|
||||
APP_DEBUG = false
|
||||
APP_DEBUG = true
|
||||
|
||||
[APP]
|
||||
DEFAULT_TIMEZONE = Asia/Shanghai
|
||||
|
||||
[DATABASE]
|
||||
TYPE = mysql
|
||||
HOSTNAME = 43.133.71.191
|
||||
#HOSTNAME = 127.0.0.1
|
||||
HOSTNAME = 212.64.112.158
|
||||
DATABASE = yunzertest
|
||||
USERNAME = yunzertest
|
||||
PASSWORD = zKMDMEs7YP3SLDEF
|
||||
HOSTPORT = 3307
|
||||
HOSTPORT = 3388
|
||||
CHARSET = utf8
|
||||
DEBUG = true
|
||||
|
||||
|
||||
@ -372,8 +372,8 @@ class IndexController extends Base{
|
||||
try {
|
||||
// 验证上传的文件
|
||||
validate([
|
||||
'image'=>'filesize:51200|fileExt:jpg,png,gif,jpeg'
|
||||
])->check($file);
|
||||
'file'=>'filesize:104857600|fileExt:jpg,png,gif,jpeg'
|
||||
])->check(['file' => $files]);
|
||||
|
||||
// 存储文件到public磁盘的uploads目录
|
||||
$info = Filesystem::disk('public')->putFile('uploads', $files);
|
||||
|
||||
@ -23,7 +23,7 @@ use think\Model;
|
||||
class AdminSysMenu extends Model
|
||||
{
|
||||
// 设置表名
|
||||
protected $name = 'menu';
|
||||
protected $name = 'admin_sys_menu';
|
||||
|
||||
// 设置主键
|
||||
protected $pk = 'smid';
|
||||
|
||||
@ -54,7 +54,7 @@ class VisitStatsService
|
||||
$userId = $userId ?? Request::ip();
|
||||
|
||||
// 使用管道提高性能
|
||||
$pipe = $this->redis->multi();
|
||||
// $pipe = $this->redis->multi();
|
||||
|
||||
// 总访问量(PV)
|
||||
$pipe->incr($this->prefix.'total_visits');
|
||||
|
||||
|
After Width: | Height: | Size: 767 KiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 325 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 838 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 764 KiB |
|
After Width: | Height: | Size: 786 KiB |
|
After Width: | Height: | Size: 981 KiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 867 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 601 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 900 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 712 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 828 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 247 KiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 299 KiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 656 KiB |
@ -1,4 +1,4 @@
|
||||
<?php /*a:3:{s:61:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\index\welcome.php";i:1749433730;s:61:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\public\header.php";i:1746849526;s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\public\tail.php";i:1746709977;}*/ ?>
|
||||
<?php /*a:3:{s:61:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\index\welcome.php";i:1752202580;s:61:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\public\header.php";i:1750323451;s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\public\tail.php";i:1750323451;}*/ ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
@ -411,7 +411,7 @@ function getUserCounts() {
|
||||
fetch('<?php echo url("users/counts"); ?>')
|
||||
.then(response => response.json())
|
||||
.then(res => {
|
||||
console.log('用户统计接口返回数据:', res);
|
||||
// console.log('用户统计接口返回数据:', res);
|
||||
if (res.code === 0 && res.data) {
|
||||
// 更新用户总数
|
||||
document.querySelector('.stat-card:nth-child(1) .stat-value').textContent = res.data.total.toLocaleString();
|
||||
@ -447,7 +447,7 @@ function getArticleCounts() {
|
||||
fetch('<?php echo url("articles/counts"); ?>')
|
||||
.then(response => response.json())
|
||||
.then(res => {
|
||||
console.log('文章统计接口返回数据:', res);
|
||||
// console.log('文章统计接口返回数据:', res);
|
||||
if (res.code === 0 && res.data) {
|
||||
// 更新文章总数
|
||||
document.querySelector('.stat-card:nth-child(3) .stat-value').textContent = res.data.total.toLocaleString();
|
||||
@ -483,7 +483,7 @@ function getResourcesCounts() {
|
||||
fetch('<?php echo url("resources/counts"); ?>')
|
||||
.then(response => response.json())
|
||||
.then(res => {
|
||||
console.log('资源统计接口返回数据:', res);
|
||||
// console.log('资源统计接口返回数据:', res);
|
||||
if (res.code === 0 && res.data) {
|
||||
// 更新资源总数
|
||||
document.querySelector('.stat-card:nth-child(4) .stat-value').textContent = res.data.total.toLocaleString();
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?php /*a:1:{s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\index\index.php";i:1747638193;}*/ ?>
|
||||
<?php /*a:1:{s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\index\index.php";i:1750323451;}*/ ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?php /*a:1:{s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\login\index.php";i:1747615358;}*/ ?>
|
||||
<?php /*a:1:{s:59:"E:\Demos\DemoOwns\PHP\yunzer\app\admin\view\login\index.php";i:1750323451;}*/ ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
|
||||