From cd98e34245d86ffdb881eb6f6f97becdd69106a4 Mon Sep 17 00:00:00 2001 From: zyx0814 Date: Wed, 1 May 2024 01:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/io/io_dzz.php | 4 ++-- dzz/pichome/library/upload.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/class/io/io_dzz.php b/core/class/io/io_dzz.php index d272b67..a15ef24 100644 --- a/core/class/io/io_dzz.php +++ b/core/class/io/io_dzz.php @@ -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 = [ diff --git a/dzz/pichome/library/upload.php b/dzz/pichome/library/upload.php index fde50ed..79ca0fc 100644 --- a/dzz/pichome/library/upload.php +++ b/dzz/pichome/library/upload.php @@ -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 = [