注意❗
内网没有账号,不能测试。
页面目录
拥有精灵
注意❗
精灵ID 和 捕获时间只能查询一个。
拥有精灵列表
状态
'status'=> array(
'0' => array("仓库","背包"),
'1' => array("普通精灵","对战首发精灵"),
'2' => array("普通精灵","跟随精灵"),
'3' => array("已放生","放生仓库"),
'4' =>array('不在训练','正在训练'),
'5' =>array('没有鉴定过','已经鉴定过'),
'6' =>array('不在训练','参加魔鬼训练'),
'7' =>array('普通精灵','对战辅助精灵'),
'8' =>array('普通精灵','资质训练中'),
'9' =>array('普通精灵','提供给其他用户繁殖'),
'10' =>array('不在繁殖中','正在繁殖中'),
'11' =>array('非二代精灵','二代精灵'),
),
@songxingguo宋兴国参考赛尔号成就列表
function test (value, data, index) {
const statusArr = [['仓库', '背包'],
['普通精灵', '对战首发精灵'],
['普通精灵', '跟随精灵'],
['已放生', '放生仓库'],
['不在训练', '正在训练'],
['没有鉴定过', '已经鉴定过'],
['不在训练', '参加魔鬼训练'],
['普通精灵', '对战辅助精灵'],
['普通精灵', '资质训练中'],
['普通精灵', '提供给其他用户繁殖'],
['不在繁殖中', '正在繁殖中'],
['非二代精灵', '二代精灵']
];
// 把 flag 转换成二进制字符串
const flagBinary = value.toString(2);
// 获取二进制字符串的长度
const bitsLength = flagBinary.length;
// 初始化 status
let status = '';
// 检查最低位(精灵位置), 最低位表示精灵的位置,不管0,1都要显示,其他位为0的状态就不显示
if (flagBinary[bitsLength - 1] === '0') {
status = '仓库';
} else {
status = '背包';
}
// 检查其他位
if (bitsLength >= 2) {
for (let j = bitsLength - 2; j >= 0; j--) {
const bit = flagBinary[j];
if (bit!== '0') {
status = `${status};${statusArr[bitsLength - 1 - j][1]}`;
}
}
}
return status;
}
const status = test(35)
console.log(status)
精灵详情
添加精灵
技能
放生仓精灵(不处理)
用户装扮
用户装扮列表
物品列表接口
精灵道具
精灵道具列表
勋章
勋章无删除接口。
勋章列表
星魂
星魂无新增接口。
星魂列表
星魂名称
'runes_info' => array(
11113 => array('item_id'=>'604140','name'=>'百钧'),
11114 => array('item_id'=>'604141','name'=>'超灵'),
11115 => array('item_id'=>'604142','name'=>'千钧'),
11116 => array('item_id'=>'604143','name'=>'神灵'),
11117 => array('item_id'=>'604144','name'=>'钢盾'),
11118 => array('item_id'=>'604145','name'=>'灵界'),
11119 => array('item_id'=>'604146','name'=>'鬼助'),
11120 => array('item_id'=>'604147','name'=>'精准'),
11121 => array('item_id'=>'604148','name'=>'鬼步'),
11122 => array('item_id'=>'604151','name'=>'万钧'),
11123 => array('item_id'=>'604152','name'=>'圣灵'),
11124 => array('item_id'=>'605000','name'=>'钻盾'),
11125 => array('item_id'=>'605001','name'=>'魂界'),
11126 => array('item_id'=>'605002','name'=>'神耀'),
11127 => array('item_id'=>'605003','name'=>'锁魂'),
11128 => array('item_id'=>'605004','name'=>'虚灵'),
11129 => array('item_id'=>'605005','name'=>'怒劫'),
),
{"11113":"百钧","11114":"超灵","11115":"千钧","11116":"神灵","11117":"钢盾","11118":"灵界","11119":"鬼助","11120":"精准","11121":"鬼步","11122":"万钧","11123":"圣灵","11124":"钻盾","11125":"魂界","11126":"神耀","11127":"锁魂","11128":"虚灵","11129":"怒劫"}