From 78c5c2a6585b533ae05f47391d05436006ed7ada Mon Sep 17 00:00:00 2001 From: ken678 <530765310@qq.com> Date: Tue, 5 Aug 2025 17:03:23 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/require-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index 1eb8e0ac..be96a03c 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -725,7 +725,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table if (top + 154 > $(window).height()) { top = top - 154; } - if ($(window).width() < 480) { + if (left < 0 || $(window).width() < 480) { top = left = undefined; } Layer.confirm( From e06f0e2738cdfcd75cbf3c547d9aefb2c192c519 Mon Sep 17 00:00:00 2001 From: ken678 <530765310@qq.com> Date: Wed, 6 Aug 2025 10:19:08 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E9=83=BD=E7=94=A8$user->id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/User.php b/application/api/controller/User.php index c7b2fa32..938ce2c5 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -179,14 +179,14 @@ class User extends Api $bio = $this->request->post('bio'); $avatar = $this->request->post('avatar', '', 'trim,strip_tags,htmlspecialchars'); if ($username) { - $exists = \app\common\model\User::where('username', $username)->where('id', '<>', $this->auth->id)->find(); + $exists = \app\common\model\User::where('username', $username)->where('id', '<>', $user->id)->find(); if ($exists) { $this->error(__('Username already exists')); } $user->username = $username; } if ($nickname) { - $exists = \app\common\model\User::where('nickname', $nickname)->where('id', '<>', $this->auth->id)->find(); + $exists = \app\common\model\User::where('nickname', $nickname)->where('id', '<>', $user->id)->find(); if ($exists) { $this->error(__('Nickname already exists')); } From cfd7068a99d4ae7e315625ff3038598eafd15460 Mon Sep 17 00:00:00 2001 From: ken678 <530765310@qq.com> Date: Wed, 6 Aug 2025 10:24:22 +0800 Subject: [PATCH 03/14] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/lang/zh-cn/user.php | 1 + application/index/view/user/profile.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/index/lang/zh-cn/user.php b/application/index/lang/zh-cn/user.php index b9089b7e..64c492d7 100755 --- a/application/index/lang/zh-cn/user.php +++ b/application/index/lang/zh-cn/user.php @@ -8,6 +8,7 @@ return [ 'Mobile' => '手机号', 'Email' => '邮箱', 'Captcha' => '验证码', + 'Get code' => '获取验证码', 'Lv' => 'Lv', 'Score' => '积分', 'Day' => '天', diff --git a/application/index/view/user/profile.html b/application/index/view/user/profile.html index 50c7ed86..8a60d762 100644 --- a/application/index/view/user/profile.html +++ b/application/index/view/user/profile.html @@ -123,7 +123,7 @@
@@ -156,7 +156,7 @@ From fad4731136dd6ed926ad48c3af346db3a01efc0d Mon Sep 17 00:00:00 2001 From: Karson