Skip to content

Commit e934d9c

Browse files
committed
1.46.03 release
1 parent c4d427d commit e934d9c

File tree

18 files changed

+33
-22
lines changed

18 files changed

+33
-22
lines changed

app/controller/explorer/listSearch.class.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,14 @@ public function listDataParseShareItem($listData,$parseSearch){
109109
if($parseSearch['type'] != KodIO::KOD_SHARE_ITEM) return $listData;
110110
$userShare = Action('explorer.userShare');
111111
$shareInfo = Model("Share")->getInfo($parseSearch['id']);
112+
$pathPre = '{shareItem:';
112113
foreach ($listData as $key => $keyList) {
113114
if($key != 'folderList' && $key != 'fileList' ) continue;
114115
$keyListNew = array();
115116
foreach ($keyList as $source){
117+
$pathStart = substr($source['path'],0,strlen($pathPre));// 已经处理过
118+
if($pathStart == $pathPre){$keyListNew[] = $source;continue;}
119+
116120
$source = $userShare->_shareItemeParse($source,$shareInfo);
117121
if($source){$keyListNew[] = $source;}
118122
};
@@ -123,10 +127,14 @@ public function listDataParseShareItem($listData,$parseSearch){
123127
// 外链分享搜索
124128
public function listDataParseShareLink($listData,$parseSearch){
125129
if($parseSearch['type'] != KodIO::KOD_SHARE_LINK) return $listData;
130+
$pathPre = '{shareItemLink:';
126131
foreach ($listData as $key => $keyList) {
127132
if($key != 'folderList' && $key != 'fileList' ) continue;
128133
$keyListNew = array();
129134
foreach ($keyList as $source){
135+
$pathStart = substr($source['path'],0,strlen($pathPre));// 已经处理过
136+
if($pathStart == $pathPre){$keyListNew[] = $source;continue;}
137+
130138
$source = Action('explorer.share')->shareItemInfo($source);
131139
if($source){$keyListNew[] = $source;}
132140
};
@@ -279,6 +287,7 @@ public function searchIO($path,$param){
279287

280288
if(kodIO::pathDriverLocal($info['path'])){
281289
$infoFile = IO::info($item['path']); // 物理路径获取权限等情况;
290+
$infoFile = is_array($infoFile) ? $infoFile:array();
282291
$info = array_merge($infoFile,$info);
283292
}
284293
$typeKey = $isFolder ? 'folderList':'fileList';

app/controller/explorer/seo.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private function shareMakeItem($item){
274274
}
275275
if(!$pathInfo) return '';
276276
$link = $this->shareLink($item);
277-
$user = _get($item['userInfo'],'nickName',_get($item['userInfo'],'name'));
277+
$user = $item['nickName'] ? $item['nickName']:$item['name'];
278278

279279
$time = date('Y-m-d H:i',$item['createTime']);
280280
$size = size_format($pathInfo['size']);

app/controller/explorer/userShareGroup.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private function makeItemUser($userInfo,$parentGroup=false){
191191
$parentGroup = $parentGroup ? $parentGroup:array('groupID'=>'0','parentLevel'=>'');
192192
$result = array(
193193
"userID" => $userInfo['userID'],
194-
"name" => _get($userInfo,"nickName",$userInfo["name"]),
194+
"name" => $userInfo['nickName'] ? $userInfo['nickName']:$userInfo['name'],
195195
"type" => "folder",
196196
"path" => "{shareToMe:group-u".$userInfo['userID']."-".$parentGroup['groupID']."}/",
197197
"icon" => $userInfo["avatar"] ? $userInfo["avatar"]:$defaultThumb,//fileThumb,icon

app/controller/explorer/userShareUser.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private function makeItemUser($userInfo){
4545
$defaultThumb = STATIC_PATH.'images/common/default-avata.png';
4646
$defaultThumb = 'root-user-avatar';// $userInfo["avatar"] = false;
4747
$result = array(
48-
"name" => _get($userInfo,"nickName",$userInfo["name"]),
48+
"name" => $userInfo['nickName'] ? $userInfo['nickName']:$userInfo['name'],
4949
"type" => "folder",
5050
"path" => "{shareToMe:user-".$userInfo['userID']."}/",
5151
"icon" => $userInfo["avatar"] ? $userInfo["avatar"]:$defaultThumb,//fileThumb,icon

app/controller/user/bind.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function sendEmail($input, $action,$title = '',$code = false) {
6767
$name = _get($user,'nickName',_get($user,'name',''));
6868
$desc = Model('SystemOption')->get('systemDesc');
6969
$code = $code ? $code : rand_string(6,1);
70+
if(!$name && isset($user['name'])){$name = $user['name'];}
7071
$data = array(
7172
'type' => 'email',
7273
'input' => $input,

app/function/think.function.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ function think_exception($msg) {
5454
$desc = is_array($trace) ? implode("\n",array_slice($trace,-2)) : '';
5555
$desc = preg_replace("/{\w+}#/",'',$desc);
5656
think_error_parse($error);
57-
$error = "<div class='desc'>".$error."</div>";
58-
$error = $error.'<div style="border-top:1px dotted #eee;"><code>'.$desc.'</code></div>';
57+
$action = defined('ACTION') ? ' <span style="color:#888;font-size:12px;font-weight:200;">('.ACTION.')</span>' : '';
58+
$error = "<div class='desc'>".$error.$action."</div>";
59+
$error = $error.'<div style="border-top:1px dotted #eee;padding-top:10px;"><code>'.$desc.'</code></div>';
5960
$error = $error.'<div style="color:#ccc;font-size:12px;"><code>['.think_system_info().']</code></div>';
6061
show_tips($error,'',0,'',false);
6162
}

app/sdks/archiveLib/bin/data.bin

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

config/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22
define('KOD_VERSION','1.46');
3-
define('KOD_VERSION_BUILD','02');
3+
define('KOD_VERSION_BUILD','03');

plugins/fileThumb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id":"fileThumb",
33
"name":"{{LNG['fileThumb.meta.name']}}",
44
"title":"{{LNG['fileThumb.meta.title']}}",
5-
"version":"1.92",// 2023.6.02
5+
"version":"1.93",// 2023.11.07
66
"category":"file,media",
77
"source":{
88
"icon":"{{pluginHost}}static/icon.png"

plugins/webdav/php/webdavServer.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function parseItemXml($itemFile,$isInfo){
146146
$picker = array(
147147
'hasFile','hasFolder','fileInfo','fileInfoMore','oexeContent','parentID','isTruePath',
148148
'isReadable','isWriteable','sourceRoot','icon','iconClassName','children',
149-
'listAllChildren','fileThumb','fileShowView',
149+
'listAllChildren','fileThumb','fileThumbCover','fileShowView',
150150
);
151151
foreach ($picker as $key){
152152
if(array_key_exists($key,$itemFile)){$infoMore[$key] = $itemFile[$key];}

0 commit comments

Comments
 (0)