织梦开启绝对路径后软件模型,下载地址填https://开头的,调用出来会显示 域名+https://网址,如下图所示:
织梦绝对路径下载地址异常
分享解决方法:
1、打开 /plus/download.php 找到 大概在 147行
if(!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link))
修改为:
if(!preg_match("#^http:\/\/|^https:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link))
向下找,大概159行
#http 改成 (#http|https)
2、打开 /include/taglib/channel/softlinks.lib.php 找到 大概在 87行
if(!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link))
修改为:
if(!preg_match("#^http:\/\/|^https:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link))
向下找,大概在 109行
#http 改成 (#http|https)
好了到此为止,重新生成html页面后,软件下载地址已恢复正常。