-
Notifications
You must be signed in to change notification settings - Fork 38
/
simple8583.xml
152 lines (142 loc) · 6.24 KB
/
simple8583.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<simple8583-config>
<!-- 长度全部都是字节数(由自己换算,LLVAR,LLLVAR,LLVAR_NUMERIC等变长数据域定义的长度无效) -->
<!-- 统一头,每次不管请求还是响应都包含的共同内容 -->
<header>
<field id="MsgLength" type="NUMERIC" length="2"/>
<field id="tpdu" type="NUMERIC" length="5"/>
<field id="VersionNo" type="NUMERIC" length="2"/>
<field id="mti" type="NUMERIC" length="2"/>
<field id="BitMap" type="BINARY" length="8"/>
</header>
<!-- 身份校验,手机验证码,交易查证 -->
<package mti="0600">
<field id="2" type="LLVAR_NUMERIC" />
<field id="3" type="NUMERIC" length="3"/>
<field id="4" type="NUMERIC" length="6" />
<field id="8" type="CHAR" length="11" />
<field id="11" type="NUMERIC" length="3" />
<field id="12" type="NUMERIC" length="3" />
<field id="13" type="NUMERIC" length="4" />
<field id="32" type="LLVAR_NUMERIC"/>
<field id="38" type="CHAR" length="6"/>
<field id="39" type="CHAR" length="2" />
<field id="40" type="LLVAR"/>
<field id="41" type="CHAR" length="8" />
<field id="42" type="CHAR" length="15" />
<field id="44" type="LLVAR"/>
<field id="57" type="LLLVAR"/>
<field id="58" type="LLLVAR" />
<field id="64" type="BINARY" length="8"/>
</package>
<!-- 机构签到 -->
<package mti="0800">
<field id="3" type="NUMERIC" length="3"/>
<field id="12" type="NUMERIC" length="3" />
<field id="13" type="NUMERIC" length="4" />
<field id="32" type="LLVAR_NUMERIC"/>
<field id="39" type="CHAR" length="2" />
<field id="40" type="LLVAR"/>
<field id="48" type="LLLVAR"/>
</package>
<!-- 消费交易-->
<package mti="0200">
<field id="2" type="LLVAR_NUMERIC"/>
<field id="3" type="NUMERIC" length="3"/>
<field id="4" type="NUMERIC" length="6" />
<field id="8" type="CHAR" length="11" />
<field id="11" type="NUMERIC" length="3" />
<field id="12" type="NUMERIC" length="3" />
<field id="13" type="NUMERIC" length="4" />
<field id="14" type="NUMERIC" length="2" />
<field id="22" type="NUMERIC" length="2"/>
<field id="24" type="NUMERIC" length="2"/>
<field id="25" type="NUMERIC" length="1"/>
<field id="32" type="LLVAR_NUMERIC"/>
<field id="37" type="CHAR" length="12"/>
<field id="38" type="CHAR" length="6"/>
<field id="39" type="CHAR" length="2" />
<field id="40" type="LLVAR"/>
<field id="41" type="CHAR" length="8" />
<field id="42" type="CHAR" length="15" />
<field id="43" type="CHAR" length="40" />
<field id="44" type="LLVAR"/>
<field id="45" type="CHAR" length="40" />
<field id="48" type="LLLVAR"/>
<field id="49" type="NUMERIC" length="2" />
<field id="54" type="LLLVAR"/>
<field id="58" type="LLLVAR"/>
<field id="64" type="BINARY" length="8" />
</package>
<!-- 消费退货-->
<package mti="0220">
<field id="2" type="LLVAR_NUMERIC"/>
<field id="3" type="NUMERIC" length="3"/>
<field id="4" type="NUMERIC" length="6" />
<field id="8" type="CHAR" length="11" />
<field id="11" type="NUMERIC" length="3" />
<field id="12" type="NUMERIC" length="3" />
<field id="13" type="NUMERIC" length="4" />
<field id="14" type="NUMERIC" length="2" />
<field id="22" type="NUMERIC" length="2"/>
<field id="24" type="NUMERIC" length="2"/>
<field id="25" type="NUMERIC" length="1"/>
<field id="32" type="LLVAR_NUMERIC"/>
<field id="37" type="CHAR" length="12"/>
<field id="38" type="CHAR" length="6"/>
<field id="39" type="CHAR" length="2" />
<field id="40" type="LLVAR"/>
<field id="41" type="CHAR" length="8" />
<field id="42" type="CHAR" length="15" />
<field id="43" type="CHAR" length="40" />
<field id="44" type="LLVAR"/>
<field id="45" type="CHAR" length="40" />
<field id="48" type="LLLVAR"/>
<field id="49" type="NUMERIC" length="2" />
<field id="52" type="BINARY" length="8" />
<field id="58" type="LLLVAR"/>
<field id="62" type="LLLVAR"/>
<field id="64" type="BINARY" length="8" />
</package>
<!--测试类型-->
<package mti="0420" ref="0430">
<field id="1" type="CHAR" length="4"/>
<field id="2" type="CHAR" length="6"/>
<field id="3" type="CHAR" length="8"/>
<field id="4" type="CHAR" length="15"/>
<field id="5" type="CHAR" length="2"/>
<field id="6" type="CHAR" length="19"/>
<field id="7" type="NUMERIC" length="12"/>
<field id="8" type="CHAR" length="20"/>
<field id="9" type="CHAR" length="3"/>
<field id="10" type="CHAR" length="20"/>
<field id="11" type="CHAR" length="6"/>
<field id="12" type="CHAR" length="10"/>
<field id="13" type="CHAR" length="70"/>
<field id="14" type="CHAR" length="3"/>
<field id="15" type="CHAR" length="20"/>
<field id="16" type="CHAR" length="22"/>
<field id="17" type="CHAR" length="15"/>
<field id="18" type="CHAR" length="32"/>
</package>
<!--测试类型 返回-->
<package mti="0430">
<field id="1" type="CHAR" length="4"/>
<field id="2" type="CHAR" length="6"/>
<field id="3" type="CHAR" length="8"/>
<field id="4" type="CHAR" length="15"/>
<field id="5" type="CHAR" length="2"/>
<field id="6" type="CHAR" length="19"/>
<field id="7" type="NUMERIC" length="12"/>
<field id="8" type="CHAR" length="20"/>
<field id="9" type="CHAR" length="6"/>
<field id="10" type="CHAR" length="8"/>
<field id="11" type="CHAR" length="8"/>
<field id="12" type="CHAR" length="11"/>
<field id="13" type="CHAR" length="20"/>
<field id="14" type="CHAR" length="3"/>
<field id="15" type="CHAR" length="2"/>
<field id="16" type="CHAR" length="25"/>
<field id="17" type="CHAR" length="32"/>
</package>
</simple8583-config>