From 5266b79971449a51321e24446f3543084803c094 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sun, 1 May 2022 23:56:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=92=A4=E5=9B=9E=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/TalkService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/TalkService.php b/app/Service/TalkService.php index b2a45dc..0961c33 100644 --- a/app/Service/TalkService.php +++ b/app/Service/TalkService.php @@ -196,7 +196,7 @@ class TalkService extends BaseService if (!$result) return [false, '消息记录不存在']; // 判断是否在两分钟之内撤回消息,超过2分钟不能撤回消息 - if ((time() - strtotime($result->created_at) > 120)) { + if ((time() - $result->created_at->timestamp > 120)) { return [false, '已超过有效的撤回时间', []]; }