This commit is contained in:
wh_zcy 2022-09-19 10:05:44 +08:00
commit 48f1bb7404
19 changed files with 3348 additions and 2016 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[ [
{ {
"id": 125004011, "id": 125001111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -24,7 +24,7 @@
] ]
}, },
{ {
"id": 125004211, "id": 144006111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -36,7 +36,7 @@
] ]
}, },
{ {
"id": 125004311, "id": 135001111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -48,7 +48,7 @@
] ]
}, },
{ {
"id": 125001011, "id": 144005111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -60,7 +60,7 @@
] ]
}, },
{ {
"id": 125001111, "id": 115004111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -72,7 +72,7 @@
] ]
}, },
{ {
"id": 125001211, "id": 124002111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -84,7 +84,7 @@
] ]
}, },
{ {
"id": 125001311, "id": 114007111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -96,7 +96,7 @@
] ]
}, },
{ {
"id": 135002011, "id": 145003111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -108,7 +108,7 @@
] ]
}, },
{ {
"id": 135002111, "id": 124004111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -120,7 +120,7 @@
] ]
}, },
{ {
"id": 135002211, "id": 114003111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -132,7 +132,7 @@
] ]
}, },
{ {
"id": 135002311, "id": 135003111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -144,7 +144,7 @@
] ]
}, },
{ {
"id": 134006011, "id": 115005111,
"probability": [ "probability": [
300, 300,
255, 255,
@ -167,42 +167,6 @@
100 100
] ]
}, },
{
"id": 134006211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 134006311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 124003011,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{ {
"id": 124003111, "id": 124003111,
"probability": [ "probability": [
@ -215,6 +179,174 @@
100 100
] ]
}, },
{
"id": 125001211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 125004211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 144006211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 135001211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 144005211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 115004211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 124002211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 114007211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 145003211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 124004211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 114003211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 135003211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 115005211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 134006211,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{ {
"id": 124003211, "id": 124003211,
"probability": [ "probability": [
@ -227,6 +359,174 @@
100 100
] ]
}, },
{
"id": 125001311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 125004311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 144006311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 135001311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 144005311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 115004311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 124002311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 114007311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 145003311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 124004311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 114003311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 135003311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 115005311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{
"id": 134006311,
"probability": [
300,
255,
200,
100,
100,
100,
100
]
},
{ {
"id": 124003311, "id": 124003311,
"probability": [ "probability": [

View File

@ -2,86 +2,81 @@
{ {
"key": 1, "key": 1,
"id": "25001", "id": "25001",
"star": 4, "star": 5,
"needhero": "25001", "needhero": "",
"needherostar": 4, "needherostar": 0,
"needheronum": 1, "needheronum": 0,
"needrace": [ "needrace": [
2 1,
2,
3,
4
], ],
"needracestar": 4, "needracestar": 5,
"needracenum": 4, "needracenum": 5,
"gold": 10000 "gold": 10000
}, },
{ {
"key": 2, "key": 2,
"id": "25001", "id": "25001",
"star": 5, "star": 6,
"needhero": "25001", "needhero": "",
"needherostar": 5, "needherostar": 0,
"needheronum": 1, "needheronum": 0,
"needrace": [ "needrace": [],
2 "needracestar": 0,
], "needracenum": 0,
"needracestar": 5, "gold": 0
"needracenum": 4,
"gold": 10000
}, },
{ {
"key": 3, "key": 3,
"id": "25001", "id": "14003",
"star": 6, "star": 5,
"needhero": "", "needhero": "",
"needherostar": 0, "needherostar": 0,
"needheronum": 0, "needheronum": 0,
"needrace": [], "needrace": [
"needracestar": 0, 1,
"needracenum": 0, 2,
"gold": 0 3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
}, },
{ {
"key": 4, "key": 4,
"id": "25002", "id": "14003",
"star": 5, "star": 6,
"needhero": "25002", "needhero": "",
"needherostar": 5, "needherostar": 0,
"needheronum": 1, "needheronum": 0,
"needrace": [ "needrace": [],
2 "needracestar": 0,
], "needracenum": 0,
"needracestar": 5, "gold": 0
"needracenum": 4,
"gold": 10000
}, },
{ {
"key": 5, "key": 5,
"id": "25002", "id": "14007",
"star": 6, "star": 5,
"needhero": "", "needhero": "",
"needherostar": 0, "needherostar": 0,
"needheronum": 0, "needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 6,
"id": "25003",
"star": 5,
"needhero": "25003",
"needherostar": 5,
"needheronum": 1,
"needrace": [ "needrace": [
2 1,
2,
3,
4
], ],
"needracestar": 5, "needracestar": 5,
"needracenum": 4, "needracenum": 5,
"gold": 10000 "gold": 10000
}, },
{ {
"key": 7, "key": 6,
"id": "25003", "id": "14007",
"star": 6, "star": 6,
"needhero": "", "needhero": "",
"needherostar": 0, "needherostar": 0,
@ -91,23 +86,26 @@
"needracenum": 0, "needracenum": 0,
"gold": 0 "gold": 0
}, },
{
"key": 7,
"id": "15004",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{ {
"key": 8, "key": 8,
"id": "15004", "id": "15004",
"star": 5,
"needhero": "15004",
"needherostar": 5,
"needheronum": 1,
"needrace": [
1
],
"needracestar": 5,
"needracenum": 4,
"gold": 10000
},
{
"key": 9,
"id": "15004",
"star": 6, "star": 6,
"needhero": "", "needhero": "",
"needherostar": 0, "needherostar": 0,
@ -118,46 +116,12 @@
"gold": 0 "gold": 0
}, },
{ {
"key": 10, "key": 9,
"id": "43901", "id": "15005",
"star": 3,
"needhero": "43901",
"needherostar": 3,
"needheronum": 1,
"needrace": [
1,
2,
3,
4
],
"needracestar": 3,
"needracenum": 4,
"gold": 10000
},
{
"key": 11,
"id": "43901",
"star": 4,
"needhero": "43901",
"needherostar": 4,
"needheronum": 1,
"needrace": [
1,
2,
3,
4
],
"needracestar": 4,
"needracenum": 4,
"gold": 10000
},
{
"key": 12,
"id": "43901",
"star": 5, "star": 5,
"needhero": "43901", "needhero": "",
"needherostar": 5, "needherostar": 0,
"needheronum": 1, "needheronum": 0,
"needrace": [ "needrace": [
1, 1,
2, 2,
@ -165,12 +129,302 @@
4 4
], ],
"needracestar": 5, "needracestar": 5,
"needracenum": 4, "needracenum": 5,
"gold": 10000 "gold": 10000
}, },
{
"key": 10,
"id": "15005",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 11,
"id": "24002",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 12,
"id": "24002",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{ {
"key": 13, "key": 13,
"id": "43901", "id": "24003",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 14,
"id": "24003",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 15,
"id": "24004",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 16,
"id": "24004",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 17,
"id": "25004",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 18,
"id": "25004",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 19,
"id": "34006",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 20,
"id": "34006",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 21,
"id": "35001",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 22,
"id": "35001",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 23,
"id": "35003",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 24,
"id": "35003",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 25,
"id": "44005",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 26,
"id": "44005",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 27,
"id": "44006",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 28,
"id": "44006",
"star": 6,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [],
"needracestar": 0,
"needracenum": 0,
"gold": 0
},
{
"key": 29,
"id": "45003",
"star": 5,
"needhero": "",
"needherostar": 0,
"needheronum": 0,
"needrace": [
1,
2,
3,
4
],
"needracestar": 5,
"needracenum": 5,
"gold": 10000
},
{
"key": 30,
"id": "45003",
"star": 6, "star": 6,
"needhero": "", "needhero": "",
"needherostar": 0, "needherostar": 0,

View File

@ -504,7 +504,7 @@
"var": [ "var": [
{ {
"a": "hero", "a": "hero",
"t": "35002", "t": "44006",
"n": 5 "n": 5
} }
] ]
@ -514,7 +514,7 @@
"var": [ "var": [
{ {
"a": "hero", "a": "hero",
"t": "24003", "t": "35001",
"n": 5 "n": 5
} }
] ]
@ -524,7 +524,7 @@
"var": [ "var": [
{ {
"a": "hero", "a": "hero",
"t": "34006", "t": "44005",
"n": 5 "n": 5
} }
] ]
@ -534,17 +534,7 @@
"var": [ "var": [
{ {
"a": "hero", "a": "hero",
"t": "44006", "t": "15004",
"n": 5
}
]
},
{
"index": "58",
"var": [
{
"a": "hero",
"t": "35001",
"n": 5 "n": 5
} }
] ]
@ -554,7 +544,47 @@
"var": [ "var": [
{ {
"a": "hero", "a": "hero",
"t": "44005", "t": "14007",
"n": 5
}
]
},
{
"index": "60",
"var": [
{
"a": "hero",
"t": "45003",
"n": 5
}
]
},
{
"index": "61",
"var": [
{
"a": "hero",
"t": "24004",
"n": 5
}
]
},
{
"index": "65",
"var": [
{
"a": "hero",
"t": "34006",
"n": 5
}
]
},
{
"index": "66",
"var": [
{
"a": "hero",
"t": "24003",
"n": 5 "n": 5
} }
] ]

50
bin/json/game_ip.json Normal file
View File

@ -0,0 +1,50 @@
[
{
"ip_id": 1,
"ip_icon": "zm_ip_logo05"
},
{
"ip_id": 2,
"ip_icon": "zm_ip_logo12"
},
{
"ip_id": 3,
"ip_icon": "zm_ip_logo02"
},
{
"ip_id": 4,
"ip_icon": "zm_ip_logo01"
},
{
"ip_id": 5,
"ip_icon": "zm_ip_logo10"
},
{
"ip_id": 6,
"ip_icon": "zm_ip_logo11"
},
{
"ip_id": 7,
"ip_icon": "zm_ip_logo09"
},
{
"ip_id": 8,
"ip_icon": "zm_ip_logo08"
},
{
"ip_id": 9,
"ip_icon": "zm_ip_logo04"
},
{
"ip_id": 10,
"ip_icon": "zm_ip_logo07"
},
{
"ip_id": 11,
"ip_icon": "zm_ip_logo03"
},
{
"ip_id": 12,
"ip_icon": "zm_ip_logo06"
}
]

View File

@ -57,7 +57,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -98,7 +100,9 @@
"effects": "", "effects": "",
"box_id": 10002, "box_id": 10002,
"synthetize_num": 50, "synthetize_num": 50,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": -1, "upper_limit": -1,
"uselv": 0, "uselv": 0,
@ -139,7 +143,9 @@
"effects": "", "effects": "",
"box_id": 20001, "box_id": 20001,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -180,7 +186,9 @@
"effects": "", "effects": "",
"box_id": 20002, "box_id": 20002,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -221,7 +229,9 @@
"effects": "", "effects": "",
"box_id": 20003, "box_id": 20003,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -262,7 +272,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -303,7 +315,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -344,7 +358,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -385,7 +401,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -426,7 +444,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -467,7 +487,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -508,7 +530,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -549,7 +573,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -590,7 +616,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -631,7 +659,9 @@
"effects": "", "effects": "",
"box_id": 0, "box_id": 0,
"synthetize_num": 0, "synthetize_num": 0,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": 999, "upper_limit": 999,
"uselv": 0, "uselv": 0,
@ -672,7 +702,9 @@
"effects": "", "effects": "",
"box_id": 10001, "box_id": 10001,
"synthetize_num": 50, "synthetize_num": 50,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": -1, "upper_limit": -1,
"uselv": 0, "uselv": 0,
@ -713,7 +745,9 @@
"effects": "", "effects": "",
"box_id": 10002, "box_id": 10002,
"synthetize_num": 50, "synthetize_num": 50,
"access": [], "access": [
122
],
"use_skip": 0, "use_skip": 0,
"upper_limit": -1, "upper_limit": -1,
"uselv": 0, "uselv": 0,

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10001", "key": "mainline_text_10001",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
101, 101,
@ -34,8 +34,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -63,7 +63,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10002", "key": "mainline_text_10002",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
201, 201,
@ -79,8 +79,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -108,7 +108,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10003", "key": "mainline_text_10003",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
301, 301,
@ -124,8 +124,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -153,7 +153,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10004", "key": "mainline_text_10004",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
401, 401,
@ -169,8 +169,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -198,7 +198,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10005", "key": "mainline_text_10005",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
501, 501,
@ -214,8 +214,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -243,7 +243,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10006", "key": "mainline_text_10006",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
601, 601,
@ -259,8 +259,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -288,7 +288,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10007", "key": "mainline_text_10007",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
701, 701,
@ -304,8 +304,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -333,7 +333,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10008", "key": "mainline_text_10008",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
801, 801,
@ -349,8 +349,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -378,7 +378,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10009", "key": "mainline_text_10009",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
901, 901,
@ -394,8 +394,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -423,7 +423,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10010", "key": "mainline_text_10010",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
1001, 1001,
@ -439,8 +439,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -468,7 +468,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10009", "key": "mainline_text_10009",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
1101, 1101,
@ -484,8 +484,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",
@ -513,7 +513,7 @@
"icon": "wp_icon_0002", "icon": "wp_icon_0002",
"text": { "text": {
"key": "mainline_text_10010", "key": "mainline_text_10010",
"text": "金币5000" "text": "金币40000"
}, },
"Episode": [ "Episode": [
1201, 1201,
@ -529,8 +529,8 @@
"award": [ "award": [
{ {
"a": "item", "a": "item",
"t": "1", "t": "diamond",
"n": 1 "n": 50
}, },
{ {
"a": "attr", "a": "attr",

File diff suppressed because it is too large Load Diff

View File

@ -2687,7 +2687,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -2731,7 +2731,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -2775,7 +2775,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -2819,7 +2819,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -2863,7 +2863,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -3487,7 +3487,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -3549,7 +3549,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -3571,7 +3571,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -3593,7 +3593,7 @@
"Where": "", "Where": "",
"Order": "", "Order": "",
"Limit": 1, "Limit": 1,
"ExecuteCnt": 1, "ExecuteCnt": 2,
"Type": 1, "Type": 1,
"Argu": [ "Argu": [
1, 1,
@ -6475,7 +6475,7 @@
500 500
], ],
"FollowSK": [ "FollowSK": [
215005112 215005113
], ],
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
@ -6496,7 +6496,7 @@
400 400
], ],
"FollowSK": [ "FollowSK": [
215005112 215005113
], ],
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
@ -6507,7 +6507,7 @@
"EmitPR": 1000, "EmitPR": 1000,
"From": 1, "From": 1,
"Where": "", "Where": "",
"Order": "Type=NowHp,Asce=Down", "Order": "",
"Limit": 2, "Limit": 2,
"ExecuteCnt": 1, "ExecuteCnt": 1,
"Type": 4, "Type": 4,
@ -6536,7 +6536,7 @@
400 400
], ],
"FollowSK": [ "FollowSK": [
215005112 215005113
], ],
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
@ -6557,7 +6557,7 @@
400 400
], ],
"FollowSK": [ "FollowSK": [
215005112 215005113
], ],
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
@ -6578,7 +6578,7 @@
400 400
], ],
"FollowSK": [ "FollowSK": [
215005112 215005113
], ],
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
@ -6599,7 +6599,7 @@
400 400
], ],
"FollowSK": [ "FollowSK": [
215005112 215005113
], ],
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
@ -9278,7 +9278,7 @@
"ExecuteCnt": 1, "ExecuteCnt": 1,
"Type": 4, "Type": 4,
"Argu": [ "Argu": [
1, 2,
1, 1,
150 150
], ],
@ -9376,7 +9376,7 @@
"ExecuteCnt": 1, "ExecuteCnt": 1,
"Type": 4, "Type": 4,
"Argu": [ "Argu": [
2, 1,
1, 1,
350 350
], ],
@ -9384,5 +9384,411 @@
"SucFollowSK": [], "SucFollowSK": [],
"FailFollowSK": [], "FailFollowSK": [],
"MustHit": false "MustHit": false
},
{
"Id": 253001111,
"EmitPR": 1000,
"From": 4,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
4,
1500
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 253001112,
"EmitPR": 1000,
"From": 2,
"Where": "",
"Order": "Type=Rand",
"Limit": 2,
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
4,
1500
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 253001211,
"EmitPR": 1000,
"From": 4,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 5,
"Type": 1,
"Argu": [
1,
4,
600
],
"FollowSK": [],
"SucFollowSK": [
253001212
],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 253001212,
"EmitPR": 1000,
"From": 4,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 12,
"Argu": [
100
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 253001311,
"EmitPR": 1000,
"From": 2,
"Where": "",
"Order": "",
"Limit": 10,
"ExecuteCnt": 3,
"Type": 1,
"Argu": [
1,
4,
600
],
"FollowSK": [],
"SucFollowSK": [
253001312
],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 253001312,
"EmitPR": 1000,
"From": 2,
"Where": "",
"Order": "",
"Limit": 10,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001008,
1000,
1,
3
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003011,
"EmitPR": 1000,
"From": 1,
"Where": "",
"Order": "",
"Limit": 10,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001327,
1000,
1,
-1
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003111,
"EmitPR": 1000,
"From": 4,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 2,
"Type": 1,
"Argu": [
1,
4,
650
],
"FollowSK": [],
"SucFollowSK": [
235003112,
235003113
],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003112,
"EmitPR": 1000,
"From": 9,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 7,
"Argu": [
0,
0,
1,
1000
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003113,
"EmitPR": 1000,
"From": 9,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 17,
"Argu": [
1000
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003211,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001115,
1000,
1,
-1
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003212,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001126,
1000,
1,
-1
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003213,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 2,
"Argu": [
435003211
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003214,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 2,
"Argu": [
435003212
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003215,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001212,
1000,
1,
-1
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003216,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 2,
"Argu": [
435003213
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003217,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [
390001126,
1000,
1,
-1
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003218,
"EmitPR": 1000,
"From": 3,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 4,
"Argu": [
1,
1,
100
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003311,
"EmitPR": 1000,
"From": 2,
"Where": "",
"Order": "",
"Limit": 10,
"ExecuteCnt": 1,
"Type": 7,
"Argu": [
0,
0,
1,
1000
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003312,
"EmitPR": 1000,
"From": 2,
"Where": "",
"Order": "",
"Limit": 10,
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
4,
1100
],
"FollowSK": [],
"SucFollowSK": [
235003313
],
"FailFollowSK": [],
"MustHit": false
},
{
"Id": 235003313,
"EmitPR": 1000,
"From": 9,
"Where": "",
"Order": "",
"Limit": 1,
"ExecuteCnt": 1,
"Type": 4,
"Argu": [
1,
1,
300
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false
} }
] ]

File diff suppressed because it is too large Load Diff

View File

@ -907,6 +907,30 @@
"buffeffect": "", "buffeffect": "",
"buffpos": "" "buffpos": ""
}, },
{
"Id": 390001126,
"Name": {
"key": "skill_buff_390001126",
"text": "无法获得减益"
},
"Desc": {
"key": "skill_buffdes_390001126",
"text": "无法附加减益状态"
},
"BuffType": 0,
"EffectArgu": [],
"BufParNum": 1,
"RelyCheckArgu": [],
"CoexistCheckArgu": [],
"Effect": 3,
"AddEffect": false,
"RemoveType": false,
"OverlayTimes": 1,
"SameID": false,
"buffIcon": "",
"buffeffect": "",
"buffpos": ""
},
{ {
"Id": 390001201, "Id": 390001201,
"Name": { "Name": {
@ -1157,6 +1181,32 @@
"buffeffect": "", "buffeffect": "",
"buffpos": "" "buffpos": ""
}, },
{
"Id": 390001212,
"Name": {
"key": "skill_buff_390001212",
"text": "梦魇之惧"
},
"Desc": {
"key": "skill_buffdes_390001212",
"text": "检测效果最多叠加50层"
},
"BuffType": 1,
"EffectArgu": [
10
],
"BufParNum": 1,
"RelyCheckArgu": [],
"CoexistCheckArgu": [],
"Effect": 0,
"AddEffect": false,
"RemoveType": false,
"OverlayTimes": 50,
"SameID": false,
"buffIcon": "",
"buffeffect": "",
"buffpos": ""
},
{ {
"Id": 390001301, "Id": 390001301,
"Name": { "Name": {

View File

@ -283,7 +283,7 @@
"AddCon": "", "AddCon": "",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
244006212, 244006212,
244006213 244006213
@ -296,7 +296,7 @@
"AddCon": "SkillID=944006313", "AddCon": "SkillID=944006313",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
944006318 944006318
] ]
@ -308,7 +308,7 @@
"AddCon": "SkillID=944006323", "AddCon": "SkillID=944006323",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
944006328 944006328
] ]
@ -320,7 +320,7 @@
"AddCon": "SkillID=944006333", "AddCon": "SkillID=944006333",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
944006338 944006338
] ]
@ -332,7 +332,7 @@
"AddCon": "SkillID=944006343", "AddCon": "SkillID=944006343",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
944006348 944006348
] ]
@ -344,7 +344,7 @@
"AddCon": "SkillID=944006353", "AddCon": "SkillID=944006353",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
944006358 944006358
] ]
@ -356,7 +356,7 @@
"AddCon": "", "AddCon": "",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
215005212 215005212
] ]
@ -368,7 +368,7 @@
"AddCon": "BeyondHp=1000", "AddCon": "BeyondHp=1000",
"PasPr": 1000, "PasPr": 1000,
"Type": "CallSkillPas", "Type": "CallSkillPas",
"MaxEmitTimes": 0, "MaxEmitTimes": 1,
"Callback": [ "Callback": [
915005214 915005214
] ]
@ -434,5 +434,42 @@
"Callback": [ "Callback": [
245003212 245003212
] ]
},
{
"Id": 435003211,
"When": "SufEff",
"TargetCheck": 3,
"AddCon": "EffType=0,Result=1",
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 99,
"Callback": [
235003215
]
},
{
"Id": 435003212,
"When": "SufEff",
"TargetCheck": 3,
"AddCon": "EffType=0,Result=0",
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 99,
"Callback": [
235003215
]
},
{
"Id": 435003213,
"When": "SufEnd",
"TargetCheck": 3,
"AddCon": "",
"PasPr": 1000,
"Type": "CallSkillPas",
"MaxEmitTimes": 1,
"Callback": [
235003217,
235003218
]
} }
] ]

View File

@ -48,15 +48,6 @@ var (
} }
robot.addBuilders(tcs) robot.addBuilders(tcs)
}, },
}, {
desc: "抽卡",
mainType: string(comm.ModuleHero),
subType: hero.HeroSubTypeChouka,
req: &pb.HeroChoukaReq{
HeroIds: []string{"14001"},
},
rsp: &pb.HeroChoukaResp{},
// enabled: true,
}, { }, {
desc: "英雄列表", desc: "英雄列表",
mainType: string(comm.ModuleHero), mainType: string(comm.ModuleHero),

View File

@ -18,11 +18,14 @@ import (
"go_dreamfactory/sys/configure" "go_dreamfactory/sys/configure"
"go_dreamfactory/sys/db" "go_dreamfactory/sys/db"
"reflect" "reflect"
"strings"
"testing" "testing"
"time" "time"
"github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
flag "github.com/spf13/pflag"
) )
var service core.IService var service core.IService
@ -108,7 +111,45 @@ func CloneNewHero(hero *pb.DBHero) (newHero *pb.DBHero) {
newHero.Id = primitive.NewObjectID().Hex() newHero.Id = primitive.NewObjectID().Hex()
return return
} }
func wordSepNormalizeFunc(f *flag.FlagSet, name string) flag.NormalizedName {
from := []string{"-", "_"}
to := "."
for _, sep := range from {
name = strings.Replace(name, sep, to, -1)
}
return flag.NormalizedName(name)
}
func Test_Modules(t *testing.T) { func Test_Modules(t *testing.T) {
var cliName = flag.StringP("name", "n", "nick", "Input Your Name")
var cliAge = flag.IntP("age", "a", 22, "Input Your Age")
var cliGender = flag.StringP("gender", "g", "male", "Input Your Gender")
var cliOK = flag.BoolP("ok", "o", false, "Input Are You OK")
var cliDes = flag.StringP("des-detail", "d", "", "Input Description")
var cliOldFlag = flag.StringP("badflag", "b", "just for test", "Input badflag")
flag.CommandLine.SetNormalizeFunc(wordSepNormalizeFunc)
// 为 age 参数设置 NoOptDefVal 默认值,通过简便的方式为参数设置默认值之外的值
flag.Lookup("age").NoOptDefVal = "25"
// 把 badflag 参数标记为即将废弃的,请用户使用 des-detail 参数
flag.CommandLine.MarkDeprecated("badflag", "please use --des-detail instead")
// 把 badflag 参数的 shorthand 标记为即将废弃的,请用户使用 des-detail 的 shorthand 参数
flag.CommandLine.MarkShorthandDeprecated("badflag", "please use -d instead")
// 在帮助文档中隐藏参数 gender
flag.CommandLine.MarkHidden("badflag")
// 把用户传递的命令行参数解析为对应变量的值
flag.Parse()
fmt.Println("name=", *cliName)
fmt.Println("age=", *cliAge)
fmt.Println("gender=", *cliGender)
fmt.Println("ok=", *cliOK)
fmt.Println("des=", *cliDes)
fmt.Println("cliOldFlag=", *cliOldFlag)
oldHero := new(pb.DBHero) oldHero := new(pb.DBHero)
new := copyPoint(oldHero) new := copyPoint(oldHero)
fmt.Printf("%v", new) fmt.Printf("%v", new)

View File

@ -153,9 +153,9 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (cod
N: 1, N: 1,
} }
atn2 := &pb.UserAssets{ atn2 := &pb.UserAssets{
A: "item", A: "attr",
T: "10001", T: "gold",
N: 100, N: 10000,
} }
fj = append(fj, atn1) fj = append(fj, atn1)
fj = append(fj, atn2) fj = append(fj, atn2)

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type GameIp struct {
_dataMap map[int32]*GameIpData
_dataList []*GameIpData
}
func NewGameIp(_buf []map[string]interface{}) (*GameIp, error) {
_dataList := make([]*GameIpData, 0, len(_buf))
dataMap := make(map[int32]*GameIpData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameIpData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.IpId] = _v
}
}
return &GameIp{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameIp) GetDataMap() map[int32]*GameIpData {
return table._dataMap
}
func (table *GameIp) GetDataList() []*GameIpData {
return table._dataList
}
func (table *GameIp) Get(key int32) *GameIpData {
return table._dataMap[key]
}

