1. 首页
  2. API 文档
  3. QQ 宠物
  4. get_pet_activity_options

get_pet_activity_options

  • 发布于 2026-08-16
  • 16 次阅读

获取宠物当前可选的课程、岗位或冒险。

调用

const result = await api.get_pet_activity_options(self_id, activity, friend_id)

参数

参数 类型 必填 说明
self_id number 在线 Bot QQ 号
activity string school / 学习work / 打工adventure / 冒险
friend_id number 雇佣的好友 QQ 号,仅打工和冒险可用

返回值

{
  activity: 'school',
  career_name: '初级学园 1年级',
  options: [
    {
      name: '蹦蹦跳跳体能课',
      icon_url: 'https://example.com/icon.png',
      cost: '体力 -10',
      duration: '1小时',
      duration_seconds: 3600,
      reward: '力量 +5',
      description: '课程说明',
      can_do: true,
      unavailable_reason: '',
    },
  ],
}