master
lvxinran 2020-09-16 18:16:13 +08:00
parent bab0c39bf5
commit 92a3291794
9 changed files with 814 additions and 5 deletions

View File

@ -0,0 +1,173 @@
Id RechargeId Name Type Price FirstMultiple BaseReward ContiueDays PlayerLevel ExtraReward OpenPrivilege Limit LimitShow FirstInvest IsDiscount DiscountType Order AccumulativeRecharge Time StartTime Endtime DailyUpdate PassiveSkill RechargeId2 RechargeId3
int string string int int mut,int#int,2 mut,int#int,2 int mut,int#int,2 mut,int#int,3 mut,int#int,1 int int int int mut,int#int,1 int int int string string int mut,int#int,1 string string
1 tcxhw.project.yj6 60妖晶 3 6 16#60 16#60 0 null null 1006#512 0 0 1 0 null 0 1 0 0 null tcx.hw.yj6 ljtcx.ioshw.yj6
2 tcxhw.project.yj30 300妖晶 3 30 16#300 16#300 0 null null 1006#512 0 0 1 0 null 0 1 0 0 null tcx.hw.yj30 ljtcx.ioshw.yj30
3 tcxhw.project.yj98 980妖晶 3 98 16#980 16#980 0 null null 1006#512 0 0 1 0 null 0 1 0 0 null tcx.hw.yj98 ljtcx.ioshw.yj98
4 tcxhw.project.yj198 1980妖晶 3 198 16#1980 16#1980 0 null null 1006#512 0 0 1 0 null 0 1 0 0 null tcx.hw.yj198 ljtcx.ioshw.yj198
5 tcxhw.project.yj328 3280妖晶 3 328 16#3280 16#3280 0 null null 1006#512 0 0 1 0 null 0 1 0 0 null tcx.hw.yj328 ljtcx.ioshw.yj328
6 tcxhw.project.yj648 6480妖晶 3 648 16#6480 16#6480 0 null null 1006#512 0 0 1 0 null 0 1 0 0 null tcx.hw.yj648 ljtcx.ioshw.yj648
9 9 打折月卡 1 12 null 16#300|80001#1 30 1#999 16#100 507#1006#512 0 0 1 4 2#1#24 1 1 4 0 0 0 null 9 9
10 10 月卡 1 30 null 16#300|80001#1 30 1#999 16#100 507#1006#512 0 0 1 0 null 2 1 0 0 null 10 10
11 11 豪华月卡 6 98 null 16#980|80002#1 30 1#45|46#60|61#999 81109#1|16#300,81110#1|16#300,81111#1|16#300 506#1006#512 0 0 1 0 null 0 1 0 0 null 11 11
12 12 周卡 7 30 null null 7 null 2#19#1|2#16#88|1#14#8888 1006#512 1 1 1 0 0 1 1 1 20291010 100000 20291020 100000 0 null 12 12
13 13 天神恩赐 5 198 null 52#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 13 13
14 14 天神恩赐 5 198 null 51#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 14 14
15 15 天神恩赐 5 198 null 57#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 15 15
16 16 天神恩赐 5 198 null 59#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 16 16
17 17 天神恩赐 5 198 null 52#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 17 17
18 18 天神恩赐 5 198 null 51#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 18 18
19 19 天神恩赐 5 198 null 57#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 19 19
20 20 天神恩赐 5 198 null 59#1|16#1980|6#3|5#500 0 null null 1006#512 1 1 1 0 null 0 1 3 2147483647 2147483647 0 null 20 20
24 24 6星成长礼 5 68 null 16#680|4#1000|14#800000|3#30000 0 null null 1006#512 0 0 1 0 4#6#2 0 1 4 0 0 0 null 24 24
25 25 7星成长礼 5 128 null 16#1280|4#1500|14#1200000|3#50000 0 null null 1006#512 0 0 1 0 4#7#2 0 1 4 0 0 0 null 25 25
26 26 8星成长礼 5 328 null 16#3280|4#3000|14#1800000|3#140000 0 null null 1006#512 0 0 1 0 4#8#2 0 1 4 0 0 0 null 26 26
27 27 9星成长礼 5 388 null 16#3980|4#4000|14#2400000|3#260000 0 null null 1006#512 0 0 1 0 4#9#2 0 1 4 0 0 0 null 27 27
28 28 10星成长礼 5 448 null 16#4480|4#5000|14#3000000|3#350000 0 null null 1006#512 0 0 1 0 4#10#2 0 1 4 0 0 0 null 28 28
29 29 11星成长礼 5 448 null 16#4480|4#5000|14#3000000|3#350000 0 null null 1006#512 0 0 1 0 4#11#2 0 1 4 0 0 0 null 29 29
30 30 12星成长礼 5 448 null 16#4480|4#5000|14#3000000|3#350000 0 null null 1006#512 0 0 1 0 4#12#2 0 1 4 0 0 0 null 30 30
31 31 13星成长礼 5 648 null 16#6480|4#8000|14#5000000|3#800000 0 null null 1006#512 0 0 1 0 4#13#2 0 1 4 0 0 0 null 31 31
32 32 14星成长礼 5 648 null 16#6480|4#8000|14#5000000|3#800000 0 null null 1006#512 0 0 1 0 4#14#2 0 1 4 0 0 0 null 32 32
33 33 天官赐福 5 128 null 16#1888|20#1|87#18|61#1 0 null null 1006#512 1 1 1 4 null 0 1 3 0 431999 0 null 33 33
34 34 福禄仙缘 5 6 null 16#18|87#1|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 0 431999 1 null 34 34
35 35 造化仙缘 5 6 null 16#88|87#2|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 0 431999 1 null 35 35
36 36 天赐仙缘 5 30 null 16#488|87#5|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 0 431999 1 null 36 36
37 37 福星高照礼包 5 198 null 16#1980|20#2|87#22|14#500000 0 null null 1006#512 1 1 1 0 null 0 1 2 0 431999 0 null 37 37
38 38 福禄双全礼包 5 128 null 16#1280|81001#2|87#12|14#300000 0 null null 1006#512 6 1 1 0 null 0 1 3 0 431999 0 null 38 38
39 39 堆金积玉礼包 5 328 null 16#3280|21#3|87#25|3#50000 0 null null 1006#512 6 1 1 0 null 0 1 3 0 431999 0 null 39 39
40 40 金玉锦绣礼包 5 648 null 16#6480|4#1000|87#36|11012#25 0 null null 1006#512 2 1 1 0 null 0 1 3 0 431999 0 null 40 40
42 tcxhw.project.ghhb12 小幸运红包 10 12 null 16#120|4#100 0 null null 1006#512 10 1 1 0 null 0 1 1 20191228 000000 20300115 235959 1 null tcx.hw.ghhb12 ljtcx.ioshw.ghhb12
43 tcxhw.project.ghhb128 福禄全红包 10 128 null 16#1280|4#500|65#1500 0 null null 1006#512 5 1 1 0 null 0 1 1 20191228 000000 20300115 235959 1 null tcx.hw.ghhb128 ljtcx.ioshw.ghhb128
44 tcxhw.project.ghhb648 至尊豪红包 10 648 null 16#6480|19#10|65#8000 0 null null 1006#512 3 1 1 0 null 0 1 1 20191228 000000 20300115 235959 1 null tcx.hw.ghhb648 ljtcx.ioshw.ghhb648
46 46 天官赐福 5 128 null 16#1888|20#1|87#18|61#1 0 null null 1006#512 1 1 1 4 null 0 1 3 604800 1036799 0 null 46 46
47 47 福禄仙缘 5 6 null 16#18|87#1|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 604800 1036799 1 null 47 47
48 48 造化仙缘 5 6 null 16#88|87#2|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 604800 1036799 1 null 48 48
49 49 天赐仙缘 5 30 null 16#488|87#5|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 604800 1036799 1 null 49 49
50 50 福星高照礼包 5 198 null 16#1980|20#2|87#22|14#500000 0 null null 1006#512 1 1 1 0 null 0 1 3 604800 1036799 0 null 50 50
51 51 福禄双全礼包 5 128 null 16#1280|81001#2|87#12|14#300000 0 null null 1006#512 6 1 1 0 null 0 1 3 604800 1036799 0 null 51 51
52 52 堆金积玉礼包 5 328 null 16#3280|21#3|87#25|3#50000 0 null null 1006#512 6 1 1 0 null 0 1 3 604800 1036799 0 null 52 52
53 53 金玉锦绣礼包 5 648 null 16#6480|4#1000|87#36|11010#25 0 null null 1006#512 2 1 1 0 null 0 1 3 604800 1036799 0 null 53 53
54 54 天官赐福 5 128 null 16#1888|20#1|87#18|61#1 0 null null 1006#512 1 1 1 4 null 0 1 3 1209600 1641599 0 null 54 54
55 55 福禄仙缘 5 6 null 16#18|87#1|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 1209601 1641599 1 null 55 55
56 56 造化仙缘 5 6 null 16#88|87#2|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 1209602 1641599 1 null 56 56
57 57 天赐仙缘 5 30 null 16#488|87#5|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 1209603 1641599 1 null 57 57
58 58 福星高照礼包 5 198 null 16#1980|20#2|87#22|14#500000 0 null null 1006#512 1 1 1 0 null 0 1 3 1209604 1641599 0 null 58 58
59 59 福禄双全礼包 5 128 null 16#1280|81001#2|87#12|14#300000 0 null null 1006#512 6 1 1 0 null 0 1 3 1209605 1641599 0 null 59 59
60 60 堆金积玉礼包 5 328 null 16#3280|21#3|87#25|3#50000 0 null null 1006#512 6 1 1 0 null 0 1 3 1209606 1641599 0 null 60 60
61 61 金玉锦绣礼包 5 648 null 16#6480|4#1000|87#36|11012#25 0 null null 1006#512 2 1 1 0 null 0 1 3 1209607 1641599 0 null 61 61
62 62 天官赐福 5 128 null 16#1888|20#1|87#18|61#1 0 null null 1006#512 1 1 1 4 null 0 1 3 1814400 2246399 0 null 62 62
63 63 福禄仙缘 5 6 null 16#18|87#1|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 1814400 2246399 1 null 63 63
64 64 造化仙缘 5 6 null 16#88|87#2|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 1814400 2246399 1 null 64 64
65 65 天赐仙缘 5 30 null 16#488|87#5|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 1814400 2246399 1 null 65 65
66 66 福星高照礼包 5 198 null 16#1980|20#2|87#22|14#500000 0 null null 1006#512 1 1 1 0 null 0 1 3 1814400 2246399 0 null 66 66
67 67 福禄双全礼包 5 128 null 16#1280|81001#2|87#12|14#300000 0 null null 1006#512 6 1 1 0 null 0 1 3 1814400 2246399 0 null 67 67
68 68 堆金积玉礼包 5 328 null 16#3280|21#3|87#25|3#50000 0 null null 1006#512 6 1 1 0 null 0 1 3 1814400 2246399 0 null 68 68
69 69 金玉锦绣礼包 5 648 null 16#6480|4#1000|87#36|11010#25 0 null null 1006#512 2 1 1 0 null 0 1 3 1814400 2246399 0 null 69 69
70 70 天官赐福 5 128 null 16#1888|20#1|87#18|61#1 0 null null 1006#512 1 1 1 4 null 0 1 3 2419200 2851199 0 null 70 70
71 71 福禄仙缘 5 6 null 16#18|87#1|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 2419200 2851199 1 null 71 71
72 72 造化仙缘 5 6 null 16#88|87#2|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 2419200 2851199 1 null 72 72
73 73 天赐仙缘 5 30 null 16#488|87#5|61#1 0 null null 1006#512 1 1 1 1 null 0 1 3 2419200 2851199 1 null 73 73
74 74 福星高照礼包 5 198 null 16#1980|20#2|87#22|14#500000 0 null null 1006#512 1 1 1 0 null 0 1 3 2419200 2851199 0 null 74 74
75 75 福禄双全礼包 5 128 null 16#1280|81001#2|87#12|14#300000 0 null null 1006#512 6 1 1 0 null 0 1 3 2419200 2851199 0 null 75 75
76 76 堆金积玉礼包 5 328 null 16#3280|21#3|87#25|3#50000 0 null null 1006#512 6 1 1 0 null 0 1 3 2419200 2851199 0 null 76 76
77 77 金玉锦绣礼包 5 648 null 16#6480|4#1000|87#36|11012#25 0 null null 1006#512 2 1 1 0 null 0 1 3 2419200 2851199 0 null 77 77
78 tcxhw.project.jj128 高级基金 8 128 null 16#1280 30 null null 1006#512 1 1 1 0 null 0 1 2 300 259199 0 null tcx.hw.jj128 ljtcx.ioshw.jj128
79 tcxhw.project.jj328 豪华基金 9 328 null 16#3280 30 null null 1006#512 1 1 1 0 null 0 1 2 300 259199 0 null tcx.hw.jj328 ljtcx.ioshw.jj328
80 tcxhw.project.jj128 高级基金 8 128 null 16#1280 30 null null 1006#512 1 1 1 0 null 0 1 2 691201 999999999 0 null tcx.hw.jj128 ljtcx.ioshw.jj128
81 tcxhw.project.jj328 豪华基金 9 328 null 16#3280 30 null null 1006#512 1 1 1 0 null 0 1 2 691201 999999999 0 null tcx.hw.jj328 ljtcx.ioshw.jj328
1001 tcxhw.project.rlb6 全民礼包 5 6 null 16#20|60#2|80#2|3#100000 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 1 null tcx.hw.rlb6 ljtcx.ioshw.rlb6
1002 tcxhw.project.rlb12 豪华礼包 5 12 null 16#120|19#1|80#3|3#200000 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 1 null tcx.hw.rlb12 ljtcx.ioshw.rlb12
1003 tcxhw.project.rlb18 至尊礼包 5 18 null 16#240|19#2|60#6|3#300000 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 1 null tcx.hw.rlb18 ljtcx.ioshw.rlb18
1004 tcxhw.project.yjgm30 一键购买 5 30 null 16#380|60#8|19#3|80#5|3#600000 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 1 null tcx.hw.yjgm30 ljtcx.ioshw.yjgm30
2001 tcxhw.project.zlb30 每周礼包一 5 30 null 16#300|23#5|81112#1|19#2 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 7 null tcx.hw.zlb30 ljtcx.ioshw.zlb30
2002 tcxhw.project.zlb68 每周礼包二 5 68 null 16#680|60#5|81113#1|19#5 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 7 null tcx.hw.zlb68 ljtcx.ioshw.zlb68
2003 tcxhw.project.zlb128 每周礼包三 5 128 null 16#1280|61#1|1001#15000|19#10 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 7 null tcx.hw.zlb128 ljtcx.ioshw.zlb128
2004 tcxhw.project.zlb328 每周礼包四 5 328 null 16#3280|81114#1|1001#25000|19#16 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 7 null tcx.hw.zlb328 ljtcx.ioshw.zlb328
2005 tcxhw.project.zlb448 每周礼包五 5 448 null 16#4480|14#5000000|1001#40000|19#24 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 7 null tcx.hw.zlb448 ljtcx.ioshw.zlb448
2006 tcxhw.project.zlb648 每周礼包六 5 648 null 16#6480|12025#50|1001#75000|19#32 0 null null 1006#512 1 1 1 0 null 0 1 1 20200902 000000 20300115 235959 7 null tcx.hw.zlb648 ljtcx.ioshw.zlb648
3001 tcxhw.project.ylb30 每月礼包一 5 30 null 16#300|81112#1|19#5|60#5 0 null null 1006#512 1 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb30 ljtcx.ioshw.ylb30
3002 tcxhw.project.ylb68 每月礼包二 5 68 null 16#680|81113#1|19#7|60#10 0 null null 1006#512 1 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb68 ljtcx.ioshw.ylb68
3003 tcxhw.project.ylb128 每月礼包三 5 128 null 16#1280|20#2|19#10|66#2000 0 null null 1006#512 2 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb128 ljtcx.ioshw.ylb128
3004 tcxhw.project.ylb328 每月礼包四 5 328 null 16#3280|20#4|19#18|14#20000000 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb328 ljtcx.ioshw.ylb328
3005 tcxhw.project.ylb448 每月礼包五 5 448 null 16#4480|20#6|19#24|14#30000000 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb448 ljtcx.ioshw.ylb448
3006 tcxhw.project.ylb648 每月礼包六 5 648 null 16#6480|20#10|19#32|81128#1 0 null null 1006#512 3 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb648 ljtcx.ioshw.ylb648
3007 tcxhw.project.ylb648a 每月礼包七 5 648 null 16#6480|20#10|19#32|81129#1 0 null null 1006#512 1 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb648a ljtcx.ioshw.ylb648a
3008 tcxhw.project.ylb648b 每月礼包八 5 648 null 16#6480|20#10|19#32|81136#1 0 null null 1006#512 1 1 1 0 null 0 1 1 20200902 000000 20300115 235959 30 null tcx.hw.ylb648b ljtcx.ioshw.ylb648b
4001 tcxhw.project.hysf30 唤元神符礼包 5 30 null 20#3|4#1000|14#100000 0 null null 1006#512 1 1 1 0 null 0 1 5 0 0 7 null tcx.hw.hysf30 ljtcx.ioshw.hysf30
4002 tcxhw.project.jsts68 极速探索特权 5 68 null 88#1|19#10|4#1000 0 null null 33#34#1006#512 1 1 1 0 null 0 1 5 0 0 30 null tcx.hw.jsts68 ljtcx.ioshw.jsts68
4003 tcxhw.project.xybj30 轩辕宝境特权 5 30 null 82001#1|20#2|4#1000 0 null null 3001#3002 1 1 1 0 2#75#9999999 0 1 5 999999998 999999999 30 null tcx.hw.xybj30 ljtcx.ioshw.xybj30
5001 tcxhw.project.qlzl198 青龙战令 11 198 null 16#1980 0 null null 1006#512#1007 1 1 1 0 null 0 1 0 30 null tcx.hw.qlzl198 ljtcx.ioshw.qlzl198
101 tcxhw.project.czjj75j98 成长基金75级 4 98 null null 0 null null 1006#512 1 1 1 0 null 0 1 0 0 null tcx.hw.czjj75j98 ljtcx.ioshw.czjj75j98
102 tcxhw.project.czjj96j98 成长基金96级 4 98 null null 0 null null 1006#512 1 1 1 0 null 0 1 0 0 null tcx.hw.czjj96j98 ljtcx.ioshw.czjj96j98
103 tcxhw.project.czjj112j98 成长基金112级 4 98 null null 0 null null 1006#512 1 1 1 0 null 0 1 0 0 null tcx.hw.czjj112j98 ljtcx.ioshw.czjj112j98
104 tcxhw.project.czjj128j98 成长基金128级 4 98 null null 0 null null 1006#512 1 1 1 0 null 0 1 0 0 null tcx.hw.czjj128j98 ljtcx.ioshw.czjj128j98
105 tcxhw.project.czjj143j98 成长基金143级 4 98 null null 0 null null 1006#512 1 1 1 0 null 0 1 0 0 null tcx.hw.czjj143j98 ljtcx.ioshw.czjj143j98
106 tcxhw.project.tgmb198 天宫秘宝 12 198 null 16#1980 0 null null 1006#512 1 1 1 0 null 0 1 0 45 1000011 tcx.hw.tgmb198 ljtcx.ioshw.tgmb198
207 tcxhw.project.thcl30 特惠材料礼包 5 30 null 16#300|19#4|4#500|14#1000000 0 null null 1006#512 3 1 1 2 2#1#999999 0 1 3 0 0 7 null tcx.hw.thcl30 ljtcx.ioshw.thcl30
208 tcxhw.project.zxcl68 珍惜材料礼包 5 68 null 16#680|19#6|4#1200|14#3000000 0 null null 1006#512 3 1 1 2 2#1#999999 0 1 3 0 0 7 null tcx.hw.zxcl68 ljtcx.ioshw.zxcl68
209 tcxhw.project.hhcl328 豪华材料礼包 5 328 null 16#3280|19#20|3#5000000|14#10000000 0 null null 1006#512 3 1 1 2 2#1#999999 0 1 3 0 0 7 null tcx.hw.hhcl328 ljtcx.ioshw.hhcl328
210 tcxhw.project.zhhh648 召唤豪华礼包 5 648 null 16#6480|81127#1|19#45|81128#1 0 null null 1006#512 3 1 1 2 2#1#999999 0 1 3 0 0 7 null tcx.hw.zhhh648 ljtcx.ioshw.zhhh648
251 tcxhw.project.sjts68 超值折扣礼包 5 68 null 16#680|20#2|19#6|1001#10000|60#12 0 null null 1006#512 0 0 1 0 3#0#30#4 0 1 4 0 0 0 null tcx.hw.sjts68 ljtcx.ioshw.sjts68
252 tcxhw.project.sjts128 超值折扣礼包 5 128 null 16#1280|20#4|19#15|1001#25000|14#15000000 0 null null 1006#512 0 0 1 0 3#31#77#4 0 1 4 0 0 0 null tcx.hw.sjts128 ljtcx.ioshw.sjts128
253 tcxhw.project.sjts328 超值折扣礼包 5 328 null 16#3280|20#6|19#25|1001#75000|66#3000 0 null null 1006#512 0 0 1 0 3#78#120#4 0 1 4 0 0 0 null tcx.hw.sjts328 ljtcx.ioshw.sjts328
254 tcxhw.project.sjts448 超值折扣礼包 5 448 null 16#4480|20#10|19#32|1001#100000|14#30000000 0 null null 1006#512 0 0 1 0 3#121#150#4 0 1 4 0 0 0 null tcx.hw.sjts448 ljtcx.ioshw.sjts448
255 tcxhw.project.sjts648 超值折扣礼包 5 648 null 16#6480|20#16|19#40|81129#1|81128#1 0 null null 1006#512 0 0 1 0 3#151#9999999#4 0 1 4 0 0 0 null tcx.hw.sjts648 ljtcx.ioshw.sjts648
300 tcxhw.project.xsss128a 寻仙小礼包 5 128 null 16#1280|87#12|81143#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128a ljtcx.ioshw.xsss128a
301 tcxhw.project.xsss198a 寻仙中礼包 5 198 null 16#1980|87#10|20#2|61#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss198a ljtcx.ioshw.xsss198a
302 tcxhw.project.xsss328a 寻仙大礼包 5 328 null 16#3280|87#25|81143#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328a ljtcx.ioshw.xsss328a
303 tcxhw.project.xsss648a 寻仙豪华礼包 5 648 null 16#6480|87#32|11041#50|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648a ljtcx.ioshw.xsss648a
304 tcxhw.project.xsss128b 乾坤小礼包 5 128 null 16#1280|1002#12|81144#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128b ljtcx.ioshw.xsss128b
305 tcxhw.project.xsss328b 乾坤中礼包 5 328 null 16#3280|1002#25|81144#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328b ljtcx.ioshw.xsss328b
306 tcxhw.project.xsss648b 乾坤大礼包 5 648 null 16#6480|1002#32|81129#1|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648b ljtcx.ioshw.xsss648b
307 tcxhw.project.zqbg6a 定卦神锄礼包1 5 6 null 16#60|81145#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg6a ljtcx.ioshw.zqbg6a
308 tcxhw.project.zqbg30a 定卦神锄礼包2 5 30 null 16#360|46#2|87#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg30a ljtcx.ioshw.zqbg30a
309 tcxhw.project.zqbg68a 定卦神锄礼包3 5 68 null 16#680|46#3|87#5 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg68a ljtcx.ioshw.zqbg68a
310 tcxhw.project.zqbg128a 定卦神锄礼包4 5 128 null 16#1280|46#5|20#1 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg128a ljtcx.ioshw.zqbg128a
313 tcxhw.project.zqbg198a 定卦神锄礼包5 5 198 null 16#1980|81145#1|46#10|20#2 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg198a ljtcx.ioshw.zqbg198a
311 tcxhw.project.zqbg328a 定卦神锄礼包6 5 328 null 16#3280|46#12|20#3 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg328a ljtcx.ioshw.zqbg328a
312 tcxhw.project.zqbg648a 定卦神锄礼包7 5 648 null 16#6480|46#30|20#5 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg648a ljtcx.ioshw.zqbg648a
314 tcxhw.project.xsss128c 寻仙小礼包 5 128 null 16#1280|87#12|81143#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128c ljtcx.ioshw.xsss128c
315 tcxhw.project.xsss198c 寻仙中礼包 5 198 null 16#1980|87#10|20#2|61#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss198c ljtcx.ioshw.xsss198c
316 tcxhw.project.xsss328c 寻仙大礼包 5 328 null 16#3280|87#25|81143#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328c ljtcx.ioshw.xsss328c
317 tcxhw.project.xsss648c 寻仙豪华礼包 5 648 null 16#6480|87#32|11040#50|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648c ljtcx.ioshw.xsss648c
318 tcxhw.project.xsss128d 乾坤小礼包 5 128 null 16#1280|1002#12|81144#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128d ljtcx.ioshw.xsss128d
319 tcxhw.project.xsss328d 乾坤中礼包 5 328 null 16#3280|1002#25|81144#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328d ljtcx.ioshw.xsss328d
320 tcxhw.project.xsss648d 乾坤大礼包 5 648 null 16#6480|1002#32|81129#1|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648d ljtcx.ioshw.xsss648d
321 tcxhw.project.zqbg6c 限时兑换礼包1 5 6 null 16#60|1005#10|91#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg6c ljtcx.ioshw.zqbg6c
322 tcxhw.project.zqbg30c 限时兑换礼包2 5 30 null 16#300|1005#90|87#3 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg30c ljtcx.ioshw.zqbg30c
323 tcxhw.project.zqbg68c 限时兑换礼包3 5 68 null 16#680|1005#150|87#6 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg68c ljtcx.ioshw.zqbg68c
324 tcxhw.project.zqbg128c 限时兑换礼包4 5 128 null 16#1280|1005#300|20#2 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg128c ljtcx.ioshw.zqbg128c
325 tcxhw.project.zqbg328c 限时兑换礼包5 5 198 null 16#1980|1005#560|20#3 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg328c ljtcx.ioshw.zqbg328c
326 tcxhw.project.zqbg648c 限时兑换礼包6 5 328 null 16#3280|1005#720|20#4 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg648c ljtcx.ioshw.zqbg648c
327 tcxhw.project.zqbg198c 限时兑换礼包7 5 648 null 16#6480|1005#1500|20#8 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg198c ljtcx.ioshw.zqbg198c
328 tcxhw.project.xsss128a 寻仙小礼包 5 128 null 16#1280|87#12|81143#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128a ljtcx.ioshw.xsss128a
329 tcxhw.project.xsss198a 寻仙中礼包 5 198 null 16#1980|87#10|20#2|61#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss198a ljtcx.ioshw.xsss198a
330 tcxhw.project.xsss328a 寻仙大礼包 5 328 null 16#3280|87#25|81143#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328a ljtcx.ioshw.xsss328a
331 tcxhw.project.xsss648a 寻仙豪华礼包 5 648 null 16#6480|87#32|11040#50|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648a ljtcx.ioshw.xsss648a
332 tcxhw.project.xsss128b 乾坤小礼包 5 128 null 16#1280|1002#12|81144#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128b ljtcx.ioshw.xsss128b
333 tcxhw.project.xsss328b 乾坤中礼包 5 328 null 16#3280|1002#25|81144#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328b ljtcx.ioshw.xsss328b
334 tcxhw.project.xsss648b 乾坤大礼包 5 648 null 16#6480|1002#32|81129#1|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648b ljtcx.ioshw.xsss648b
335 tcxhw.project.zqbg6a 限时兑换礼包1 5 6 null 16#60|1005#10|91#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg6a ljtcx.ioshw.zqbg6a
336 tcxhw.project.zqbg30a 限时兑换礼包2 5 30 null 16#300|1005#90|87#3 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg30a ljtcx.ioshw.zqbg30a
337 tcxhw.project.zqbg68a 限时兑换礼包3 5 68 null 16#680|1005#150|87#6 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg68a ljtcx.ioshw.zqbg68a
338 tcxhw.project.zqbg128a 限时兑换礼包4 5 128 null 16#1280|1005#300|20#2 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg128a ljtcx.ioshw.zqbg128a
339 tcxhw.project.zqbg198a 限时兑换礼包5 5 198 null 16#1980|1005#560|20#3 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg198a ljtcx.ioshw.zqbg198a
340 tcxhw.project.zqbg328a 限时兑换礼包6 5 328 null 16#3280|1005#720|20#4 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg328a ljtcx.ioshw.zqbg328a
341 tcxhw.project.zqbg648a 限时兑换礼包7 5 648 null 16#6480|1005#1500|20#8 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg648a ljtcx.ioshw.zqbg648a
342 tcxhw.project.xsss128c 寻仙小礼包 5 128 null 16#1280|87#12|81143#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128c ljtcx.ioshw.xsss128c
343 tcxhw.project.xsss198c 寻仙中礼包 5 198 null 16#1980|87#10|20#2|61#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss198c ljtcx.ioshw.xsss198c
344 tcxhw.project.xsss328c 寻仙大礼包 5 328 null 16#3280|87#25|81143#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328c ljtcx.ioshw.xsss328c
345 tcxhw.project.xsss648c 寻仙豪华礼包 5 648 null 16#6480|87#32|11040#50|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648c ljtcx.ioshw.xsss648c
346 tcxhw.project.xsss128d 乾坤小礼包 5 128 null 16#1280|1002#12|81144#4|81114#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss128d ljtcx.ioshw.xsss128d
347 tcxhw.project.xsss328d 乾坤中礼包 5 328 null 16#3280|1002#25|81144#10|81115#1 0 null null 1006#512 6 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss328d ljtcx.ioshw.xsss328d
348 tcxhw.project.xsss648d 乾坤大礼包 5 648 null 16#6480|1002#32|81129#1|81127#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.xsss648d ljtcx.ioshw.xsss648d
349 tcxhw.project.zqbg6c 限时兑换礼包1 5 6 null 16#60|1005#10|91#1 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg6c ljtcx.ioshw.zqbg6c
350 tcxhw.project.zqbg30c 限时兑换礼包2 5 30 null 16#300|1005#90|87#3 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg30c ljtcx.ioshw.zqbg30c
351 tcxhw.project.zqbg68c 限时兑换礼包3 5 68 null 16#680|1005#150|87#6 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg68c ljtcx.ioshw.zqbg68c
352 tcxhw.project.zqbg128c 限时兑换礼包4 5 128 null 16#1280|1005#300|20#2 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg128c ljtcx.ioshw.zqbg128c
353 tcxhw.project.zqbg198c 限时兑换礼包5 5 198 null 16#1980|1005#560|20#3 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg198c ljtcx.ioshw.zqbg198c
354 tcxhw.project.zqbg328c 限时兑换礼包6 5 328 null 16#3280|1005#720|20#4 0 null null 1006#512 9 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg328c ljtcx.ioshw.zqbg328c
355 tcxhw.project.zqbg648c 限时兑换礼包7 5 648 null 16#6480|1005#1500|20#8 0 null null 1006#512 1 1 1 0 null 0 1 3 0 0 7 null tcx.hw.zqbg648c ljtcx.ioshw.zqbg648c
21 tcxhw.project.5xczl30 5星成长礼 5 30 null 16#300|14#1800000|3#1080000|4#360 0 null null 1006#512 0 0 1 0 4#0#30#2 0 1 4 0 0 7 null tcx.hw.5xczl30 ljtcx.ioshw.5xczl30
400 tcxhw.project.5xczl68 五星成长礼2 5 68 null 16#680|14#3400000|3#2040000|4#680 0 null null 1006#512 0 0 1 0 4#31#47#2 0 1 4 0 0 7 null tcx.hw.5xczl68 ljtcx.ioshw.5xczl68
401 tcxhw.project.5xczl128 五星成长礼3 5 128 null 16#1280|14#9600000|3#3200000|4#1280 0 null null 1006#512 0 0 1 0 4#48#77#2 0 1 4 0 0 7 null tcx.hw.5xczl128 ljtcx.ioshw.5xczl128
402 tcxhw.project.5xczl328 五星成长礼4 5 328 null 16#3280|14#24600000|3#8200000|4#3280 0 null null 1006#512 0 0 1 0 4#78#9999999#2 0 1 4 0 0 7 null tcx.hw.5xczl328 ljtcx.ioshw.5xczl328

