该问题已被锁定!
2
关注
2055
浏览

为什么首页打开非常慢

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
技术-安辰 超级管理员 用户来自于: 安徽省合肥市
2020-09-21 09:14

你好,这种问题一般跟服务器有关;

可能存在的原因有:

1、文件读取写入权限的问题

2、建议找到system/functions.app.php 中 找到get_avatar_url函数,删除以下代码试试是否可以正常访问

if(get_hook_info('osd')['state']==1 and get_plugins_config('osd')['base']['status']!='no')
{
if($size==$key)
{
if(!$avatar_file_arr[$uid])
{
$avatar_file_arr[$uid] = AWS_APP::model('account')->fetch_one('users','avatar_file',"uid=$uid");
}
$url = $avatar_file_arr[$uid];
if(strstr($url, 'aliyuncs') && file_get_contents($url))
{
$url=$url.'?x-oss-process=image/resize,m_fixed,h_'.$val['h'].',w_'.$val['w'].'#';
}
elseif(strstr($url, 'myqcloud') && file_get_contents($url))
{
$url = $url . '?imageView2/1/w/' . $val['w'] . '/h/' . $val['h'];
}else{
continue;
}
return $url;
}
}

或者屏蔽该函数返回默认头像测试试下

关于作者

msnshow 注册会员

这家伙很懒,还没有设置简介

问题动态

发布时间
2020-09-21 09:08
更新时间
2020-09-21 09:14
关注人数
2 人关注

推荐内容

公告越出页面了
为什么回复文章,文章的排序不会提前到第一位?
这算是bug吗
我又发现了一个问题。。前台显示的是活动人数那一项,后台显示的是活动金额?
四个问题和BUG
2.2.1版,static/css/default/common.css一些错误问题
问官方一个小问题
BUG~~~!! 邀请别人回答问题,点开没有问题。
WeCenter 3.1.7 bug 乱码希望官方修复