This commit is contained in:
zyx0814
2024-05-01 01:15:41 +08:00
Unverified
parent d38bfd12b3
commit cd98e34245
2 changed files with 4 additions and 4 deletions

View File

@@ -342,7 +342,7 @@ class io_dzz extends io_api
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']){
@@ -441,7 +441,7 @@ class io_dzz extends io_api
}
}
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 = [

View File

@@ -81,7 +81,7 @@ if($operation == 'upload'){//上传文件图标类
$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 = [
@@ -187,7 +187,7 @@ if($operation == 'upload'){//上传文件图标类
}
}
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 = [