| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {
- "name": "wechat-check-online",
- "displayName": "微信在线状态检查",
- "description": "检查微信账号是否在线,返回在线状态。是消息收发和联系人操作的前置检查。",
- "category": "wechat",
- "version": "1.0.0",
- "endpoint": {
- "method": "POST",
- "url": "{{wechatApiBase}}/login/check-online",
- "headers": {
- "Content-Type": "application/json"
- }
- },
- "parameters": {
- "type": "object",
- "required": [],
- "properties": {}
- },
- "requestTransform": {
- "description": "无需参数,发送空 body",
- "template": {}
- },
- "response": {
- "type": "object",
- "properties": {
- "ret": {
- "type": "integer",
- "description": "200 表示请求成功"
- },
- "msg": {
- "type": "string",
- "description": "操作结果描述"
- },
- "data": {
- "type": "boolean",
- "description": "true=在线, false=离线"
- }
- }
- },
- "usageExamples": [
- {
- "name": "检查微信在线状态",
- "input": {},
- "description": "检查当前微信是否在线,返回 data=true 表示在线"
- }
- ],
- "tokenConfig": {
- "type": "config",
- "configFile": "~/.openclaw/wechat-credentials.json",
- "tokenField": "wechatApiBase",
- "currentToken": "http://8.138.37.248/api/wechat-agent",
- "resolutionOrder": ["configFile", "currentToken"]
- },
- "timeout": 10000,
- "retry": {
- "maxAttempts": 2,
- "delay": 1000,
- "backoffMultiplier": 2
- }
- }
|