修复
This commit is contained in:
@@ -342,7 +342,7 @@ class io_dzz extends io_api
|
|||||||
|
|
||||||
global $_G;
|
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);
|
$resourcesdata = C::t('pichome_resources')->fetch($rid);
|
||||||
if($resourcesdata['isdelete']){
|
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);
|
$resourcesdata = C::t('pichome_resources')->fetch($rid);
|
||||||
$rsetarr = [
|
$rsetarr = [
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ if($operation == 'upload'){//上传文件图标类
|
|||||||
|
|
||||||
$folderdata = C::t('pichome_folder')->createfolerbypath($appid, $relativepath, $pfid);
|
$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);
|
$resourcesdata = C::t('pichome_resources')->fetch($rid);
|
||||||
if($resourcesdata['isdelete']){
|
if($resourcesdata['isdelete']){
|
||||||
$rsetarr = [
|
$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);
|
$resourcesdata = C::t('pichome_resources')->fetch($rid);
|
||||||
$rsetarr = [
|
$rsetarr = [
|
||||||
|
|||||||
Reference in New Issue
Block a user