From cba285686defc8a6d9dccc1299ec4f8df84d65eb Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Thu, 5 Jun 2025 10:24:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=8B=E5=8F=8B=E5=9C=88?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/enterprise/controller/Posts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/enterprise/controller/Posts.php b/app/enterprise/controller/Posts.php index e44b3ee..3123558 100644 --- a/app/enterprise/controller/Posts.php +++ b/app/enterprise/controller/Posts.php @@ -273,6 +273,9 @@ class Posts extends BaseController $user_type = $info['privacy'] == 2 ? 1 : 2; $privacy_users = []; foreach ($user_ids as $user_id) { + if (!is_numeric($user_id)) { + throw new \Exception(lang('system.error')); + } $privacy_users[] = [ 'posts_id' => $posts_id, 'user_id' => $user_id,