Browse Source

按照文件夹在前、文件在后的顺序进行字典排序

docker-svn
witersen 3 years ago
parent
commit
7af4ae81cc
  1. 8
      02.php/app/controller/svnrep.class.php

8
02.php/app/controller/svnrep.class.php

@ -3,7 +3,7 @@
* @Author: witersen * @Author: witersen
* @Date: 2022-04-24 23:37:05 * @Date: 2022-04-24 23:37:05
* @LastEditors: witersen * @LastEditors: witersen
* @LastEditTime: 2022-05-01 02:04:32 * @LastEditTime: 2022-05-01 15:20:35
* @Description: QQ:1801168257 * @Description: QQ:1801168257
*/ */
@ -580,6 +580,9 @@ class svnrep extends controller
} }
} }
//按照文件夹在前、文件在后的顺序进行字典排序
array_multisort(FunArrayColumn($data, 'resourceType'), SORT_DESC, $data);
/** /**
* 处理面包屑 * 处理面包屑
*/ */
@ -686,6 +689,9 @@ class svnrep extends controller
} }
} }
//按照文件夹在前、文件在后的顺序进行字典排序
array_multisort(FunArrayColumn($data, 'resourceType'), SORT_DESC, $data);
//处理面包屑 //处理面包屑
if ($path == '/') { if ($path == '/') {
$breadPathArray = ['/']; $breadPathArray = ['/'];

Loading…
Cancel
Save