From 488b3c2eb179033c80a906def75708cbf5555a45 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sun, 27 Oct 2019 23:13:48 +0800 Subject: [PATCH] itemShop --- project/plugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/project/plugins.js b/project/plugins.js index fc208456..e8de6f9f 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -340,6 +340,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = // 实际区域 if (px >= 9 && px <= 300 && py >= 120 && py < 360) { + if (list.length == 0) return; var index = parseInt((py - 120) / 40); var newItem = 6 * (page - 1) + index; if (newItem >= list.length) newItem = list.length - 1;