接口

  • 基础URL: ws://go_webui.muyuhan.xin/ws?token=xxxxxx

  • 响应格式: json

参数名 必选 类型 说明
token string 会话Token, 详情参见登录接口
  • 返回字段
参数名 必选 类型 说明
type 消息类型 int 消息类型
msg string 提示消息
data struct 数据

备注

type值说明:

1-心跳消息 (收到后回复:{"type": "pong"})

2-生图失败

3-系统消息

5-扣款通知

{
  "type": 5,
  "msg": "msg",
  "data": {
    "count": 3,
    "balance": 24,
    "payBalance": 20,
    "freeBalance": 4,
    "strengthBalance": 5
  }
}

6-退款通知

8-充值成功

 {
  "type": 8,
  "msg": "msg",
  "data": {
    "count": 3,
    "balance": 24,
    "payBalance": 20,
    "freeBalance": 4,
    "strengthBalance": 5
  }
}

10-提交任务成功

20-任务开始执行

30-生图成功

40-AI消息回复

41-主动消息推送

42-消息撤回

50-挤号通知

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-02-03 16:23:13

results matching ""

    No results matching ""