mirror of https://gitee.com/karson/fastadmin.git
兼容写法
parent
fc9f1a34d2
commit
7c8d0a50ae
|
|
@ -127,7 +127,7 @@ class Common extends Api
|
|||
'storage' => 'local',
|
||||
'sha1' => $sha1,
|
||||
);
|
||||
$attachment = model("attachment");
|
||||
$attachment = $attachment = new \app\common\model\Attachment();
|
||||
$attachment->data(array_filter($params));
|
||||
$attachment->save();
|
||||
\think\Hook::listen("upload_after", $attachment);
|
||||
|
|
|
|||
Loading…
Reference in New Issue