diff --git a/src/plugin/admin/app/controller/UploadController.php b/src/plugin/admin/app/controller/UploadController.php index a0a407e..2bf1f1d 100644 --- a/src/plugin/admin/app/controller/UploadController.php +++ b/src/plugin/admin/app/controller/UploadController.php @@ -58,10 +58,14 @@ class UploadController extends Crud * 更新 * @param Request $request * @return Response + * @throws BusinessException */ public function update(Request $request): Response { - return not_found(); + if ($request->method() === 'GET') { + return view("upload/update"); + } + return parent::update($request); } /** diff --git a/src/plugin/admin/app/model/Upload.php b/src/plugin/admin/app/model/Upload.php index 8c5457b..9f2c14f 100644 --- a/src/plugin/admin/app/model/Upload.php +++ b/src/plugin/admin/app/model/Upload.php @@ -11,7 +11,7 @@ use plugin\admin\app\model\Base; * @property integer $admin_id 管理员id * @property integer $user_id 用户id * @property integer $file_size 文件大小 - * @property integer $mime_type mime类型 + * @property string $mime_type mime类型 * @property integer $image_width 图片宽度 * @property integer $image_height 图片高度 * @property string $ext 扩展名 diff --git a/src/plugin/admin/app/view/upload/update.html b/src/plugin/admin/app/view/upload/update.html new file mode 100644 index 0000000..84185e1 --- /dev/null +++ b/src/plugin/admin/app/view/upload/update.html @@ -0,0 +1,131 @@ + + +
+ +