feat: OpenClaw Gateway 配置和连接优化 #1
@@ -350,55 +350,7 @@ function App() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 测试消息 */}
|
|
||||||
<div style={{
|
|
||||||
background: '#0f3460',
|
|
||||||
padding: '16px',
|
|
||||||
borderRadius: '8px',
|
|
||||||
marginTop: '16px'
|
|
||||||
}}>
|
|
||||||
<h3 style={{ color: '#00d8ff', margin: '0 0 12px 0', fontSize: '1.1em' }}>📡 测试消息通信</h3>
|
|
||||||
<div className="form-group" style={{ marginBottom: '12px' }}>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
value={testOpenClawMessage}
|
|
||||||
onChange={(e) => setTestOpenClawMessage(e.target.value)}
|
|
||||||
placeholder="输入测试消息内容..."
|
|
||||||
style={{
|
|
||||||
width: '100%',
|
|
||||||
padding: '10px',
|
|
||||||
background: '#1a1a2e',
|
|
||||||
border: '1px solid #00d8ff',
|
|
||||||
borderRadius: '6px',
|
|
||||||
color: '#fff',
|
|
||||||
fontSize: '0.95em'
|
|
||||||
}}
|
|
||||||
onKeyDown={(e) => e.key === 'Enter' && handleSendTestOpenClawMessage()}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
className="btn btn-secondary"
|
|
||||||
onClick={handleSendTestOpenClawMessage}
|
|
||||||
disabled={!connectionStatus.openclaw.connected}
|
|
||||||
style={{ opacity: connectionStatus.openclaw.connected ? 1 : 0.5 }}
|
|
||||||
>
|
|
||||||
🚀 发送测试到 OpenClaw
|
|
||||||
</button>
|
|
||||||
{testOpenClawResult && (
|
|
||||||
<div style={{
|
|
||||||
marginTop: '12px',
|
|
||||||
padding: '8px',
|
|
||||||
borderRadius: '4px',
|
|
||||||
background: testOpenClawResult.success ? 'rgba(0, 200, 83, 0.2)' : 'rgba(255, 82, 82, 0.2)',
|
|
||||||
color: testOpenClawResult.success ? '#00c853' : '#ff5252',
|
|
||||||
fontSize: '0.9em'
|
|
||||||
}}>
|
|
||||||
{testOpenClawResult.message}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 企业微信机器人配置 */}
|
{/* 企业微信机器人配置 */}
|
||||||
<div className="section">
|
<div className="section">
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '20px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '20px' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user