mejoras
This commit is contained in:
@@ -6,7 +6,7 @@ try {
|
||||
$rows = $db->fetchAll('SELECT id, request_body, created_at FROM webhook_logs ORDER BY created_at DESC LIMIT 20');
|
||||
foreach ($rows as $r) {
|
||||
$rb = $r['request_body'];
|
||||
$has = strpos($rb, '"messages"') !== false ? 'HAS_MESSAGES' : (strpos($rb, '"statuses"') !== false ? 'ONLY_STATUSES' : 'OTHER');
|
||||
$has = strpos($rb, '"conversations"') !== false ? 'HAS_conversations' : (strpos($rb, '"statuses"') !== false ? 'ONLY_STATUSES' : 'OTHER');
|
||||
echo $r['created_at'] . ' | id:' . $r['id'] . ' | ' . $has . PHP_EOL;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user