作者 王智

'测试项目tree'

commit a632a238402db1270415722c5ecd7f89caac68cd (HEAD -> master, origin/master)
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 13:55:08 2021 +0800
xiugai
commit 0d4ce440213bc63fcf82e0c7344b2c57dd8c76f8
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 13:54:52 2021 +0800
xiugai
commit 63db9e9cf7cfeeab24cef11065f08a91ff7fb74b
Author: bronet <yyh@bronet.cn>
Date: Sat Mar 27 13:54:10 2021 +0800
阅读记录
commit 13d67a970abdfabef12be2606f27db0170986368
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 10:02:41 2021 +0800
xiugai
commit 0fdde7be458fc778754c035cccd9efc286ea1ac1
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:54:57 2021 +0800
xiugai
commit 9bf8912e53a3d3843b7597719affe5a9e78cadc5
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:54:22 2021 +0800
xiugai
commit 7fbe6aea3472093d2983367fe638040a5236d0af
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:54:16 2021 +0800
xiugai
commit 95eb59fece600a976e1081064295bdf22cd93e25
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:53:56 2021 +0800
xiugai
commit ca689a205808f81719cd15c7e74ec03861c7b3fe
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:53:25 2021 +0800
xiugai
commit 4fd3399045bdbcd900ade04dbf7ffe3840ad7380
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:52:31 2021 +0800
xiugai
commit dd3a280ce5a588fdfb5ee2c4140c7cc4d6c3526c
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:52:03 2021 +0800
xiugai
commit 5a120add50444fd588f7eefc61010bd15e8ff1e7
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:51:39 2021 +0800
xiugai
commit 97334e8fb617c8d828b4cd690948f53f4d6c1354
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:51:08 2021 +0800
xiugai
commit dbc6144a8143c563e9908005e50a92be75cb35b7
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:50:56 2021 +0800
xiugai
commit e9ae747ac47dd8ce20af59f0267e63d8e130c5f3
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:50:20 2021 +0800
xiugai
commit 724f0a400052f52facaef16d912b0e770f42fbca
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:48:57 2021 +0800
xiugai
commit 407604dd1439913507e8a9f6bcaab7bf49c584cd
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:48:45 2021 +0800
xiugai
commit 7832761006ce28a86d6f9d2068cb043c6d7d2d12
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:48:05 2021 +0800
xiugai
commit 6c8fe09a6890d51a9b2858ead18b0a276afb7909
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:47:26 2021 +0800
xiugai
commit dff4dbb9e377b5105e201840965e81780f7f915b
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:47:05 2021 +0800
xiugai
commit ef2d97da39bb23d589404fe8c76a0e15944645e4
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:45:25 2021 +0800
xiugai
commit 2c78c2a9179f72e42ebbf21330acc0dfcf5dc361
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:45:09 2021 +0800
xiugai
commit 144f3538925059a80ae83d73211488fb7c8e4d57
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:36:08 2021 +0800
xiugai
commit 28a794e898995eb2ff7a02d4d61e8625400caff2
Author: 王智 <wz@bronet.cn>
Date: Sat Mar 27 09:00:10 2021 +0800
'pdf'
commit bd6cb02c925fc60248d2edf40383efce7af50a40
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 18:23:02 2021 +0800
'pdf'
commit af419e2c4e528082d3d66d284a72c132372004eb
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 17:35:10 2021 +0800
xiugai
commit 0d895d53fd0a10e84543fcd4b2d892b983972f53
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 17:18:07 2021 +0800
xiugai
commit 75b62a113cc6001fead94df5ffe2584304bb5e1a
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 17:01:11 2021 +0800
xiugai
commit 41fefa8ba05e42193c6ae691b8647c9ed6274437
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:59:17 2021 +0800
xiugai
commit e0c98158cdf3aa60d31334aa9e570c92e2360428
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:57:39 2021 +0800
xiugai
commit bafaf3846da53bf658e2017df04223ea0510a713
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:57:15 2021 +0800
xiugai
commit ac35c202a8c13ce3f430abfc22631fee2bbe4f19
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:56:41 2021 +0800
xiugai
commit ca5ea52868334a778d3d710a8d90810962df2167
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:56:00 2021 +0800
xiugai
commit c906141d8391444b06121f5926fe91941cb3df3b
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:55:11 2021 +0800
xiugai
commit fecc70ea3b3d2817274c591f2886798a89cff1f8
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:54:27 2021 +0800
xiugai
commit 37bb943cab80c0948cb7dd72ca0854c0cb9aa597
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:53:25 2021 +0800
xiugai
commit ba4904fa7a8db660838983f4fffd99674031fa72
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:52:53 2021 +0800
xiugai
commit 8f748b77ec3a003643a0c7ea306adf4a1b7a7cd8
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:49:27 2021 +0800
xiugai
commit 7286b1aa16a14069c77bb656b8ca3a11fc45508d
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 16:47:08 2021 +0800
xiugai
commit 169b333e5186ea7adb7468febc511d321652bc59
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 15:20:55 2021 +0800
'pdf'
commit 90d5e9ac3f31babe8b5255d56321aaf74eeb4675
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 15:03:29 2021 +0800
xiugai
commit 755d5a9c9e9f0947a110057318667cc2b3799085
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 13:23:22 2021 +0800
xiugai
commit 8a3935f6801c7f2e27a635179c556a78dcd525e7
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 10:05:18 2021 +0800
xiugai
commit dab4fc6835107c1a9132bb1d5fd8f52241c09556
Author: 王智 <wz@bronet.cn>
Date: Fri Mar 26 09:08:04 2021 +0800
xiugai
commit 2409d9ffc9c68157548ef9fa222d6da570571561
Author: bronet <yyh@bronet.cn>
Date: Fri Mar 26 09:06:19 2021 +0800
222
commit ecce3f5b5d51bf13f8e527a4fab7bd45f502ce91
Author: 王智 <wz@bronet.cn>
Date: Thu Mar 25 16:34:36 2021 +0800
xiugai
commit 9a2ec54a043c5d2c902af29120ff156fd2db2b5d
Author: 王智 <wz@bronet.cn>
Date: Thu Mar 25 16:33:54 2021 +0800
xiugai
commit 661d8a8c0644362dbc4f234a6d94f96c3231a4ce
Author: 王智 <wz@bronet.cn>
Date: Thu Mar 25 09:19:57 2021 +0800
xiugai
commit 53fbf3b3216f689dddd515a8abc8162402e9860c
Author: 王智 <wz@bronet.cn>
Date: Wed Mar 24 17:50:35 2021 +0800
xiugai
commit 869457f42471b98089ba296474ab5b3b92779e55
Author: 王智 <wz@bronet.cn>
Date: Wed Mar 24 17:41:03 2021 +0800
xiugai
commit 247f6b443632c00199b256e9e7e7901f8c40e1d3
Author: 王智 <wz@bronet.cn>
Date: Wed Mar 24 10:01:37 2021 +0800
xiugai
commit 599b02ab8060e38523656904eb65d2261e38aa66
Author: 王智 <wz@bronet.cn>
Date: Tue Mar 23 19:03:57 2021 +0800
xiugai
commit ec259d56d229cd5e1e308e30802e6e2c7f2012b7
Author: 王智 <wz@bronet.cn>
Date: Tue Mar 23 19:03:43 2021 +0800
xiugai
commit acca2638b3bf90432274ef29d01b948231852d8a
Author: 王智 <wz@bronet.cn>
Date: Tue Mar 23 18:55:39 2021 +0800
xiugai
commit 30da55ec8af1874c671ddcf6d218d57b9b83fb96
Author: 王智 <wz@bronet.cn>
Date: Tue Mar 23 18:48:31 2021 +0800
xiugai
commit a3d9ec9a746e151b7639ed3eb169ff83af3be4d3
Author: bronet <yyh@bronet.cn>
Date: Tue Mar 23 18:47:31 2021 +0800
私钥
commit b122a318c51e1884f655552d94099b74f70b6893
Author: 王智 <wz@bronet.cn>
Date: Tue Mar 23 18:43:37 2021 +0800
xiugai
commit d8c79cb5c9782d3a46f51ef47df38e4cf7e9b322
Author: 王智 <wz@bronet.cn>
Date: Tue Mar 23 18:41:28 2021 +0800
xiugai
commit 9f63f51bafd83e315dfda07427e0355e9578a480
Author: 王智 <wz@bronet.cn>
Date: Tue M
\ No newline at end of file
... ...
... ... @@ -141,4 +141,49 @@ class Common extends Api
{
Db::name('user')->where('status', 1)->where('exp_time', '<', time())->update(['exp_time' => 0, 'status' => 0]);
}
public function ceshi()
{
$tree = $this->recurDir('../public/doc/12345678');
print_r($tree);
}
function recurDir($pathName)
{
//将结果保存在result变量中
$result = array();
$temp = array();
//判断传入的变量是否是目录
if (!is_dir($pathName) || !is_readable($pathName)) {
return null;
}
//取出目录中的文件和子目录名,使用scandir函数
$allFiles = scandir($pathName);
//遍历他们
foreach ($allFiles as $fileName) {
//判断是否是.和..因为这两个东西神马也不是。。。
if (in_array($fileName, array('.', '..'))) {
continue;
}
//路径加文件名
$fullName = $pathName . '/' . $fileName;
//如果是目录的话就继续遍历这个目录
if (is_dir($fullName)) {
//将这个目录中的文件信息存入到数组中
$result[$fullName] = $this->recurDir($fullName);
} else {
//如果是文件就先存入临时变量
$temp[] = $fullName;
}
}
//取出文件
if ($temp) {
foreach ($temp as $f) {
$result[] = $f;
}
}
return $result;
}
}
... ...