From 608e016890a9efb9295be8f50e4998b32b22da59 Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Sun, 26 Jan 2025 22:56:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/ItemMergeConfig.json | 474 +++++++++++++++++++++++++++++------ tools/batchSetting.js | 59 ++++- 2 files changed, 455 insertions(+), 78 deletions(-) diff --git a/configs/ItemMergeConfig.json b/configs/ItemMergeConfig.json index b914436..9398f23 100644 --- a/configs/ItemMergeConfig.json +++ b/configs/ItemMergeConfig.json @@ -12,7 +12,7 @@ "second_index": 1, "table": [ { "id": 869, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 1000} + { "id": 2, "type": 2, "count": 1000 } ], "openserverday": 1, "level": 1, @@ -30,7 +30,7 @@ "second_index": 1, "table": [ { "id": 870, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 3000} + { "id": 2, "type": 2, "count": 3000 } ], "openserverday": 1, "level": 1, @@ -48,7 +48,7 @@ "second_index": 1, "table": [ { "id": 871, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -66,7 +66,7 @@ "second_index": 1, "table": [ { "id": 872, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 10000} + { "id": 2, "type": 2, "count": 10000 } ], "openserverday": 1, "level": 1, @@ -82,7 +82,7 @@ "second_index": 1, "table": [ { "id": 873, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -98,7 +98,7 @@ "second_index": 1, "table": [ { "id": 874, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -114,7 +114,7 @@ "second_index": 1, "table": [ { "id": 875, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 100000} + { "id": 2, "type": 2, "count": 100000 } ], "openserverday": 1, "level": 1, @@ -130,7 +130,7 @@ "second_index": 1, "table": [ { "id": 876, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 300000} + { "id": 2, "type": 2, "count": 300000 } ], "openserverday": 1, "level": 1, @@ -146,7 +146,7 @@ "second_index": 1, "table": [ { "id": 877, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 500000} + { "id": 2, "type": 2, "count": 500000 } ], "openserverday": 1, "level": 1, @@ -162,7 +162,7 @@ "second_index": 1, "table": [ { "id": 878, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 10000000} + { "id": 2, "type": 2, "count": 10000000 } ], "openserverday": 1, "level": 1, @@ -182,7 +182,7 @@ "second_index": 2, "table": [ { "id": 880, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 1000} + { "id": 2, "type": 2, "count": 1000 } ], "openserverday": 1, "level": 1, @@ -200,7 +200,7 @@ "second_index": 2, "table": [ { "id": 881, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 3000} + { "id": 2, "type": 2, "count": 3000 } ], "openserverday": 1, "level": 1, @@ -218,7 +218,7 @@ "second_index": 2, "table": [ { "id": 882, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -236,7 +236,7 @@ "second_index": 2, "table": [ { "id": 883, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 10000} + { "id": 2, "type": 2, "count": 10000 } ], "openserverday": 1, "level": 1, @@ -252,7 +252,7 @@ "second_index": 2, "table": [ { "id": 884, "type": 0, "count": 2 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -268,7 +268,7 @@ "second_index": 2, "table": [ { "id": 885, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -284,7 +284,7 @@ "second_index": 2, "table": [ { "id": 886, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 100000} + { "id": 2, "type": 2, "count": 100000 } ], "openserverday": 1, "level": 1, @@ -300,7 +300,7 @@ "second_index": 2, "table": [ { "id": 887, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 300000} + { "id": 2, "type": 2, "count": 300000 } ], "openserverday": 1, "level": 1, @@ -316,7 +316,7 @@ "second_index": 2, "table": [ { "id": 888, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 500000} + { "id": 2, "type": 2, "count": 500000 } ], "openserverday": 1, "level": 1, @@ -332,7 +332,7 @@ "second_index": 2, "table": [ { "id": 889, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 1000000} + { "id": 2, "type": 2, "count": 1000000 } ], "openserverday": 1, "level": 1, @@ -352,7 +352,7 @@ "second_index": 3, "table": [ { "id": 891, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 2000} + { "id": 2, "type": 2, "count": 2000 } ], "openserverday": 1, "level": 1, @@ -370,7 +370,7 @@ "second_index": 3, "table": [ { "id": 892, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -388,7 +388,7 @@ "second_index": 3, "table": [ { "id": 893, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 10000} + { "id": 2, "type": 2, "count": 10000 } ], "openserverday": 1, "level": 1, @@ -406,7 +406,7 @@ "second_index": 3, "table": [ { "id": 894, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -422,7 +422,7 @@ "second_index": 3, "table": [ { "id": 895, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -438,7 +438,7 @@ "second_index": 3, "table": [ { "id": 896, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 100000} + { "id": 2, "type": 2, "count": 100000 } ], "openserverday": 1, "level": 1, @@ -454,7 +454,7 @@ "second_index": 3, "table": [ { "id": 897, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 300000} + { "id": 2, "type": 2, "count": 300000 } ], "openserverday": 1, "level": 1, @@ -470,7 +470,7 @@ "second_index": 3, "table": [ { "id": 898, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 500000} + { "id": 2, "type": 2, "count": 500000 } ], "openserverday": 1, "level": 1, @@ -486,7 +486,7 @@ "second_index": 3, "table": [ { "id": 899, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 1000000} + { "id": 2, "type": 2, "count": 1000000 } ], "openserverday": 1, "level": 1, @@ -506,7 +506,7 @@ "second_index": 4, "table": [ { "id": 351, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 3000} + { "id": 2, "type": 2, "count": 3000 } ], "openserverday": 1, "level": 1, @@ -524,7 +524,7 @@ "second_index": 4, "table": [ { "id": 352, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -542,7 +542,7 @@ "second_index": 4, "table": [ { "id": 353, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 10000} + { "id": 2, "type": 2, "count": 10000 } ], "openserverday": 1, "level": 1, @@ -560,7 +560,7 @@ "second_index": 4, "table": [ { "id": 354, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -576,7 +576,7 @@ "second_index": 4, "table": [ { "id": 355, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -592,7 +592,7 @@ "second_index": 4, "table": [ { "id": 356, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 100000} + { "id": 2, "type": 2, "count": 100000 } ], "openserverday": 1, "level": 1, @@ -608,7 +608,7 @@ "second_index": 4, "table": [ { "id": 357, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 300000} + { "id": 2, "type": 2, "count": 300000 } ], "openserverday": 1, "level": 1, @@ -624,7 +624,7 @@ "second_index": 4, "table": [ { "id": 857, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 500000} + { "id": 2, "type": 2, "count": 500000 } ], "openserverday": 1, "level": 1, @@ -640,7 +640,7 @@ "second_index": 4, "table": [ { "id": 858, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 1000000} + { "id": 2, "type": 2, "count": 1000000 } ], "openserverday": 1, "level": 1, @@ -660,7 +660,7 @@ "second_index": 5, "table": [ { "id": 372, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 3000} + { "id": 2, "type": 2, "count": 3000 } ], "openserverday": 1, "level": 1, @@ -678,7 +678,7 @@ "second_index": 5, "table": [ { "id": 373, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -696,7 +696,7 @@ "second_index": 5, "table": [ { "id": 374, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 10000} + { "id": 2, "type": 2, "count": 10000 } ], "openserverday": 1, "level": 1, @@ -714,7 +714,7 @@ "second_index": 5, "table": [ { "id": 375, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -730,7 +730,7 @@ "second_index": 5, "table": [ { "id": 376, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -746,7 +746,7 @@ "second_index": 5, "table": [ { "id": 377, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 100000} + { "id": 2, "type": 2, "count": 100000 } ], "openserverday": 1, "level": 1, @@ -762,7 +762,7 @@ "second_index": 5, "table": [ { "id": 378, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 300000} + { "id": 2, "type": 2, "count": 300000 } ], "openserverday": 1, "level": 1, @@ -778,7 +778,7 @@ "second_index": 5, "table": [ { "id": 866, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 500000} + { "id": 2, "type": 2, "count": 500000 } ], "openserverday": 1, "level": 1, @@ -794,7 +794,7 @@ "second_index": 5, "table": [ { "id": 867, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 1000000} + { "id": 2, "type": 2, "count": 1000000 } ], "openserverday": 1, "level": 1, @@ -814,7 +814,7 @@ "second_index": 6, "table": [ { "id": 358, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 3000} + { "id": 2, "type": 2, "count": 3000 } ], "openserverday": 1, "level": 1, @@ -832,7 +832,7 @@ "second_index": 6, "table": [ { "id": 359, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -850,7 +850,7 @@ "second_index": 6, "table": [ { "id": 360, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 10000} + { "id": 2, "type": 2, "count": 10000 } ], "openserverday": 1, "level": 1, @@ -868,7 +868,7 @@ "second_index": 6, "table": [ { "id": 361, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -884,7 +884,7 @@ "second_index": 6, "table": [ { "id": 362, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -900,7 +900,7 @@ "second_index": 6, "table": [ { "id": 363, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 100000} + { "id": 2, "type": 2, "count": 100000 } ], "openserverday": 1, "level": 1, @@ -916,7 +916,7 @@ "second_index": 6, "table": [ { "id": 364, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 300000} + { "id": 2, "type": 2, "count": 300000 } ], "openserverday": 1, "level": 1, @@ -932,7 +932,7 @@ "second_index": 6, "table": [ { "id": 860, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 500000} + { "id": 2, "type": 2, "count": 500000 } ], "openserverday": 1, "level": 1, @@ -948,7 +948,7 @@ "second_index": 6, "table": [ { "id": 861, "type": 0, "count": 3 }, - { "id": 2, "type": 2, "count": 1000000} + { "id": 2, "type": 2, "count": 1000000 } ], "openserverday": 1, "level": 1, @@ -968,7 +968,7 @@ "second_index": 7, "table": [ { "id": 365, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 1000} + { "id": 2, "type": 2, "count": 1000 } ], "openserverday": 1, "level": 1, @@ -986,7 +986,7 @@ "second_index": 7, "table": [ { "id": 366, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 3000} + { "id": 2, "type": 2, "count": 3000 } ], "openserverday": 1, "level": 1, @@ -1004,7 +1004,7 @@ "second_index": 7, "table": [ { "id": 367, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 5000} + { "id": 2, "type": 2, "count": 5000 } ], "openserverday": 1, "level": 1, @@ -1022,7 +1022,7 @@ "second_index": 7, "table": [ { "id": 368, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 8000} + { "id": 2, "type": 2, "count": 8000 } ], "openserverday": 1, "level": 1, @@ -1038,7 +1038,7 @@ "second_index": 7, "table": [ { "id": 369, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 15000} + { "id": 2, "type": 2, "count": 15000 } ], "openserverday": 1, "level": 1, @@ -1054,7 +1054,7 @@ "second_index": 7, "table": [ { "id": 370, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 30000} + { "id": 2, "type": 2, "count": 30000 } ], "openserverday": 1, "level": 1, @@ -1070,7 +1070,7 @@ "second_index": 7, "table": [ { "id": 371, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 50000} + { "id": 2, "type": 2, "count": 50000 } ], "openserverday": 1, "level": 1, @@ -1086,7 +1086,7 @@ "second_index": 7, "table": [ { "id": 863, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 80000} + { "id": 2, "type": 2, "count": 80000 } ], "openserverday": 1, "level": 1, @@ -1102,7 +1102,7 @@ "second_index": 7, "table": [ { "id": 864, "type": 0, "count": 5 }, - { "id": 2, "type": 2, "count": 120000} + { "id": 2, "type": 2, "count": 120000 } ], "openserverday": 1, "level": 1, @@ -4715,7 +4715,7 @@ "2": { "7201": { "circle": 0, - "compose": { "id": 4, "type": 4, "count": 1500 }, + "compose": { "id": 4, "type": 4, "count": 1000 }, "index": 7, "buttontxt10": "合成10次", "mergebutton10": 1, @@ -4723,13 +4723,13 @@ "clicklimit": 1, "Eid": 7201, "second_index": 1, - "table": [{ "id": 397, "type": 0, "count": 10 }], + "table": [{ "id": 389, "type": 0, "count": 1 }], "openserverday": 1, "level": 1 }, "7202": { "circle": 0, - "compose": { "id": 4, "type": 4, "count": 150000 }, + "compose": { "id": 4, "type": 4, "count": 100000 }, "index": 7, "buttontxt10": "合成10次", "mergebutton10": 1, @@ -4737,13 +4737,13 @@ "clicklimit": 1, "Eid": 7202, "second_index": 1, - "table": [{ "id": 397, "type": 0, "count": 1000 }], + "table": [{ "id": 389, "type": 0, "count": 100 }], "openserverday": 1, "level": 1 }, "7203": { "circle": 0, - "compose": { "id": 4, "type": 4, "count": 3000 }, + "compose": { "id": 4, "type": 4, "count": 1000 }, "index": 7, "buttontxt10": "合成10次", "mergebutton10": 1, @@ -4751,27 +4751,27 @@ "clicklimit": 1, "Eid": 7203, "second_index": 1, - "table": [{ "id": 398, "type": 0, "count": 10 }], + "table": [{ "id": 389, "type": 0, "count": 1 }], "openserverday": 1, "level": 1 }, "7204": { "circle": 0, - "compose": { "id": 4, "type": 4, "count": 300000 }, + "compose": { "id": 4, "type": 4, "count": 100000 }, "index": 7, "buttontxt10": "合成10次", "mergebutton10": 1, "text": "兑换", "clicklimit": 1, - "Eid": 7203, + "Eid": 7204, "second_index": 1, - "table": [{ "id": 398, "type": 0, "count": 1000 }], + "table": [{ "id": 389, "type": 0, "count": 100 }], "openserverday": 1, "level": 1 }, "7205": { "circle": 0, - "compose": { "id": 4, "type": 4, "count": 5000 }, + "compose": { "id": 4, "type": 4, "count": 1000 }, "index": 7, "buttontxt10": "合成10次", "mergebutton10": 1, @@ -4779,7 +4779,329 @@ "clicklimit": 1, "Eid": 7205, "second_index": 1, - "table": [{ "id": 399, "type": 0, "count": 10 }], + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7206": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7206, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7207": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7207, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7208": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7208, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7209": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7209, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7210": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7210, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7211": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7211, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7212": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7212, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7213": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7213, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7214": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7214, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7215": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7215, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7216": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7216, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7217": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7217, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7218": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7218, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7219": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7219, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7220": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7220, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7221": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7221, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7222": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7222, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7223": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7223, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7224": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7224, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7225": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7225, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7226": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7226, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + }, + "7227": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 1000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7227, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "7228": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": 100000 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": 7228, + "second_index": 1, + "table": [{ "id": 389, "type": 0, "count": 100 }], "openserverday": 1, "level": 1 } diff --git a/tools/batchSetting.js b/tools/batchSetting.js index 7b18ec0..e479c99 100644 --- a/tools/batchSetting.js +++ b/tools/batchSetting.js @@ -1,5 +1,21 @@ const fs = require("fs"); const ringType = 6; +const YBvoucher = { + '380': '100', + '388': '200', + '389': '500', + '390': '1000', + '391': '2000', + '392': '5000', + '393': '10000', + '394': '1', + '395': '5', + '396': '10', + '397': '15', + '398': '30', + '399': '50', + '400': '80' +} const tpls = { SpecialRing: { key: "SpecialRing", @@ -61,11 +77,48 @@ const tpls = { }`, }[ringType], }, + ItemMergeConfig: { + key: "ItemMergeConfig", + desc: "ID1,ID2,代金券ID,元宝数", + values: [7201, 7202,Object.keys(YBvoucher),Object.values(YBvoucher)], + interval: [2, 2], + num: Object.keys(YBvoucher).length, + template: ` + "S1": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": S4 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": S1, + "second_index": 1, + "table": [{ "id": S3, "type": 0, "count": 1 }], + "openserverday": 1, + "level": 1 + }, + "S2": { + "circle": 0, + "compose": { "id": 4, "type": 4, "count": S400 }, + "index": 7, + "buttontxt10": "合成10次", + "mergebutton10": 1, + "text": "兑换", + "clicklimit": 1, + "Eid": S2, + "second_index": 1, + "table": [{ "id": S3, "type": 0, "count": 100 }], + "openserverday": 1, + "level": 1 + } + `, + }, }; const scope = [ // "UpstarConfig", - "SpecialRing", + "ItemMergeConfig", ].filter(Boolean); const start = () => { const configs = scope.map((key) => { @@ -77,7 +130,9 @@ const start = () => { let str = template; values.forEach((v, i) => { const reg = new RegExp(`S${i + 1}`, "g"); - str = str.replace(reg, v + index * interval[i]); + if (Array.isArray(v)) { + str = str.replace(reg, v[i]); + } else str = str.replace(reg, v + index * interval[i]); }); return str; };