作者 pppscn
提交者 Karson

上传组件记录extparam参数

@@ -54,6 +54,7 @@ class Ajax extends Backend @@ -54,6 +54,7 @@ class Ajax extends Backend
54 54
55 //判断是否已经存在附件 55 //判断是否已经存在附件
56 $sha1 = $file->hash(); 56 $sha1 = $file->hash();
  57 + $extparam = $this->request->post();
57 58
58 $upload = Config::get('upload'); 59 $upload = Config::get('upload');
59 60
@@ -118,6 +119,7 @@ class Ajax extends Backend @@ -118,6 +119,7 @@ class Ajax extends Backend
118 'uploadtime' => time(), 119 'uploadtime' => time(),
119 'storage' => 'local', 120 'storage' => 'local',
120 'sha1' => $sha1, 121 'sha1' => $sha1,
  122 + 'extparam' => json_encode($extparam),
121 ); 123 );
122 $attachment = model("attachment"); 124 $attachment = model("attachment");
123 $attachment->data(array_filter($params)); 125 $attachment->data(array_filter($params));