From c4c4e6373a6583e160adac2b30ba1f82f8843b09 Mon Sep 17 00:00:00 2001 From: wuyutou <87822464+wuyutou@users.noreply.github.com> Date: Mon, 21 Apr 2025 18:50:41 +0800 Subject: [PATCH] Update main.js (#618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决默认值不生效问题 --- repo/js/AutoFriendship鸡腿/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/repo/js/AutoFriendship鸡腿/main.js b/repo/js/AutoFriendship鸡腿/main.js index baaf18c1..9bb893a4 100644 --- a/repo/js/AutoFriendship鸡腿/main.js +++ b/repo/js/AutoFriendship鸡腿/main.js @@ -81,6 +81,7 @@ } function isPositiveInteger(value) { + value = Number(value); return Number.isInteger(value) && value > 0; } // 启用自动拾取的实时任务