From a39402269c99ac25891c36ddb557eead08ddb92d Mon Sep 17 00:00:00 2001 From: ahbmz Date: Sun, 1 May 2022 21:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/UploadLog.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/api/controller/UploadLog.php b/app/api/controller/UploadLog.php index 837f159..92fb67f 100644 --- a/app/api/controller/UploadLog.php +++ b/app/api/controller/UploadLog.php @@ -19,6 +19,7 @@ class UploadLog extends Common parent::__construct($app); $this->model = new \app\api\model\UploadLog(); } + /** * @OA\Get ( * path="uploadLog/index",tags={"上传日志管理"},summary="获取上传日志列表",description="根据相关参数获取日志列表", @@ -76,7 +77,8 @@ class UploadLog extends Common return send_http_status('', $this->model->parentDel($ids) ? 205 : 206); } - public function getSiteLists(){ + public function getSiteLists() + { //数据处理 $_data = $this->model->getLists(); @@ -85,19 +87,21 @@ class UploadLog extends Common } - public function getTagLists(){ + public function getTagLists() + { $tagLists = config('dict.sqlfields.image_storage_type'); $senddData = []; - foreach ($tagLists as $key => $val){ + foreach ($tagLists as $key => $val) { $item = []; $item['title'] = $key; - $item['name'] = $val; + $item['name'] = $val; $senddData[] = $item; } return send_http_status($senddData); } - public function getStorageImages(){ + public function getStorageImages() + { $model = new ImageStorages(); $model->search_arr = ['title']; $_data = $model->getStorgaeImagesLists();