View File

@ -2,14 +2,17 @@ package com.jmfy.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jmfy.dao.GSUserDao;
import com.jmfy.dao.MailDao;
import com.jmfy.dao.ServerInfoDao;
import com.jmfy.dao.UserInfoDao;
import com.jmfy.model.*;
import com.jmfy.redisProperties.RedisUserKey;
import com.jmfy.utils.FileCacheUtils;
import com.jmfy.utils.JsonUtil;
import com.jmfy.utils.RedisUtil;
import config.SRechargeCommodityConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
@ -39,6 +42,8 @@ public class OrderInfoController {
private MailDao mailDao;
@Resource
private UserInfoDao userInfoDao;
@Resource
private GSUserDao gsUserDao;
@Resource
private ServerInfoDao serverInfoDao;
@ -55,7 +60,10 @@ public class OrderInfoController {
List<String> days = JsonUtil.getDays(startData,JsonUtil.timeStamp2Date(String.valueOf(endTime)));
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Map<Integer, SRechargeCommodityConfig> rechargeMap = FileCacheUtils.rechargeMap;
Map<Integer,String> itemMap = FileCacheUtils.itemNameMap;
List<Corder> cgPayOrders = new ArrayList<>();
CUserInfo userInfo =null;
@ -63,13 +71,14 @@ public class OrderInfoController {
userInfo = userInfoDao.findUserInfoByUserId(Integer.parseInt(userId));
}
for (String date :days){
Map<String, CGPayOrder> map1 = RedisUtil.getInstence().getMap(RedisUserKey.C_PAYORDER_MAP + ":" + date, CGPayOrder.class, -1);
for (Map.Entry<String,CGPayOrder> entry: map1.entrySet()){
CGPayOrder cgPayOrder = entry.getValue();
String accountid = cgPayOrder.getUserId();
int serverId = cgPayOrder.getServerId();
GSUser gsUser = gsUserDao.findUserInfo(serverId, Integer.parseInt(userId));
if(Integer.valueOf(serverId1)!=0&&!String.valueOf(serverId).equals(serverId1))
{
continue;
@ -92,6 +101,22 @@ public class OrderInfoController {
corder.setPayTime(payTime);
corder.setProductid(cgPayOrder.getGoodsId());
corder.setServerId(String.valueOf(serverId));
Date registerDate = new Date(gsUser.getPlayerManager().getCreateTime());
corder.setRegisterTime(simpleDateFormat.format(registerDate));
SRechargeCommodityConfig config = rechargeMap.get(Integer.parseInt(cgPayOrder.getGoodsId()));
corder.setProductName(config==null?"":config.getName());
int[][] baseReward = config.getBaseReward();
StringBuilder builder = new StringBuilder();
if(baseReward!=null&&baseReward.length>0){
Arrays.stream(baseReward).forEach(n->{
if(builder.length()!=0){
builder.append("、");
}
builder.append(itemMap.getOrDefault(n[0],"")).append("*").append(n[1]);
});
}
corder.setProductContent(builder.toString());
corder.setRecharge_type(cgPayOrder.getRecharge_type());
cgPayOrders.add(corder);
}

View File

@ -16,6 +16,12 @@ public class Corder {
private String serverId;
private String registerTime;
private String productName;
private String productContent;
public String getAccountid() {
return accountid;
}
@ -71,4 +77,28 @@ public class Corder {
public void setServerId(String serverId) {
this.serverId = serverId;
}
public String getRegisterTime() {
return registerTime;
}
public void setRegisterTime(String registerTime) {
this.registerTime = registerTime;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductContent() {
return productContent;
}
public void setProductContent(String productContent) {
this.productContent = productContent;
}
}

View File

@ -0,0 +1,178 @@
package config;
import com.jmfy.utils.Table;
import java.util.*;
@Table(name ="RechargeCommodityConfig")
public class SRechargeCommodityConfig {
private int id;
private String rechargeId;
private String name;
private int type;
private double price;
private int[][] firstMultiple;
private int[][] baseReward;
private int[][][] extraReward;
private int limit;
private int firstInvest;
private int isDiscount;
private int[] discountType;
private int order;
private int accumulativeRecharge;
private int[][] playerLevel;
private int[] openPrivilege;
private int contiueDays;
private String rechargeId2;
private String rechargeId3;
private int time;
private String startTime;
private String endtime;
private long startTimeLong;
private long endTimeLong;
private int limitShow;
private int dailyUpdate;
private int[] passiveSkill;
public int getId() {
return id;
}
public int getType() {
return type;
}
public double getPrice() {
return price;
}
public int[][] getFirstMultiple() {
return firstMultiple;
}
public int[][] getBaseReward() {
return baseReward;
}
public int[][][] getExtraReward() {
return extraReward;
}
public int getLimit() {
return limit;
}
public int getFirstInvest() {
return firstInvest;
}
public int getIsDiscount() {
return isDiscount;
}
public int[] getDiscountType() {
return discountType;
}
public int getOrder() {
return order;
}
public int getAccumulativeRecharge() {
return accumulativeRecharge;
}
public int[][] getPlayerLevel() {
return playerLevel;
}
public int[] getOpenPrivilege() {
return openPrivilege;
}
public int getTime() {
return time;
}
public String getStartTime() {
return startTime;
}
public String getEndtime() {
return endtime;
}
public int getContiueDays() {
return contiueDays;
}
public String getName() {
return name;
}
public void setStartTimeLong(long startTimeLong) {
this.startTimeLong = startTimeLong;
}
public void setEndTimeLong(long endTimeLong) {
this.endTimeLong = endTimeLong;
}
public long getStartTimeLong() {
return startTimeLong;
}
public long getEndTimeLong() {
return endTimeLong;
}
public int getLimitShow() {
return limitShow;
}
public int getDailyUpdate() {
return dailyUpdate;
}
public int[] getPassiveSkill() {
return passiveSkill;
}
public String getRechargeId() {
return rechargeId;
}
public String getRechargeId2() {
return rechargeId2;
}
public String getRechargeId3() {
return rechargeId3;
}
}

View File

@ -1,8 +1,10 @@
package com.jmfy.utils;
import config.SRechargeCommodityConfig;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.lang.reflect.Field;
import java.util.*;
public class FileCacheUtils {
@ -10,6 +12,7 @@ public class FileCacheUtils {
public static Map<Integer,String> itemNameMap ;
public static Map<Integer,String> itemFlowResson ;
public static Map<Integer,SRechargeCommodityConfig> rechargeMap;
public static void initData(){
String osName = System.getProperty("os.name");
@ -20,6 +23,8 @@ public class FileCacheUtils {
}
itemNameMap = readFile("ItemConfig.txt");
itemFlowResson = readFile("Reason.txt");
rechargeMap = getConfig(SRechargeCommodityConfig.class);
}
public static Map<Integer,String> readFile(String fileName){
@ -38,4 +43,189 @@ public class FileCacheUtils {
}
return result;
}
public static <T> Map<Integer, T> getConfig(Class<T> clazz) {
Object o = loadInCache(clazz);
java.util.TreeMap<Integer, T> result = null;
try {
result = (java.util.TreeMap<Integer, T>) o;
} catch (ClassCastException e) {
e.printStackTrace();
}
if (null == result) {
throw new NullPointerException("clazz.null" + clazz.getName());
}
return result;
}
private static <T> Object loadInCache(Class<T> clazz){
TreeMap<Integer, T> map = new TreeMap<>();
try {
String tableName = clazz.getAnnotation(Table.class).name();
String path2 = path+tableName + ".txt";
File file = new File(path2);
if (!file.exists()) {
throw new NullPointerException("clazz.null" + clazz.getName());
}
readFileToCache(clazz, map, file);
} catch (Exception e) {
e.printStackTrace();
}
return map;
}
private static <T> void readFileToCache(Class<T> clazz, Map<Integer, T> map, File file) throws IOException, InstantiationException, IllegalAccessException, NoSuchFieldException {
String line;
List<String> key = new ArrayList<>();
List<String> type = new ArrayList<>();
int lineNum = 0;
try (BufferedReader bufferedReader = new BufferedReader(new FileReader(file))) {
while ((line = bufferedReader.readLine()) != null) {
if (line.isEmpty()) {
continue;
}
T obj = clazz.newInstance();
String[] prarms = line.split("\\t");
switch (lineNum) {
case 0:
prarms = StringUtil.fieldHandle(prarms);
key.addAll(Arrays.asList(prarms));
break;
case 1:
type.addAll(Arrays.asList(prarms));
break;
default:
dealParams(clazz, map, key, type, obj, prarms);
break;
}
lineNum++;
}
}
}
/**
*
*/
private static <T> void dealParams(Class<T> clazz, Map<Integer, T> map, List<String> key, List<String> type, T obj, String[] prarms) throws NoSuchFieldException, IllegalAccessException {
int id = Integer.parseInt(prarms[0]);
for (int i = 0; i < prarms.length; i++) {
try {
Field field = clazz.getDeclaredField(key.get(i));
boolean flag = field.isAccessible();
field.setAccessible(true);
switch (type.get(i)) {
case "int":
field.set(obj, Integer.parseInt(prarms[i]));
break;
case "string":
case "stringt":
if (!"null".equalsIgnoreCase(prarms[i]) || !"".equalsIgnoreCase(prarms[i])) {
field.set(obj, prarms[i]);
}
break;
case "long":
field.set(obj, Long.parseLong(prarms[i]));
break;
case "double":
field.set(obj, Double.parseDouble(prarms[i]));
break;
case "float":
field.set(obj, Float.parseFloat(prarms[i]));
break;
case "bool":
field.set(obj, Boolean.parseBoolean(prarms[i]));
break;
default:
if (type.get(i).startsWith("ref")) {
field.set(obj, Integer.parseInt(prarms[i]));
} else if (type.get(i).startsWith("mut")) {
mut(key, type, obj, prarms, i, field);
}
break;
}
field.setAccessible(flag);
map.put(id, obj);
} catch (NoSuchFieldException e) {
e.printStackTrace();
}
}
}
/**
* mut
*/
private static <T> void mut(List<String> key, List<String> type, T obj, String[] prarms, int i, Field field) throws IllegalAccessException {
String[] params = type.get(i).split(",");
String[] type1 = params[1].split("#");
int dimension = dimension(type1, params);
if (dimension == 0) {
field.set(obj, prarms[i]);
} else {
//全为int或者float
switch (type1[0]) {
case "int":
intField(obj, prarms, i, field, dimension);
break;
case "float":
floatField(obj, prarms, i, field, dimension);
break;
default:
break;
}
}
}
private static <T> void floatField(T obj, String[] prarms, int i, Field field, int dimension) throws IllegalAccessException {
switch (dimension) {
case 1:
field.set(obj, StringUtil.parseFiledFloat(prarms[i]));
break;
case 2:
field.set(obj, StringUtil.parseFiledFloat2(prarms[i]));
break;
case 3:
field.set(obj, StringUtil.parseFiledFloat3(prarms[i]));
break;
default:
break;
}
}
private static <T> void intField(T obj, String[] prarms, int i, Field field, int dimension) throws IllegalAccessException {
switch (dimension) {
case 1:
field.set(obj, StringUtil.parseFiledInt(prarms[i]));
break;
case 2:
field.set(obj, StringUtil.parseFiledInt2(prarms[i]));
break;
case 3:
field.set(obj, StringUtil.parseFiledInt3(prarms[i]));
break;
default:
break;
}
}
private static int dimension(String type[], String[] params) throws IllegalAccessException {
String type1 = type[0];
boolean flag = false;
for (int i = 0; i < type.length; i++) {
if (!type1.equals(type[i])) {
flag = true;
}
}
if (flag) {
return 0;
}
return Integer.parseInt(params[2]);
}
}

View File

@ -0,0 +1,195 @@
package com.jmfy.utils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @program: server
* @description:
* @author: Diyigeng
* @Company: BeiJing Blue Whale Technology CO.LTD. All rights reserved
* @create: 2018-11-29 21:05
**/
public class StringUtil {
public static int[] parseFiledInt(String value) {
if ("null".equals(value) || StringUtil.isEmpty(value)) {
return new int[0];
}
String[] param = value.split("#");
int[] values = new int[param.length];
for (int i = 0; i < param.length; i++) {
values[i] = Integer.parseInt(param[i]);
}
return values;
}
public static int[][] parseFiledInt2(String value) {
if ("null".equals(value) || value == null) {
return new int[0][0];
}
String[] param = value.split("\\|");
int[][] values = new int[param.length][];
for (int i = 0; i < param.length; i++) {
values[i] = parseFiledInt(param[i]);
}
return values;
}
public static int[][][] parseFiledInt3(String value) {
if ("null".equals(value) || value == null) {
return new int[0][0][0];
}
String[] param = value.split(",");
int[][][] values = new int[param.length][][];
for (int i = 0; i < param.length; i++) {
values[i] = parseFiledInt2(param[i]);
}
return values;
}
public static float[] parseFiledFloat(String value) {
if ("null".equals(value) || value == null) {
return new float[0];
}
String[] param = value.split("#");
float[] values = new float[param.length];
for (int i = 0; i < param.length; i++) {
values[i] = Float.parseFloat(param[i]);
}
return values;
}
public static float[][] parseFiledFloat2(String value) {
if ("null".equals(value) || value == null) {
return new float[0][0];
}
String[] param = value.split("\\|");
float[][] values = new float[param.length][];
for (int i = 0; i < param.length; i++) {
values[i] = parseFiledFloat(param[i]);
}
return values;
}
public static float[][][] parseFiledFloat3(String value) {
if ("null".equals(value) || value == null) {
return new float[0][0][0];
}
String[] param = value.split(",");
float[][][] values = new float[param.length][][];
for (int i = 0; i < param.length; i++) {
values[i] = parseFiledFloat2(param[i]);
}
return values;
}
/**
*
*
* @return
*/
public static String[] fieldHandle(String[] params) {
String[] params1 = new String[params.length];
for (int i = 0; i < params.length; i++) {
if (params[i].length() <= 2) {
params1[i] = params[i].toLowerCase();
} else {
params1[i] = (new StringBuilder()).append(Character.toLowerCase(params[i].charAt(0))).append(params[i].substring(1)).toString();
}
}
return params1;
}
public static int[] getIntArray(String str, String sep) {
String[] prop = getStringList(str, sep);
List<Integer> tmp = new ArrayList<Integer>();
for (int i = 0; i < prop.length; i++) {
try {
int r = Integer.parseInt(prop[i]);
tmp.add(r);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
int[] ints = new int[tmp.size()];
for (int i = 0; i < tmp.size(); i++) {
ints[i] = tmp.get(i);
}
return ints;
}
public static String[] getStringList(String str, String sep) {
str = trim(str);
return str.split(sep);
}
public static String trim(String str) {
if (str == null) {
str = "";
} else {
str = str.trim();
}
if (str.length() == 0) {
return str;
}
if (str.charAt(0) == '"') {
str = str.substring(1);
}
if (str.charAt(str.length() - 1) == '"') {
str = str.substring(0, str.length() - 1);
}
return str;
}
public static boolean isEmpty(String source){
if( source == null || source.isEmpty()){
return true;
}
return false;
}
public static String parseArrayToString(int[][] source) {
StringBuilder sb = new StringBuilder();
int length = source.length;
int last = length-1;
for(int i=0;i<length;i++){
int[] item = source[i];
if(i==last){
sb.append(item[0]).append("#").append(item[1]);
}else{
sb.append(item[0]).append("#").append(item[1]).append("|");
}
}
return sb.toString();
}
public static String getServiceKey(String serviceName, String host, String port) {
StringBuilder sb = new StringBuilder();
return sb.append(serviceName).append("|")
.append(host).append("|")
.append(port).toString();
}
public static Map<Integer,Integer> parsent2ToIntMap(int[][] value) {
Map<Integer, Integer> result = new HashMap<>();
int length = value.length;
for (int i = 0; i < length; i++) {
int[] item = value[i];
if (item.length != 2) {
continue;
}
result.put(item[0], item[1]);
}
return result;
}
}

View File

@ -0,0 +1,14 @@
package com.jmfy.utils;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target(ElementType.TYPE)
public @interface Table {
/**
* @return
*/
String name();
}

View File

@ -29,7 +29,7 @@
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
<span class="c-gray en">&gt;</span>
人信息管理
人信息管理
<span class="c-gray en">&gt;</span>
玩家订单查询
<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>

View File

@ -21,7 +21,7 @@
<body>
<nav class="breadcrumb">
<i class="Hui-iconfont">&#xe67f;</i> 首页
<span class="c-gray en">&gt;</span> 人信息管理
<span class="c-gray en">&gt;</span> 人信息管理
<span class="c-gray en">&gt;</span> 玩家充值订单信息
<!--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace('/getOrder');" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>-->
</nav>
@ -40,6 +40,9 @@
<th width="200">礼包id</th>
<th width="200">充值金额</th>
<th width="200">支付方式</th>
<th width="200">注册时间</th>
<!--<th width="240">操作</th>-->
</tr>
</thead>
@ -52,6 +55,7 @@
<td th:text="${obj.productid}" style="text-align: center;"></td>
<td th:text="${obj.amount}" style="text-align: center;"></td>
<td th:text="${obj.recharge_type}" style="text-align: center;"></td>
<td th:text="${obj.registerTime}" style="text-align: center;"></td>
</tr>
</tbody>
</table>