mirror of https://gitee.com/karson/fastadmin.git
上传组件记录extparam参数
parent
3763b0d69e
commit
ac312ef41e
|
|
@ -54,6 +54,7 @@ class Ajax extends Backend
|
|||
|
||||
//判断是否已经存在附件
|
||||
$sha1 = $file->hash();
|
||||
$extparam = $this->request->post();
|
||||
|
||||
$upload = Config::get('upload');
|
||||
|
||||
|
|
@ -118,6 +119,7 @@ class Ajax extends Backend
|
|||
'uploadtime' => time(),
|
||||
'storage' => 'local',
|
||||
'sha1' => $sha1,
|
||||
'extparam' => json_encode($extparam),
|
||||
);
|
||||
$attachment = model("attachment");
|
||||
$attachment->data(array_filter($params));
|
||||
|
|
|
|||
Loading…
Reference in New Issue