mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-09 04:19:32 +08:00
文件夹/文件去除UID命名规则
This commit is contained in:
parent
e04ea3f9e1
commit
129039904a
@ -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',
|
Loading…
Reference in New Issue
Block a user