phantomjs 在生成快照时,有些https 证书不支持,可以加参数 --ignore-ssl-errors=true --ssl-protocol=any 来解决。
phantomjs --ignore-ssl-errors=true --ssl-protocol=any /var/www/site/api/library/Screenshots.js https://www.baidu.com /var/www/site/upload/image/baidu.jpg
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3