正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -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)); |
-
请 注册 或 登录 后发表评论