<?php
$wxAppId = env('wxoms.appid', '');
$chatAppId = env('chat.appid', $wxAppId);
return [
    'appid' => $chatAppId,
    // 单独配置聊天室密钥；与 wxoms 小程序相同时可复用 wxoms.secret。
    'secret' => env('chat.secret', $chatAppId === $wxAppId ? env('wxoms.secret', '') : ''),
    'socket_url' => env('chat.socket_url', ''),
    'socket_listen' => env('chat.socket_listen', 'websocket://127.0.0.1:8787'),
    'sql_log' => env('chat.sql_log', false),
    'image_root' => dirname(__DIR__).'/runtime/chat-images',
    'image_url' => 'https://www.cqoms.com/mobile/chat/imageContent',
    'admins' => array_filter(array_map('trim', explode(',', env('chat.admins', '')))),
];
