POST TIME:2021-05-24 03:00
$cmspath = ( (empty($cfg_cmspath) || !preg_match('/[/$]/', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath );在其下面加上:
if(substr($cmspath,-1,1) != '/') $cmspath .= '/';这一行代码就好了。
$cmspath = ( (empty($cfg_cmspath) || !preg_match('/[\/]$/', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath );就好了,发现这正则表问题,修改下就好了