1
This commit is contained in:
parent
f2a73368ff
commit
74ef13ee53
File diff suppressed because one or more lines are too long
3
role/tonghua/defaults/main.yml
Normal file
3
role/tonghua/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
gcgame: tonghua
|
||||
gmgame: tonghua
|
1044
role/tonghua/files/car.json
Normal file
1044
role/tonghua/files/car.json
Normal file
File diff suppressed because it is too large
Load Diff
4162
role/tonghua/files/equip.json
Normal file
4162
role/tonghua/files/equip.json
Normal file
File diff suppressed because it is too large
Load Diff
15
role/tonghua/files/equip.py
Normal file
15
role/tonghua/files/equip.py
Normal file
@ -0,0 +1,15 @@
|
||||
import json
|
||||
|
||||
res = {}
|
||||
with open('equip.json', 'r', encoding='utf8') as f:
|
||||
j = json.load(f)
|
||||
data = j['data']
|
||||
keys = [j['keys']] * len(data)
|
||||
for k_array, v_array in zip(keys, data):
|
||||
tmp = {}
|
||||
for k, v in zip(k_array, v_array):
|
||||
tmp[k] = v
|
||||
res[tmp['id']] = tmp
|
||||
|
||||
with open('equip.json', 'w', encoding='utf8') as f:
|
||||
json.dump(res, f)
|
6058
role/tonghua/files/hero.json
Normal file
6058
role/tonghua/files/hero.json
Normal file
File diff suppressed because it is too large
Load Diff
2773
role/tonghua/files/item.json
Normal file
2773
role/tonghua/files/item.json
Normal file
File diff suppressed because it is too large
Load Diff
15
role/tonghua/files/item.py
Normal file
15
role/tonghua/files/item.py
Normal file
@ -0,0 +1,15 @@
|
||||
import json
|
||||
|
||||
res = {}
|
||||
with open('item.json', 'r', encoding='utf8') as f:
|
||||
j = json.load(f)
|
||||
data = j['data']
|
||||
keys = [j['keys']] * len(data)
|
||||
for k_array, v_array in zip(keys, data):
|
||||
tmp = {}
|
||||
for k, v in zip(k_array, v_array):
|
||||
tmp[k] = v
|
||||
res[tmp['id']] = tmp
|
||||
|
||||
with open('item.json', 'w', encoding='utf8') as f:
|
||||
json.dump(res, f)
|
708
role/tonghua/files/pay.json
Normal file
708
role/tonghua/files/pay.json
Normal file
@ -0,0 +1,708 @@
|
||||
{
|
||||
"paycon": {
|
||||
"default": {
|
||||
"gold6": {
|
||||
"editionid": "default",
|
||||
"proid": "gold6",
|
||||
"unitPrice": 600,
|
||||
"name": "60\u94bb\u77f3",
|
||||
"show": "6\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs1",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold30": {
|
||||
"editionid": "default",
|
||||
"proid": "gold30",
|
||||
"unitPrice": 3000,
|
||||
"name": "300\u94bb\u77f3",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs2",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold68": {
|
||||
"editionid": "default",
|
||||
"proid": "gold68",
|
||||
"unitPrice": 6800,
|
||||
"name": "680\u94bb\u77f3",
|
||||
"show": "68\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs3",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold128": {
|
||||
"editionid": "default",
|
||||
"proid": "gold128",
|
||||
"unitPrice": 12800,
|
||||
"name": "1280\u94bb\u77f3",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs4",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold198": {
|
||||
"editionid": "default",
|
||||
"proid": "gold198",
|
||||
"unitPrice": 19800,
|
||||
"name": "1980\u94bb\u77f3",
|
||||
"show": "198\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs5",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold328": {
|
||||
"editionid": "default",
|
||||
"proid": "gold328",
|
||||
"unitPrice": 32800,
|
||||
"name": "3280\u94bb\u77f3",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs6",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold448": {
|
||||
"editionid": "default",
|
||||
"proid": "gold448",
|
||||
"unitPrice": 44800,
|
||||
"name": "4480\u94bb\u77f3",
|
||||
"show": "448\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs7",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"gold648": {
|
||||
"editionid": "default",
|
||||
"proid": "gold648",
|
||||
"unitPrice": 64800,
|
||||
"name": "6480\u94bb\u77f3",
|
||||
"show": "648\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs8",
|
||||
"tab": 1,
|
||||
"double": 2
|
||||
},
|
||||
"yueka30": {
|
||||
"editionid": "default",
|
||||
"proid": "yueka30",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u5730\u4e4b\u7075\u8109",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs5",
|
||||
"tab": 2,
|
||||
"double": ""
|
||||
},
|
||||
"yueka98": {
|
||||
"editionid": "default",
|
||||
"proid": "yueka98",
|
||||
"unitPrice": 9800,
|
||||
"name": "\u5929\u4e4b\u7075\u8109",
|
||||
"show": "98\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs5",
|
||||
"tab": 2,
|
||||
"double": ""
|
||||
},
|
||||
"yueka128": {
|
||||
"editionid": "default",
|
||||
"proid": "yueka128",
|
||||
"unitPrice": 12800,
|
||||
"name": "\u6c38\u751f\u7075\u8109",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "img_zs5",
|
||||
"tab": 2,
|
||||
"double": ""
|
||||
},
|
||||
"libao_6": {
|
||||
"editionid": "default",
|
||||
"proid": "libao_6",
|
||||
"unitPrice": 600,
|
||||
"name": "\u793c\u53056",
|
||||
"show": "6\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"xianshilibao1": {
|
||||
"editionid": "default",
|
||||
"proid": "xianshilibao1",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u9650\u65f6\u793c\u53051",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mrlb_1": {
|
||||
"editionid": "default",
|
||||
"proid": "mrlb_1",
|
||||
"unitPrice": 100,
|
||||
"name": "1\u5143\u793c\u5305",
|
||||
"show": "1\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mrlb_2": {
|
||||
"editionid": "default",
|
||||
"proid": "mrlb_2",
|
||||
"unitPrice": 300,
|
||||
"name": "3\u5143\u793c\u5305",
|
||||
"show": "3\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mrlb_3": {
|
||||
"editionid": "default",
|
||||
"proid": "mrlb_3",
|
||||
"unitPrice": 600,
|
||||
"name": "6\u5143\u793c\u5305",
|
||||
"show": "6\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mrlb_4": {
|
||||
"editionid": "default",
|
||||
"proid": "mrlb_4",
|
||||
"unitPrice": 1800,
|
||||
"name": "18\u5143\u793c\u5305",
|
||||
"show": "18\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mzlb_0": {
|
||||
"editionid": "default",
|
||||
"proid": "mzlb_0",
|
||||
"unitPrice": 6800,
|
||||
"name": "68\u5143\u793c\u5305",
|
||||
"show": "68\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mzlb_1": {
|
||||
"editionid": "default",
|
||||
"proid": "mzlb_1",
|
||||
"unitPrice": 12800,
|
||||
"name": "128\u5143\u793c\u5305",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mzlb_2": {
|
||||
"editionid": "default",
|
||||
"proid": "mzlb_2",
|
||||
"unitPrice": 19800,
|
||||
"name": "198\u5143\u793c\u5305",
|
||||
"show": "198\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mzlb_3": {
|
||||
"editionid": "default",
|
||||
"proid": "mzlb_3",
|
||||
"unitPrice": 32800,
|
||||
"name": "328\u5143\u793c\u5305",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"mzlb_4": {
|
||||
"editionid": "default",
|
||||
"proid": "mzlb_4",
|
||||
"unitPrice": 64800,
|
||||
"name": "648\u5143\u793c\u5305",
|
||||
"show": "648\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"xjhb_1": {
|
||||
"editionid": "default",
|
||||
"proid": "xjhb_1",
|
||||
"unitPrice": 1200,
|
||||
"name": "12\u5143\u7ea2\u5305",
|
||||
"show": "12\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"xjhb_2": {
|
||||
"editionid": "default",
|
||||
"proid": "xjhb_2",
|
||||
"unitPrice": 2000,
|
||||
"name": "20\u5143\u7ea2\u5305",
|
||||
"show": "20\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"xjhb_3": {
|
||||
"editionid": "default",
|
||||
"proid": "xjhb_3",
|
||||
"unitPrice": 32800,
|
||||
"name": "328\u5143\u7ea2\u5305",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"jysp30": {
|
||||
"editionid": "default",
|
||||
"proid": "jysp30",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u5546\u94fa\u5468\u5361",
|
||||
"show": 30,
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"jysp100": {
|
||||
"editionid": "default",
|
||||
"proid": "jysp100",
|
||||
"unitPrice": 10000,
|
||||
"name": "\u666e\u901a\u94bb\u77f3\u793c\u5305",
|
||||
"show": 100,
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"jysp300": {
|
||||
"editionid": "default",
|
||||
"proid": "jysp300",
|
||||
"unitPrice": 30000,
|
||||
"name": "\u7a00\u6709\u94bb\u77f3\u793c\u5305",
|
||||
"show": 300,
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"jysp500": {
|
||||
"editionid": "default",
|
||||
"proid": "jysp500",
|
||||
"unitPrice": 50000,
|
||||
"name": "\u8c6a\u534e\u94bb\u77f3\u793c\u5305",
|
||||
"show": 500,
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"hy98": {
|
||||
"editionid": "default",
|
||||
"proid": "hy98",
|
||||
"unitPrice": 9800,
|
||||
"name": "\u8ffd\u52a0\u5408\u7ea6",
|
||||
"show": "98\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"jijin128": {
|
||||
"editionid": "default",
|
||||
"proid": "jijin128",
|
||||
"unitPrice": 12800,
|
||||
"name": "\u7cbe\u82f1\u52cb\u7ae0",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"jijin328": {
|
||||
"editionid": "default",
|
||||
"proid": "jijin328",
|
||||
"unitPrice": 32800,
|
||||
"name": "\u5192\u9669\u52cb\u7ae0",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel5": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel5",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e5\u661f",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel6": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel6",
|
||||
"unitPrice": 6800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e6\u661f",
|
||||
"show": "68\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel7": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel7",
|
||||
"unitPrice": 12800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e7\u661f",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel8": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel8",
|
||||
"unitPrice": 19800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e8\u661f",
|
||||
"show": "198\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel9": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel9",
|
||||
"unitPrice": 32800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e9\u661f",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel10": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel10",
|
||||
"unitPrice": 32800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e10\u661f",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel11": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel11",
|
||||
"unitPrice": 32800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e11\u661f",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"starlevel12": {
|
||||
"editionid": "default",
|
||||
"proid": "starlevel12",
|
||||
"unitPrice": 64800,
|
||||
"name": "\u5347\u661f\u4e13\u5c5e12\u661f",
|
||||
"show": "648\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"yzzl_198": {
|
||||
"editionid": "default",
|
||||
"proid": "yzzl_198",
|
||||
"unitPrice": 19800,
|
||||
"name": "\u52c7\u8005\u6218\u4ee4\u8fdb\u9636",
|
||||
"show": "198\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"gjqiyue": {
|
||||
"editionid": "default",
|
||||
"proid": "gjqiyue",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u9ad8\u7ea7\u4efb\u52a1\u5951\u7ea6",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"fs30": {
|
||||
"editionid": "default",
|
||||
"proid": "fs30",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u4e30\u6536\u793c\u530530",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"fs68": {
|
||||
"editionid": "default",
|
||||
"proid": "fs68",
|
||||
"unitPrice": 6800,
|
||||
"name": "\u4e30\u6536\u793c\u530568",
|
||||
"show": "68\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"fs128": {
|
||||
"editionid": "default",
|
||||
"proid": "fs128",
|
||||
"unitPrice": 12800,
|
||||
"name": "\u4e30\u6536\u793c\u5305128",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"fs328": {
|
||||
"editionid": "default",
|
||||
"proid": "fs328",
|
||||
"unitPrice": 32800,
|
||||
"name": "\u4e30\u6536\u793c\u5305328",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"fs648": {
|
||||
"editionid": "default",
|
||||
"proid": "fs648",
|
||||
"unitPrice": 64800,
|
||||
"name": "\u4e30\u6536\u793c\u5305648",
|
||||
"show": "648\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"ql128": {
|
||||
"editionid": "default",
|
||||
"proid": "ql128",
|
||||
"unitPrice": 12800,
|
||||
"name": "\u7948\u7075\u4e4b\u793c128",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"bj30": {
|
||||
"editionid": "default",
|
||||
"proid": "bj30",
|
||||
"unitPrice": 3000,
|
||||
"name": "\u8865\u7ed9\u5c0f\u5c4b30",
|
||||
"show": "30\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"bj68": {
|
||||
"editionid": "default",
|
||||
"proid": "bj68",
|
||||
"unitPrice": 6800,
|
||||
"name": "\u8865\u7ed9\u5c0f\u5c4b68",
|
||||
"show": "68\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"bj128": {
|
||||
"editionid": "default",
|
||||
"proid": "bj128",
|
||||
"unitPrice": 12800,
|
||||
"name": "\u8865\u7ed9\u5c0f\u5c4b128",
|
||||
"show": "128\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"bj198": {
|
||||
"editionid": "default",
|
||||
"proid": "bj198",
|
||||
"unitPrice": 19800,
|
||||
"name": "\u8865\u7ed9\u5c0f\u5c4b198",
|
||||
"show": "198\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"bj328": {
|
||||
"editionid": "default",
|
||||
"proid": "bj328",
|
||||
"unitPrice": 32800,
|
||||
"name": "\u8865\u7ed9\u5c0f\u5c4b328",
|
||||
"show": "328\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
},
|
||||
"bj648": {
|
||||
"editionid": "default",
|
||||
"proid": "bj648",
|
||||
"unitPrice": 64800,
|
||||
"name": "\u8865\u7ed9\u5c0f\u5c4b648",
|
||||
"show": "648\u5143",
|
||||
"rmbmoney": 0,
|
||||
"zsrmbmoney": 0,
|
||||
"zsrmbmoneynum": 0,
|
||||
"img": "",
|
||||
"tab": "",
|
||||
"double": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
role/tonghua/files/pay.py
Normal file
21
role/tonghua/files/pay.py
Normal file
@ -0,0 +1,21 @@
|
||||
#coding:utf-8
|
||||
import json
|
||||
|
||||
res = {}
|
||||
with open('pay.json', 'r', encoding='utf8') as f:
|
||||
j = json.load(f)
|
||||
data = j['keys']
|
||||
keys = [j['keys']] * len(j['data'])
|
||||
for k_array, v_array in zip(keys, j['data']):
|
||||
if v_array[0]!='default':
|
||||
continue
|
||||
tmp = {}
|
||||
for k, v in zip(k_array, v_array):
|
||||
tmp[k] = v
|
||||
tmp['name'] = tmp['name']
|
||||
tmp['unitPrice'] = tmp['unitPrice']
|
||||
res[tmp['proid']] = tmp
|
||||
|
||||
with open('pay.json', 'w', encoding='utf8') as f:
|
||||
res = {'paycon': {'default': res}}
|
||||
json.dump(res, f)
|
1886
role/tonghua/files/pet.json
Normal file
1886
role/tonghua/files/pet.json
Normal file
File diff suppressed because it is too large
Load Diff
19769
role/tonghua/files/record.json
Normal file
19769
role/tonghua/files/record.json
Normal file
File diff suppressed because it is too large
Load Diff
10
role/tonghua/files/wuhun.py
Normal file
10
role/tonghua/files/wuhun.py
Normal file
@ -0,0 +1,10 @@
|
||||
import json
|
||||
res = {
|
||||
|
||||
}
|
||||
with open('wuhun.json','r',encoding='utf8') as f:
|
||||
j = json.load(f)
|
||||
for i in j:
|
||||
res[i] = j[i]['1']
|
||||
with open('wuhun.json','w',encoding='utf8') as f:
|
||||
json.dump(res,f)
|
30
role/tonghua/tasks/equip.yml
Normal file
30
role/tonghua/tasks/equip.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: 下载 equip
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/equip.json"
|
||||
dest: "{{ansible_role_name}}/files/equip.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 适配结构
|
||||
local_action: shell
|
||||
args:
|
||||
chdir: "{{ansible_role_name}}/files/"
|
||||
cmd: "python3 equip.py"
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: equip.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: equip.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
24
role/tonghua/tasks/glyph.yml
Normal file
24
role/tonghua/tasks/glyph.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: 下载 glyph
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/glyph.json"
|
||||
dest: "{{ansible_role_name}}/files/glyph.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: glyph.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: glyph.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
24
role/tonghua/tasks/hero.yml
Normal file
24
role/tonghua/tasks/hero.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: 下载 hero
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/hero.json"
|
||||
dest: "{{ansible_role_name}}/files/hero.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: hero.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: hero.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
30
role/tonghua/tasks/item.yml
Normal file
30
role/tonghua/tasks/item.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: 下载 item
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/item.json"
|
||||
dest: "{{ansible_role_name}}/files/item.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 适配结构
|
||||
local_action: shell
|
||||
args:
|
||||
chdir: "{{ansible_role_name}}/files/"
|
||||
cmd: "python3 item.py"
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: item.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: item.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
5
role/tonghua/tasks/main.yml
Normal file
5
role/tonghua/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
|
||||
- include: equip.yml
|
||||
- include: item.yml
|
||||
- include: pay.yml
|
30
role/tonghua/tasks/pay.yml
Normal file
30
role/tonghua/tasks/pay.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: 下载 pay
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/pay.json"
|
||||
dest: "{{ansible_role_name}}/files/pay.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 处理pay
|
||||
local_action: shell
|
||||
args:
|
||||
chdir: "{{ansible_role_name}}/files/"
|
||||
cmd: "python3 pay.py"
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: pay.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: pay.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
24
role/tonghua/tasks/pet.yml
Normal file
24
role/tonghua/tasks/pet.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: 下载 pet
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/pet.json"
|
||||
dest: "{{ansible_role_name}}/files/pet.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: pet.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: pet.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
24
role/tonghua/tasks/shipin.yml
Normal file
24
role/tonghua/tasks/shipin.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: 下载 shipin
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/client/res/samejson/shipin.json"
|
||||
dest: "{{ansible_role_name}}/files/shipin.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: shipin.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: shipin.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
31
role/tonghua/tasks/wuhun.yml
Normal file
31
role/tonghua/tasks/wuhun.yml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: 下载 wuhun
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/tonghua/trunk/client/res/samejson/wuhun.json"
|
||||
dest: "{{ansible_role_name}}/files/wuhun.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 处理武魂
|
||||
local_action: shell
|
||||
args:
|
||||
chdir: "{{ansible_role_name}}/files/"
|
||||
cmd: "python3 wuhun.py"
|
||||
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: wuhun.json
|
||||
dest: "{{gmdir}}/{{gmgame}}"
|
||||
|
||||
- name: 拷贝到gc
|
||||
copy:
|
||||
src: wuhun.json
|
||||
dest: "{{gcdir}}/{{gmgame}}"
|
||||
|
||||
|
||||
|
||||
|
0
role/tonghua/vars/default.yml
Normal file
0
role/tonghua/vars/default.yml
Normal file
File diff suppressed because it is too large
Load Diff
21
role/xiangsu/files/pay.py
Normal file
21
role/xiangsu/files/pay.py
Normal file
@ -0,0 +1,21 @@
|
||||
#coding:utf-8
|
||||
import json
|
||||
|
||||
res = {}
|
||||
with open('pay.json', 'r', encoding='utf8') as f:
|
||||
j = json.load(f)
|
||||
data = j['keys']
|
||||
keys = [j['keys']] * len(j['data'])
|
||||
for k_array, v_array in zip(keys, j['data']):
|
||||
if v_array[0]!='default':
|
||||
continue
|
||||
tmp = {}
|
||||
for k, v in zip(k_array, v_array):
|
||||
tmp[k] = v
|
||||
tmp['name'] = tmp['name']
|
||||
tmp['unitPrice'] = tmp['unitPrice']
|
||||
res[tmp['proid']] = tmp
|
||||
|
||||
with open('pay.json', 'w', encoding='utf8') as f:
|
||||
res = {'paycon': {'default': res}}
|
||||
json.dump(res, f)
|
@ -2,3 +2,4 @@
|
||||
|
||||
- include: equip.yml
|
||||
- include: item.yml
|
||||
- include: pay.yml
|
||||
|
@ -2,13 +2,19 @@
|
||||
- name: 下载 pay
|
||||
local_action: subversion
|
||||
args:
|
||||
repo: "{{svn}}/xiangsu/server/json/pay.json"
|
||||
repo: "{{svn}}/xiangsu/client/res/samejson/pay.json"
|
||||
dest: "{{ansible_role_name}}/files/pay.json"
|
||||
username: "{{username}}"
|
||||
password: "{{password}}"
|
||||
export: yes
|
||||
force: yes
|
||||
|
||||
- name: 处理pay
|
||||
local_action: shell
|
||||
args:
|
||||
chdir: "{{ansible_role_name}}/files/"
|
||||
cmd: "python3 pay.py"
|
||||
|
||||
- name: 拷贝到gm
|
||||
copy:
|
||||
src: pay.json
|
||||
|
Loading…
Reference in New Issue
Block a user