From 4fb3f4dbcc92de067d8cebf9ac7c8206576dcc0a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 9 Nov 2020 11:53:20 +0800 Subject: [PATCH] 1 --- ext_data/PlatformIds.json | 163 ++++++++++++++++++++++++++++++++++++++ ext_data/excel2json.py | 2 +- 2 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 ext_data/PlatformIds.json diff --git a/ext_data/PlatformIds.json b/ext_data/PlatformIds.json new file mode 100644 index 0000000..6f9ad38 --- /dev/null +++ b/ext_data/PlatformIds.json @@ -0,0 +1,163 @@ +[ + { + "id": 1, + "index": 1, + "name": "6元60元宝", + "type": 1, + "money": 6 + }, + { + "id": 2, + "index": 2, + "name": "30元300元宝", + "type": 1, + "money": 30 + }, + { + "id": 3, + "index": 3, + "name": "98元980元宝", + "type": 1, + "money": 98 + }, + { + "id": 4, + "index": 4, + "name": "198元1980元宝", + "type": 1, + "money": 198 + }, + { + "id": 5, + "index": 5, + "name": "328元3280元宝", + "type": 1, + "money": 328 + }, + { + "id": 6, + "index": 6, + "name": "648元6480元宝", + "type": 1, + "money": 648 + }, + { + "id": 7, + "index": 1, + "name": "6元240元宝", + "type": 4, + "money": 6 + }, + { + "id": 8, + "index": 2, + "name": "18元720元宝", + "type": 4, + "money": 18 + }, + { + "id": 9, + "index": 3, + "name": "128元5120元宝", + "type": 4, + "money": 128 + }, + { + "id": 10, + "index": 4, + "name": "648元25920元宝", + "type": 4, + "money": 648 + }, + { + "id": 11, + "index": 1, + "name": "尊贵铂金卡30元", + "type": 2, + "money": 30 + }, + { + "id": 12, + "index": 2, + "name": "至尊紫金卡98元", + "type": 2, + "money": 98 + }, + { + "id": 13, + "index": 1, + "name": "等级返利58元", + "type": 3, + "money": 58 + }, + { + "id": 14, + "index": 2, + "name": "登录返利98元", + "type": 3, + "money": 98 + }, + { + "id": 15, + "index": 3, + "name": "闯关返利128元", + "type": 3, + "money": 128 + }, + { + "id": 16, + "index": 1, + "name": "1元礼包", + "type": 5, + "money": 1 + }, + { + "id": 17, + "index": 6, + "name": "6元礼包", + "type": 5, + "money": 6 + }, + { + "id": 18, + "index": 18, + "name": "18元礼包", + "type": 5, + "money": 18 + }, + { + "id": 19, + "index": 30, + "name": "30元礼包", + "type": 5, + "money": 30 + }, + { + "id": 20, + "index": 98, + "name": "98元礼包", + "type": 5, + "money": 98 + }, + { + "id": 21, + "index": 328, + "name": "328元礼包", + "type": 5, + "money": 328 + }, + { + "id": 22, + "index": 1, + "name": "1元购", + "type": 6, + "money": 1 + }, + { + "id": 23, + "index": 15, + "name": "节日活动双倍卡", + "type": 7, + "money": 15 + } +] \ No newline at end of file diff --git a/ext_data/excel2json.py b/ext_data/excel2json.py index 063071d..a975525 100644 --- a/ext_data/excel2json.py +++ b/ext_data/excel2json.py @@ -28,7 +28,7 @@ def convertSheet(sourceFile, sheet): data.append(item) #end for m jsondata = json.dumps(data, indent=4, separators=(',', ': '), ensure_ascii=False) - out_file = open("./" + sourceFile[:-5] + ".json", "w") + out_file = open("./" + sourceFile[:-9] + ".json", "w") out_file.write(jsondata) out_file.close()