Browse Source

add default nickname for default id

master
filesite 4 weeks ago
parent
commit
d399432e78
  1. 2
      plugins/Common.php

2
plugins/Common.php

@ -391,7 +391,7 @@ Class Common {
$dirPath = str_replace("/{$username}", "/{$dir}", $rootDir); $dirPath = str_replace("/{$username}", "/{$dir}", $rootDir);
$filepath = "{$dirPath}/README_nickname.txt"; $filepath = "{$dirPath}/README_nickname.txt";
$nickname = ''; $nickname = $dir; //默认昵称跟id相同
if (file_exists($filepath)) { if (file_exists($filepath)) {
$nickname = file_get_contents($filepath); $nickname = file_get_contents($filepath);
if (!empty($nickname)) { if (!empty($nickname)) {

Loading…
Cancel
Save