mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
@@ -71,7 +71,7 @@ module.exports = class RightStufCommand extends Command {
|
|||||||
let current = item.itemimages_detail
|
let current = item.itemimages_detail
|
||||||
while (!found) {
|
while (!found) {
|
||||||
if (current.primary) found = current.primary.url;
|
if (current.primary) found = current.primary.url;
|
||||||
if (current.urls) found = current.urls.url;
|
if (current.urls) found = current.urls[0].url;
|
||||||
const key = Object.keys(current)[0];
|
const key = Object.keys(current)[0];
|
||||||
if (!key) break;
|
if (!key) break;
|
||||||
current = current[key];
|
current = current[key];
|
||||||
|
|||||||
Reference in New Issue
Block a user