View File

@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type GameIpData struct {
IpId int32
IpIcon string
}
const TypeId_GameIpData = -59343123
func (*GameIpData) GetTypeId() int32 {
return -59343123
}
func (_v *GameIpData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ip_id"].(float64); !_ok_ { err = errors.New("ip_id error"); return }; _v.IpId = int32(_tempNum_) }
{ var _ok_ bool; if _v.IpIcon, _ok_ = _buf["ip_icon"].(string); !_ok_ { err = errors.New("ip_icon error"); return } }
return
}
func DeserializeGameIpData(_buf map[string]interface{}) (*GameIpData, error) {
v := &GameIpData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -98,6 +98,7 @@ type Tables struct {
LibraryHistory *GameLibraryHistory LibraryHistory *GameLibraryHistory
LibraryFavor *GameLibraryFavor LibraryFavor *GameLibraryFavor
Robot *GameRobot Robot *GameRobot
Ip *GameIp
} }
func NewTables(loader JsonLoader) (*Tables, error) { func NewTables(loader JsonLoader) (*Tables, error) {
@ -627,5 +628,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.Robot, err = NewGameRobot(buf) ; err != nil { if tables.Robot, err = NewGameRobot(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_ip") ; err != nil {
return nil, err
}
if tables.Ip, err = NewGameIp(buf) ; err != nil {
return nil, err
}
return tables, nil return tables, nil
} }