最近任务

请求URL:

  • /getCurrentTask

请求方式:

  • GET

参数:

请求头

参数名 必选 类型 说明
Authorization string 登录成功后的通讯令牌
参数名 必选 类型 说明

返回示例

{
    "code": 200,
    "msg": "",
    "data": {
        "imageList": [
            {
                "id": 588,
                "taskId": 449,
                "path": "https://muyuhan.s3.us-east-1.amazonaws.com/comfyUI/original/thumbnail-image-20250505114423-762996.jpeg",
                "origin": "https://muyuhan.s3.us-east-1.amazonaws.com/comfyUI/original/image-20250505114423-762996.jpeg",
                "state": 0,
                "width": 558,
                "height": 992,
                "favoriteCount": 0,
                "isPublish": 0,
                "userId": 80,
                "styleId": 1,
                "aspectRatio": 2,
                "content": "1 girl, swim in the pool ",
                "seed": 72872974346,
                "taskType": 1,
                "styleName": "",
                "aspectRatioTxt": "",
                "favorite": false,
                "createdAt": 1746416663
            }
        ],
        "taskInfo": {
            "id": 449,
            "customTaskId": "27219d2af605af05163d5ff7cf3e8157",
            "userId": 80,
            "styleId": 1,
            "taskType": 1,
            "seed": 72872974346,
            "content": "1 girl, swim in the pool ",
            "contentEn": "1 girl, swim in the pool ",
            "covering": "https://muyuhan.s3.us-east-1.amazonaws.com/comfyUI/original/thumbnail-image-20250505114423-762996.jpeg",
            "state": 30,
            "aspectRatio": 2,
            "imageCount": 1,
            "reason": "",
            "cost": 15,
            "returnState": 0,
            "fileName": "",
            "createdAt": 1746416646,
            "updatedAt": 1746470802
        }
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据结构体
-imageList array 数据列表
--id int 图片ID
--taskId int 任务ID
--path string 缩略图地址
--origin string 原图地址
--state int 状态
--width int 宽度
--height int 高度
--isPublish int 是否已发布:1-是;0-否
--userId int 用户ID
--styleId int 风格ID
--aspectRatio int 宽高比ID
--content string 提示词
--styleName string 风格
--aspectRatioTxt string 宽高比
--seed int 种子
--favorite bool 是否已点赞
--createdAt int 生成时间
-taskInfo struct 任务信息
--id int 任务ID
--customTaskId string 自定义任务ID
--userId int 用户ID
--styleId int 风格ID
--taskType int 任务类型:1-文生图;2-图生图
--seed int 种子
--content string 提示词
--covering string 任务成功后的封面
--state int 任务状态:30-成功;2-失败;10-排队中;20-执行中
--aspectRatio int 宽高比ID
--imageCount int 图片数量
--reason string 失败原因
--cost float32 消耗金币数
--returnState int 退款状态:0-未退款;1-已退款
--fileName string 图生图时指定的图片名称
--createdAt int64 任务提交时间戳
--updatedAt int64 任务变动时间戳

备注 state:5-社区不能展示 6-社区和个人中心都不能展示 30-所有地方都可以展示

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-05-07 19:56:17

results matching ""

    No results matching ""