From bbd582acf7797119dcc9cf83efa1e17fc501d9e1 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Tue, 23 Mar 2021 17:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8E=A5=E5=8F=A3=20-=20=E5=8F=82=E6=95=B0=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/Api/V1/TalkController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/Api/V1/TalkController.php b/app/Controller/Api/V1/TalkController.php index a55ef2d..c6d7c72 100644 --- a/app/Controller/Api/V1/TalkController.php +++ b/app/Controller/Api/V1/TalkController.php @@ -260,7 +260,7 @@ class TalkController extends CController $params = $this->request->inputs(['source', 'record_id', 'receive_id']); $this->validate($params, [ 'source' => 'required|in:1,2',//消息来源(1:好友消息 2:群聊消息) - 'record_id' => 'required|integer|min:0', + 'record_id' => 'required|ids', 'receive_id' => 'required|integer|min:0' ]);