惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

Evan.Plus

ZUI.RE:一个域名的非典型归宿,以及我对”看新闻”这件事的重新理解 – Evan.Plus PIXPRO主题:移动端CSS优化 – Evan.Plus PIXPRO 主题:图片灯箱绑定教程(Fancybox 版) – Evan.Plus macOS 一键安装 Ropy:从终端到剪贴板历史,全程 30 秒 – Evan.Plus PIXPRO主题封面魔改教程 – Evan.Plus PIXPRO主题基础安装教程(持续更新) – Evan.Plus PIXPRO主题安装教程:XLoader PHP扩展的安装与配置 – Evan.Plus 34个顶级HTML的PPT设计模版 – Evan.Plus 世界,您好! – Evan.Plus
PIXPRO主题:pix-down.php报错修复 – Evan.Plus
Evan · 2026-06-05 · via Evan.Plus

如果你在构建产品的时候发现页面上方有报错,修复方法如下:

  • 根据上面的提示找到pix-down.php文件;
  • 找到文件中的对应代码

代码如下:

  • 把上面这段代码直接更换为:
public static function info($data){
    if(empty($data)){
        return '';
    }
    $arr = explode("\r\n",$data);
    $html = '';
    $res = array_map(function($line) {
        return explode("|", $line);
    }, $arr);
    $res = array_filter($res, function($v) {
        return !empty($v[0]);
    });
    
    foreach($res as $v){
        if(isset($v[1])){
            $html .= '<li class="info-item"><span>'.$v[0].' :</span>'.$v[1].'</li>';
        }
    }
    return '<div class="dd-info"><h4>资源属性</h4><div class="dd-info-inner">'.$html.'</div></div>';
}

然后,保存结束!修复后的效果如下:

注意⚠️ 在改代码前一定要把pix-down.php进行备份!