信呼v2.5.1版本

This commit is contained in:
雨中磐石
2022-11-17 16:20:57 +08:00
parent 44100a4ab9
commit f4d68700c7
65 changed files with 1642 additions and 245 deletions

View File

@@ -105,8 +105,10 @@ class loginClassAction extends apiAction
public function getmaxupAction()
{
$maxup = c('upfile')->getmaxzhao();
$upkey = md5('upkey'.time().$this->jm->getRandkey());
$this->showreturn(array(
'maxup' => $maxup
'maxup' => $maxup,
'upkey' => $upkey
));
}
@@ -268,4 +270,26 @@ class loginClassAction extends apiAction
'logo' => 'images/logo.png'
));
}
/**
* 获取第三方上传图片地址
*/
public function upimagepathAction()
{
$fileid = (int)$this->get('fileid');
$fid = $this->get('fid');
$adddt = date('Y-m-d H:i:s', time()-20);
$frs = m('file')->getone("`id`='$fileid' and `adddt`>'$adddt'");
if(!$frs)return returnerror('404');
$path = '';
if(!isempt($frs['thumbplat'])){
$path = str_replace('_s.','.',$frs['thumbplat']);
}
$filepathout = arrvalue($frs,'filepathout');
if($filepathout)$path = $filepathout;
return returnsuccess(array(
'path' => $path,
'fid' => $fid,
));
}
}