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()); } }