发布v2.7.0版本
This commit is contained in:
@@ -32,8 +32,13 @@ class uploadClassAction extends apiAction
|
||||
$this->returnjson($arr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 从编辑文件中心获取最新编辑的文件20250610
|
||||
*/
|
||||
public function editfilebAction()
|
||||
{
|
||||
//用那个异步去获取(待开发)
|
||||
|
||||
$fileid = (int)$this->get('fileid','0');
|
||||
$frs = m('file')->getone($fileid);
|
||||
if(!$frs)return 'error';
|
||||
@@ -58,6 +63,22 @@ class uploadClassAction extends apiAction
|
||||
}
|
||||
}
|
||||
|
||||
//判断是否编辑完成
|
||||
public function editfilecAction()
|
||||
{
|
||||
$fileid = (int)$this->get('fileid','0');
|
||||
$erand = $this->get('erand');
|
||||
$frs = m('file')->getone($fileid);
|
||||
if(!$erand || !$frs)return 'error';
|
||||
$barr = c('rockedit')->getdata('file','editfilec', array(
|
||||
'filekey' => getconfig('xinhukey'),
|
||||
'filenum' => $frs['onlynum'],
|
||||
'erand' => $erand
|
||||
));
|
||||
if($barr['success'])return $barr['data'];
|
||||
return 'wait';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 这个是用来在线编辑文档上传的
|
||||
@@ -378,9 +399,20 @@ class uploadClassAction extends apiAction
|
||||
//编辑
|
||||
if($type==2){
|
||||
if(getconfig('officebj')=='1'){
|
||||
$erand = rand(1000000,9999999);
|
||||
$data['fileext']= 'rockedit';
|
||||
$data['url'] = 'index.php?m=public&a=fileedit&id='.$fileid.'';
|
||||
$data['editwsinfo'] = c('rockedit')->getwsinfo();
|
||||
$data['url'] = 'index.php?m=public&a=fileedit&id='.$fileid.'&erand='.$erand.'';
|
||||
$data['editwsinfo'] = c('rockedit')->getwsinfo(array(
|
||||
'erand' => $erand,
|
||||
'fileid'=> $fileid
|
||||
));
|
||||
/*
|
||||
c('rockqueue')->push('rockoffice,gedit', array(
|
||||
'erand' => $erand,
|
||||
'cishu' =>1,
|
||||
'fileid' =>$fileid,
|
||||
'optid' => $this->adminid
|
||||
), time() + 10);*/
|
||||
}else{
|
||||
if($ismobile==1)return returnerror('移动端不支持在线编辑');
|
||||
$data['fileext']='rockoffice';
|
||||
@@ -668,6 +700,7 @@ class uploadClassAction extends apiAction
|
||||
'optid' => $this->adminid,
|
||||
'otype' => $otype,
|
||||
'fileext' => $frs['fileext'],
|
||||
'erand' => $this->get('erand'),
|
||||
'filename' => $this->rock->jm->base64encode($frs['filename']),
|
||||
'optname' => $this->rock->jm->base64encode($this->adminname),
|
||||
'face' => $this->rock->jm->base64encode(m('admin')->getface($urs['face'])),
|
||||
|
||||
@@ -7,11 +7,15 @@ class uploawClassAction extends apiAction
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件(外部信息收集使用的)
|
||||
* 上传文件(外部信息收集使用的),弃用
|
||||
*/
|
||||
public function upfileAction()
|
||||
{
|
||||
if(!$_FILES)exit('sorry!');
|
||||
return 'error0';
|
||||
/*
|
||||
$mid = (int)$this->get('mid','0');
|
||||
$to = m('planm')->rows('`id`='.$mid.' and `type`=2 and `fenlei`=1 and `status`=1');
|
||||
if($to==0 || !$_FILES)exit('sorry!');
|
||||
$upimg = c('upfile');
|
||||
$maxsize= (int)$this->get('maxsize', $upimg->getmaxzhao());//上传最大M
|
||||
$uptypes= 'jpg|png|docx|doc|pdf|xlsx|xls|zip|rar';
|
||||
@@ -21,5 +25,6 @@ class uploawClassAction extends apiAction
|
||||
$arr = c('down')->uploadback($upses);
|
||||
$arr['autoup'] = (getconfig('qcloudCos_autoup') || getconfig('alioss_autoup')) ? 1 : 0; //是否上传其他平台
|
||||
return $arr;
|
||||
*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user