// 免费演出雷达(free_show)前端逻辑 // 双模式弹窗(Rule 10):debug 显示完整交互详情,normal 仅状态栏 (function () { 'use strict' let currentTab = 'showstart' let UI_MODE = 'debug' let AGENT_PORT = 8978 let DAMAI_SERVER_FETCH = false const $ = id => document.getElementById(id) // ============ 双模式交互详情弹窗 ============ function closeDialog() { const root = $('fs-dialog-root') if (root) root.innerHTML = '' } function showInteractionDialog(info, ok) { // normal 模式:不弹窗,状态栏已反馈 if (UI_MODE !== 'debug') return closeDialog() const time = new Date().toLocaleString('zh-CN', { hour12: false }) const lines = [ '触发动作: ' + info.action, '时间: ' + time, '接口地址: ' + info.url, 'HTTP 方法: ' + (info.method || 'GET'), '请求参数: ' + JSON.stringify(info.params || {}), '耗时: ' + info.duration + 'ms', '当前状态: ' + info.status ] if (ok) lines.push('返回结果: ' + info.result) else lines.push('错误信息: ' + info.error) const detail = lines.join('\n') const root = $('fs-dialog-root') root.innerHTML = '
扫描 ' + data.totalCount + ' 条演出,暂无 ≤¥' + maxPrice + ' 的结果
试试调高票价或增加页数
' + esc(err.message) + '