From 5ec34deb573826d31944002fe0c79e68adaf76f7 Mon Sep 17 00:00:00 2001 From: mhgj2004 Date: Wed, 1 Feb 2023 10:37:36 +0000 Subject: [PATCH 1/3] =?UTF-8?q?update=20app/common/library/Auth.php.=20?= =?UTF-8?q?=E7=94=B1=E4=BA=8Ephp8=E7=9A=84=E5=BC=BA=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0,=E9=80=A0=E6=88=90isLogin()=E6=8A=A5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mhgj2004 --- app/common/library/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/library/Auth.php b/app/common/library/Auth.php index 19e7e9c..7d6465d 100644 --- a/app/common/library/Auth.php +++ b/app/common/library/Auth.php @@ -35,7 +35,7 @@ class Auth /** * 用户ID */ - public int $user_id = 0; + public mixed $user_id = 0; /** * 用户数据 From 8a3121c72f579c6277477d400c61f05714282a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=9B=BE=E5=9B=BE?= <209766828@qq.com> Date: Fri, 24 Mar 2023 16:09:21 +0000 Subject: [PATCH 2/3] =?UTF-8?q?update=20public/static/system/module/admin.?= =?UTF-8?q?js.=20=E5=BD=93value=3D'1'=E6=97=B6=E4=BC=9A=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E4=BF=AE=E6=94=B9=E6=88=90=20=3D=3D=20?= =?UTF-8?q?=E5=B0=B1=E6=B2=A1=E9=97=AE=E9=A2=98=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡图图 <209766828@qq.com> --- public/static/system/module/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/system/module/admin.js b/public/static/system/module/admin.js index 6d7e3d7..5b5c183 100644 --- a/public/static/system/module/admin.js +++ b/public/static/system/module/admin.js @@ -1481,7 +1481,7 @@ layui.define(['jquery', 'i18n', 'element', 'layer', 'form', 'rate', 'table', 'sl form.on('radio(radioStatus)', function (data) { var display = $(this).data('display'); if (display != null && display !== 'undefined') { - (data.value === 1) ? $('.' + display).show() : $('.' + display).hide(); + (data.value == 1) ? $('.' + display).show() : $('.' + display).hide(); } }) From adee8accbef347f9d6bc5832a25f06e427ac136d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E7=A4=BE=E5=8C=BA=E9=87=91=E4=B8=89?= =?UTF-8?q?=E6=9C=88=E5=8D=8A?= Date: Wed, 12 Apr 2023 04:08:33 +0000 Subject: [PATCH 3/3] =?UTF-8?q?update=20app/common/library/Upload.php.=202?= =?UTF-8?q?73=E8=A1=8C=E4=BB=A3=E7=A0=81=20=E8=B0=83=E6=95=B4=E4=B8=BA$thi?= =?UTF-8?q?s->resource=20=3D=20public=5Fpath().$this->filepath=20.=20DS=20?= =?UTF-8?q?.=20sha1($params['chunkId'])=20.=20'.'=20.=20$fileExt;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不然大文件上传之后会跑到具体的磁盘目录下。 Signed-off-by: user_5037913 --- app/common/library/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/library/Upload.php b/app/common/library/Upload.php index 1d2a429..dff7cc1 100644 --- a/app/common/library/Upload.php +++ b/app/common/library/Upload.php @@ -278,7 +278,7 @@ class Upload try { $this->getFileSavePath($file); // 分片上传使用ID作为文件名 - $this->resource = $this->filepath . DS . sha1($params['chunkId']) . '.' . $fileExt; + $this->resource = public_path().$this->filepath . DS . sha1($params['chunkId']) . '.' . $fileExt; $file->move($this->resource); } catch (\Exception $e) { Event::emit('uploadExceptionDelete', [