From 6582f9ca967a243e43ca163011d245c6df0b98e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 13 Jan 2026 10:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=9F=E5=88=97=E9=94=99=E8=AF=AF=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/GiftQueue.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/common/library/GiftQueue.php b/application/common/library/GiftQueue.php index 84d7c707..78f5c99c 100644 --- a/application/common/library/GiftQueue.php +++ b/application/common/library/GiftQueue.php @@ -52,6 +52,7 @@ class GiftQueue return true; } catch (\Exception $e) { Log::error('送礼队列添加失败:' . $e->getMessage()); + db::name('redis_error')->insert( ['related_id' => $giftData['id'],'content' => json_encode($giftData),'remark' =>$e->getMessage()]); return false; } } @@ -143,6 +144,7 @@ class GiftQueue } catch (\Exception $e) { $failed++; + db::name('redis_error')->insert( ['related_id' => 0,'content' => $e->getMessage(),'remark' =>$e->getMessage()]); Log::error('处理送礼队列失败:' . $e->getMessage()); } }