修复一些错误

This commit is contained in:
zyx0814
2021-12-10 09:49:50 +08:00
Unverified
parent 16d13a39b2
commit fc81c55592
4 changed files with 52 additions and 42 deletions

View File

@@ -2,13 +2,11 @@
### 1.增加普通目录导入支持,普通目录可限定文件导入,默认使用 “站点设置”=>“导入设置”中的“允许导入文件”中的设置值,可根据需要更改。
### 2.支持选择或输入指定目录地址作为库库更改为手动添加以便于自由选择eagle库或者普通目录库
目录选择中默认屏蔽了一些由系统生成目录,可在站点设置=>导入设置中的“禁止导入目录”中更改。
### 2.支持选择或输入指定目录地址作为库库更改为手动添加以便于自由选择eagle库或者普通目录库目录选择中默认屏蔽了一些由系统生成目录,可在站点设置=>导入设置中的“禁止导入目录”中更改。
###3.普通目录支持部分图片缩略图、颜色获取和部分音视频文件信息和缩略图获取(注:格式可参考 站点设置”=>“导入设置”中的“允许导入文件”;此功能
pdf格式需有iamgick支持linux下音视频需ffmpeg支持);该功能可在库的“设置”中选择开启或不开启,需要注意的是开启该功能可能会占用大量服务器资源。
### 3.普通目录支持部分图片缩略图、颜色获取和部分音视频文件信息和缩略图获取(注:格式可参考 站点设置”=>“导入设置”中的“允许导入文件”;此功能pdf格式需有iamgick支持linux下音视频需ffmpeg支持);该功能可在库的“设置”中选择开启或不开启,需要注意的是开启该功能可能会占用大量服务器资源。
###4.增加新的界面展示模板,可在 “站点设置”=>“界面设置”中切换
### 4.增加新的界面展示模板,可在 “站点设置”=>“界面设置”中切换
### 5.导入逻辑优化优化导入效率修复没有文件时一直在导入状态的bug

View File

@@ -65,19 +65,23 @@ if ($operation == 'addsearch') {//增加关键词搜索次数
foreach(DB::fetch_all("select appid from %t where isdelete = 0",array('pichome_vapp')) as $v){
$vappids[] = $v['appid'];
}
if ($appid) {
$wheresql .= ' and r.appid = %s and r.appid in(%n)';
$para[] = $appid;
$para[] = $vappids;
if(!$fids && !$hassub){
$sql .= " LEFT JOIN %t fr on fr.rid = r.rid ";
$params[] = 'pichome_folderresources';
$wheresql .= ' and ISNULL(fr.fid)';
}
if(empty($vappids)){
$wheresql .= ' and 0';
}else{
$wheresql .= ' and r.appid in(%n)';
$para[] = $vappids;
if ($appid) {
$wheresql .= ' and r.appid = %s and r.appid in(%n)';
$para[] = $appid;
$para[] = $vappids;
if(!$fids && !$hassub){
$sql .= " LEFT JOIN %t fr on fr.rid = r.rid ";
$params[] = 'pichome_folderresources';
$wheresql .= ' and ISNULL(fr.fid)';
}
}else{
$wheresql .= ' and r.appid in(%n)';
$para[] = $vappids;
}
}
if ($fids) {
if ($fids == 'not') {
@@ -822,19 +826,23 @@ if ($operation == 'addsearch') {//增加关键词搜索次数
foreach(DB::fetch_all("select appid from %t where isdelete = 0",array('pichome_vapp')) as $v){
$vappids[] = $v['appid'];
}
if ($appid) {
$wheresql .= ' and r.appid = %s and r.appid in(%n)';
$para[] = $appid;
$para[] = $vappids;
if(!$fids && !$hassub){
$sql .= " LEFT JOIN %t fr on fr.rid = r.rid ";
$params[] = 'pichome_folderresources';
$wheresql .= ' and ISNULL(fr.fid)';
}
if(empty($vappids)){
$wheresql .= ' and 0';
}else{
$wheresql .= ' and r.appid in(%n)';
$para[] = $vappids;
if ($appid) {
$wheresql .= ' and r.appid = %s and r.appid in(%n)';
$para[] = $appid;
$para[] = $vappids;
if(!$fids && !$hassub){
$sql .= " LEFT JOIN %t fr on fr.rid = r.rid ";
$params[] = 'pichome_folderresources';
$wheresql .= ' and ISNULL(fr.fid)';
}
}else{
$wheresql .= ' and r.appid in(%n)';
$para[] = $vappids;
}
}
if ($fids) {
if ($fids == 'not') {

View File

@@ -44,19 +44,23 @@ if ($operation == 'filelist') {
foreach(DB::fetch_all("select appid from %t where isdelete = 0",array('pichome_vapp')) as $v){
$vappids[] = $v['appid'];
}
if ($appid) {
$wheresql .= ' and r.appid = %s and r.appid in(%n)';
$para[] = $appid;
$para[] = $vappids;
if(!$fids && !$hassub){
$sql .= " LEFT JOIN %t fr on fr.rid = r.rid ";
$params[] = 'pichome_folderresources';
$wheresql .= ' and ISNULL(fr.fid)';
}
if(empty($vappids)){
$wheresql .= ' and 0';
}else{
$wheresql .= ' and r.appid in(%n)';
$para[] = $vappids;
if ($appid) {
$wheresql .= ' and r.appid = %s and r.appid in(%n)';
$para[] = $appid;
$para[] = $vappids;
if(!$fids && !$hassub){
$sql .= " LEFT JOIN %t fr on fr.rid = r.rid ";
$params[] = 'pichome_folderresources';
$wheresql .= ' and ISNULL(fr.fid)';
}
}else{
$wheresql .= ' and r.appid in(%n)';
$para[] = $vappids;
}
}
if ($fids) {
if ($fids == 'not') {

View File

@@ -173,7 +173,7 @@ INSERT INTO `dzz_setting` VALUES ('pichomeimportnotdir', 'patch,srv,run,lib64,sy
INSERT INTO `dzz_imagetype` VALUES(1, 1, '默认', 'smiley', 0, 'dzz');
INSERT INTO `dzz_user_setting` VALUES ('1',''1', 'pichomeimageexpanded', '1');
INSERT INTO `dzz_user_setting` VALUES ('1','1', 'pichomeimageexpanded', '1');
--
-- 转存表中的数据 `dzz_user_profile_setting`