文件夹/文件去除UID命名规则

This commit is contained in:
wispx 2019-03-05 16:38:30 +08:00
parent e04ea3f9e1
commit 129039904a

View File

@ -8,11 +8,8 @@
// [命名规则配置文件]
use think\facade\Session;
$time = time();
$md5 = md5('LSKY PRO' . uniqid() . time());
$uid = Session::has('uid') ? Session::get('uid') : 0;
return [
'path' => [
@ -82,12 +79,6 @@ return [
'explain' => 'md5(非文件md5)',
'value' => substr($md5, 8, 16),
],
[
'name' => '{uid}',
'example' => '1',
'explain' => '用户ID(用户从网页端登录可用否则为0)',
'value' => $uid,
],
[
'name' => '{rend-character}',
'example' => 'HgTLmGcDceplMduF',
@ -162,12 +153,6 @@ return [
'explain' => 'md5(非文件md5)',
'value' => substr($md5, 8, 16),
],
[
'name' => '{uid}',
'example' => '1',
'explain' => '用户ID(用户从网页端登录可用否则为0)',
'value' => $uid,
],
[
'name' => '{rend-character}',
'example' => 'HgTLmGcDceplMduF',