Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
zyx0814 committed Apr 30, 2024
1 parent d38bfd1 commit cd98e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/class/io/io_dzz.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public function uploadToattachment($attach, $appid, $fid = '', $level = 0)

global $_G;
//如果当前库有该文件
if ($rid = DB::result_first("select rid from %t where path = %d and appid = %s ", array('pichome_resources_attr', $attach['aid'], $appid))) {
if ($rid = DB::result_first("select rid from %t where path = %s and appid = %s ", array('pichome_resources_attr', $attach['aid'], $appid))) {

$resourcesdata = C::t('pichome_resources')->fetch($rid);
if($resourcesdata['isdelete']){
Expand Down Expand Up @@ -441,7 +441,7 @@ public function uploadToattachment($attach, $appid, $fid = '', $level = 0)
}

}
elseif ($rid = DB::result_first("select rid from %t where path = %d ", array('pichome_resources_attr',$attach['aid']))) {//如果当前库没有该文件,但其它库有
elseif ($rid = DB::result_first("select rid from %t where path = %s ", array('pichome_resources_attr',$attach['aid']))) {//如果当前库没有该文件,但其它库有
//获取原文件基本数据
$resourcesdata = C::t('pichome_resources')->fetch($rid);
$rsetarr = [
Expand Down
4 changes: 2 additions & 2 deletions dzz/pichome/library/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

$folderdata = C::t('pichome_folder')->createfolerbypath($appid, $relativepath, $pfid);
//如果当前库有该文件
if ($rid = DB::result_first("select rid from %t where path = %d and appid = %s ", array('pichome_resources_attr', $aid, $appid))) {
if ($rid = DB::result_first("select rid from %t where path = %s and appid = %s ", array('pichome_resources_attr', $aid, $appid))) {
$resourcesdata = C::t('pichome_resources')->fetch($rid);
if($resourcesdata['isdelete']){
$rsetarr = [
Expand Down Expand Up @@ -187,7 +187,7 @@
}

}
elseif ($rid = DB::result_first("select rid from %t where path = %d ", array('pichome_resources_attr', $aid))) {//如果当前库没有该文件,但其它库有
elseif ($rid = DB::result_first("select rid from %t where path = %s ", array('pichome_resources_attr', $aid))) {//如果当前库没有该文件,但其它库有
//获取原文件基本数据
$resourcesdata = C::t('pichome_resources')->fetch($rid);
$rsetarr = [
Expand Down

0 comments on commit cd98e34

Please sign in to comment.