队列错误 添加到数据库

This commit is contained in:
2026-01-13 10:54:31 +08:00
parent 4aa09e49a9
commit 6582f9ca96

View File

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