From 0774aeb563ec80555ea581527cdcca4e6b08d6d9 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Mon, 26 Jun 2023 09:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/v1/file/SystemAttachment.php | 13 +++++++++++++ crmeb/app/adminapi/route/file.php | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/crmeb/app/adminapi/controller/v1/file/SystemAttachment.php b/crmeb/app/adminapi/controller/v1/file/SystemAttachment.php index 5fecf7421..01bb604e2 100644 --- a/crmeb/app/adminapi/controller/v1/file/SystemAttachment.php +++ b/crmeb/app/adminapi/controller/v1/file/SystemAttachment.php @@ -151,6 +151,19 @@ class SystemAttachment extends AuthController return app('json')->success(['url' => $url]); } + /** + * 删除二维码 + * @return \think\Response + * @author 等风来 + * @email 136327134@qq.com + * @date 2023/6/26 + */ + public function removeUploadQrcode() + { + $this->service->cacheDriver()->delete('scan_upload'); + return app('json')->success(); + } + /** * 获取扫码上传的图片数据 * @param $scan_token diff --git a/crmeb/app/adminapi/route/file.php b/crmeb/app/adminapi/route/file.php index c6ad032d9..cf91cfdd1 100644 --- a/crmeb/app/adminapi/route/file.php +++ b/crmeb/app/adminapi/route/file.php @@ -36,7 +36,7 @@ Route::group('file', function () { 'update' => '修改附件分类管理', 'delete' => '删除附件分类管理' ], - + ]); //获取上传类型 Route::get('upload_type', 'v1.file.SystemAttachment/uploadType')->option(['real_name' => '上传类型']); @@ -45,6 +45,8 @@ Route::group('file', function () { //获取扫码上传页面链接以及参数 Route::get('scan_upload/qrcode', 'v1.file.SystemAttachment/scanUploadQrcode')->option(['real_name' => '扫码上传页面链接']); + //删除扫码上传token + Route::delete('scan_upload/qrcode', 'v1.file.SystemAttachment/removeUploadQrcode')->option(['real_name' => '删除扫码上传页面链接']); //获取扫码上传的图片数据 Route::get('scan_upload/image/:scan_token', 'v1.file.SystemAttachment/scanUploadImage')->option(['real_name' => '获取扫码上传的图片数据']); //网络图片上传