forked from GangZhuo/BaiduPCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
decode_js_string.html
232 lines (226 loc) · 14.6 KB
/
decode_js_string.html
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<html>
<head>
<title></title>
<script>
ErrorMessage = {
"0" : "\u6210\u529f",
"-1" : "\u7528\u6237\u540d\u548c\u5bc6\u7801\u9a8c\u8bc1\u5931\u8d25",
"-2" : "\u5907\u7528",
"-3" : "\u7528\u6237\u672a\u6fc0\u6d3b\uff08\u8c03\u7528init\u63a5\u53e3\uff09",
"-4" : "COOKIE\u4e2d\u672a\u627e\u5230host_key&user_key\uff08\u6216BDUSS\uff09",
"-5" : "host_key\u548cuser_key\u65e0\u6548",
"-6" : "bduss\u65e0\u6548",
"-7" : "\u6587\u4ef6\u6216\u76ee\u5f55\u540d\u9519\u8bef\u6216\u65e0\u6743\u8bbf\u95ee",
"-8" : "\u8be5\u76ee\u5f55\u4e0b\u5df2\u5b58\u5728\u6b64\u6587\u4ef6",
"-9" : "\u6587\u4ef6\u88ab\u6240\u6709\u8005\u5220\u9664\uff0c\u64cd\u4f5c\u5931\u8d25",
"-10" : "\u7f51\u76d8\u7a7a\u95f4\u5df2\u6ee1",
"-11" : "\u7236\u76ee\u5f55\u4e0d\u5b58\u5728",
"-12" : "\u8bbe\u5907\u5c1a\u672a\u6ce8\u518c",
"-13" : "\u8bbe\u5907\u5df2\u7ecf\u88ab\u7ed1\u5b9a",
"-14" : "\u5e10\u53f7\u5df2\u7ecf\u521d\u59cb\u5316",
"-21" : "\u9884\u7f6e\u6587\u4ef6\u65e0\u6cd5\u8fdb\u884c\u76f8\u5173\u64cd\u4f5c",
"-22" : "\u88ab\u5206\u4eab\u7684\u6587\u4ef6\u65e0\u6cd5\u91cd\u547d\u540d\uff0c\u79fb\u52a8\u7b49\u64cd\u4f5c",
"-23" : "\u6570\u636e\u5e93\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u8054\u7cfbnetdisk\u7ba1\u7406\u5458",
"-24" : "\u8981\u53d6\u6d88\u7684\u6587\u4ef6\u5217\u8868\u4e2d\u542b\u6709\u4e0d\u5141\u8bb8\u53d6\u6d88public\u7684\u6587\u4ef6\u3002",
"-25" : "\u975e\u516c\u6d4b\u7528\u6237",
"-26" : "\u9080\u8bf7\u7801\u5931\u6548",
"1" : "\u670d\u52a1\u5668\u9519\u8bef ",
"2" : "\u8be5\u6587\u4ef6\u5939\u4e0d\u53ef\u4ee5\u79fb\u52a8",
"3" : "\u4e00\u6b21\u64cd\u4f5c\u6587\u4ef6\u4e0d\u53ef\u8d85\u8fc7100\u4e2a",
"4" : "\u65b0\u6587\u4ef6\u540d\u9519\u8bef",
"5" : "\u76ee\u6807\u76ee\u5f55\u975e\u6cd5",
"6" : "\u5907\u7528",
"7" : "NS\u975e\u6cd5\u6216\u65e0\u6743\u8bbf\u95ee",
"8" : "ID\u975e\u6cd5\u6216\u65e0\u6743\u8bbf\u95ee",
"9" : "\u7533\u8bf7key\u5931\u8d25",
"10" : "\u521b\u5efa\u6587\u4ef6\u7684superfile\u5931\u8d25",
"11" : "user_id(\u6216user_name)\u975e\u6cd5\u6216\u4e0d\u5b58\u5728",
"12" : "\u6279\u91cf\u5904\u7406\u672a\u5168\u90e8\u6210\u529f",
"13" : "\u6b64\u76ee\u5f55\u65e0\u6cd5\u5171\u4eab",
"14" : "\u7cfb\u7edf\u9519\u8bef",
"103" : "\u63d0\u53d6\u7801\u9519\u8bef",
"104" : "\u9a8c\u8bc1cookie\u65e0\u6548",
"201" : "\u7cfb\u7edf\u9519\u8bef",
"202" : "\u7cfb\u7edf\u9519\u8bef",
"203" : "\u7cfb\u7edf\u9519\u8bef",
"204" : "\u7cfb\u7edf\u9519\u8bef",
"205" : "\u7cfb\u7edf\u9519\u8bef",
"301" : "\u5176\u4ed6\u8bf7\u6c42\u51fa\u9519",
"501" : "\u83b7\u53d6\u7684LIST\u683c\u5f0f\u975e\u6cd5",
"618" : "\u8bf7\u6c42curl\u8fd4\u56de\u5931\u8d25",
"619" : "pcs\u8fd4\u56de\u9519\u8bef\u7801",
"600" : "json\u89e3\u6790\u51fa\u9519",
"601" : "exception\u629b\u51fa\u5f02\u5e38",
"617" : "getFilelist\u5176\u4ed6\u9519\u8bef",
"211" : "\u65e0\u6743\u64cd\u4f5c\u6216\u88ab\u5c01\u7981",
"404" : "\u79d2\u4f20md5\u4e0d\u5339\u914d rapidupload \u9519\u8bef\u7801",
"406" : "\u79d2\u4f20\u521b\u5efa\u6587\u4ef6\u5931\u8d25 rapidupload \u9519\u8bef\u7801",
"407" : "fileModify\u63a5\u53e3\u8fd4\u56de\u9519\u8bef\uff0c\u672a\u8fd4\u56derequestid rapidupload \u9519\u8bef\u7801",
"31080" : "\u6211\u4eec\u7684\u670d\u52a1\u5668\u51fa\u9519\u4e86\uff0c\u7a0d\u5019\u8bd5\u8bd5\u5427",
"31021" : "\u7f51\u7edc\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u6216\u7a0d\u5019\u518d\u8bd5",
"31075" : "\u4e00\u6b21\u652f\u6301\u64cd\u4f5c999\u4e2a\uff0c\u51cf\u70b9\u8bd5\u8bd5\u5427",
"31116" : "\u4f60\u7684\u7a7a\u95f4\u4e0d\u8db3\u4e86\u54df\uff0c\u8d76\u7d27<a target='_blank' href='http://yun.baidu.com/buy/center?tag=2'>\u8d2d\u4e70\u7a7a\u95f4</a>\u5427"
};
shareErrorMessage = {
"0" : "\u6210\u529f",
"-1" : "\u7531\u4e8e\u60a8\u5206\u4eab\u4e86\u8fdd\u53cd\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\u7684\u6587\u4ef6\uff0c\u5206\u4eab\u529f\u80fd\u5df2\u88ab\u7981\u7528\uff0c\u4e4b\u524d\u5206\u4eab\u51fa\u53bb\u7684\u6587\u4ef6\u4e0d\u53d7\u5f71\u54cd\u3002",
"-2" : "\u7528\u6237\u4e0d\u5b58\u5728,\u8bf7\u5237\u65b0\u9875\u9762\u540e\u91cd\u8bd5",
"-3" : "\u6587\u4ef6\u4e0d\u5b58\u5728,\u8bf7\u5237\u65b0\u9875\u9762\u540e\u91cd\u8bd5",
"-4" : "\u767b\u5f55\u4fe1\u606f\u6709\u8bef\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u8bd5\u8bd5",
"-5" : "host_key\u548cuser_key\u65e0\u6548",
"-6" : "\u8bf7\u91cd\u65b0\u767b\u5f55",
"-7" : "\u8be5\u5206\u4eab\u5df2\u5220\u9664\u6216\u5df2\u53d6\u6d88",
"-8" : "\u8be5\u5206\u4eab\u5df2\u7ecf\u8fc7\u671f",
"-9" : "\u8bbf\u95ee\u5bc6\u7801\u9519\u8bef",
"-10" : "\u5206\u4eab\u5916\u94fe\u5df2\u7ecf\u8fbe\u5230\u6700\u5927\u4e0a\u9650100000\u6761\uff0c\u4e0d\u80fd\u518d\u6b21\u5206\u4eab",
"-11" : "\u9a8c\u8bc1cookie\u65e0\u6548",
"-14" : "\u5bf9\u4e0d\u8d77\uff0c\u77ed\u4fe1\u5206\u4eab\u6bcf\u5929\u9650\u523620\u6761\uff0c\u4f60\u4eca\u5929\u5df2\u7ecf\u5206\u4eab\u5b8c\uff0c\u8bf7\u660e\u5929\u518d\u6765\u5206\u4eab\u5427\uff01",
"-15" : "\u5bf9\u4e0d\u8d77\uff0c\u90ae\u4ef6\u5206\u4eab\u6bcf\u5929\u9650\u523620\u5c01\uff0c\u4f60\u4eca\u5929\u5df2\u7ecf\u5206\u4eab\u5b8c\uff0c\u8bf7\u660e\u5929\u518d\u6765\u5206\u4eab\u5427\uff01",
"-16" : "\u5bf9\u4e0d\u8d77\uff0c\u8be5\u6587\u4ef6\u5df2\u7ecf\u9650\u5236\u5206\u4eab\uff01",
"-17" : "\u6587\u4ef6\u5206\u4eab\u8d85\u8fc7\u9650\u5236",
"-30" : "\u6587\u4ef6\u5df2\u5b58\u5728",
"-31" : "\u6587\u4ef6\u4fdd\u5b58\u5931\u8d25",
"-33" : "\u4e00\u6b21\u652f\u6301\u64cd\u4f5c10000\u4e2a\uff0c\u51cf\u70b9\u8bd5\u8bd5\u5427",
"-32" : "\u4f60\u7684\u7a7a\u95f4\u4e0d\u8db3\u4e86\u54df\uff0c\u8d76\u7d27<a target='_blank' href='http://yun.baidu.com/buy/center?tag=2'>\u8d2d\u4e70\u7a7a\u95f4</a>\u5427",
"-70" : "\u4f60\u5206\u4eab\u7684\u6587\u4ef6\u4e2d\u5305\u542b\u75c5\u6bd2\u6216\u7591\u4f3c\u75c5\u6bd2\uff0c\u4e3a\u4e86\u4f60\u548c\u4ed6\u4eba\u7684\u6570\u636e\u5b89\u5168\uff0c\u6362\u4e2a\u6587\u4ef6\u5206\u4eab\u5427",
"2" : "\u53c2\u6570\u9519\u8bef",
"3" : "\u672a\u767b\u5f55\u6216\u5e10\u53f7\u65e0\u6548",
"4" : "\u5b58\u50a8\u597d\u50cf\u51fa\u95ee\u9898\u4e86\uff0c\u8bf7\u7a0d\u5019\u518d\u8bd5",
"108" : "\u6587\u4ef6\u540d\u6709\u654f\u611f\u8bcd\uff0c\u4f18\u5316\u4e00\u4e0b\u5427",
"110" : "\u5206\u4eab\u6b21\u6570\u8d85\u51fa\u9650\u5236\uff0c\u53ef\u4ee5\u5230\u201c\u6211\u7684\u5206\u4eab\u201d\u4e2d\u67e5\u770b\u5df2\u5206\u4eab\u7684\u6587\u4ef6\u94fe\u63a5",
"114" : "\u5f53\u524d\u4efb\u52a1\u4e0d\u5b58\u5728\uff0c\u4fdd\u5b58\u5931\u8d25",
"115" : "\u8be5\u6587\u4ef6\u7981\u6b62\u5206\u4eab"
};
downloadMessage = {
"36000" : "\u7f51\u7edc\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u5019\u518d\u8bd5",
"36001" : "\u53c2\u6570\u9519\u8bef",
"36002" : "appid\u9519\u8bef",
"36003" : "\u8bf7\u5237\u65b0\u518d\u8bd5",
"36004" : "\u8bf7\u91cd\u65b0\u767b\u5f55",
"36005" : "\u7528\u6237\u672a\u767b\u5f55",
"36006" : "\u7528\u6237\u672a\u6fc0\u6d3b",
"36007" : "\u7528\u6237\u672a\u6388\u6743",
"36008" : "\u7528\u6237\u4e0d\u5b58\u5728",
"36009" : "\u7528\u6237\u7a7a\u95f4\u4e0d\u8db3",
"36010" : "\u6587\u4ef6\u4e0d\u5b58\u5728",
"36012" : "\u64cd\u4f5c\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5",
"36013" : "\u540c\u65f6\u4e0b\u8f7d\u7684\u4efb\u52a1\u8fc7\u591a\uff0c\u4e0d\u80fd\u4e0b\u8f7d",
"36014" : "\u5b58\u50a8\u8def\u5f84\u5df2\u4f7f\u7528",
"36016" : "\u4efb\u52a1\u5df2\u5220\u9664",
"36017" : "\u4efb\u52a1\u5df2\u5b8c\u6210",
"36018" : "\u89e3\u6790\u5931\u8d25\uff0c\u79cd\u5b50\u6587\u4ef6\u635f\u574f",
"36019" : "\u4efb\u52a1\u6b63\u5728\u5904\u7406\u4e2d",
"36020" : "\u4efb\u52a1\u5730\u5740\u4e0d\u5b58\u5728",
"36021" : "\u666e\u901a\u7528\u6237\u6700\u591a\u540c\u65f6\u4e0b\u8f7d1\u4e2a\u4efb\u52a1\u54e6\uff01\u9a6c\u4e0a\u5f00\u901a\u79bb\u7ebf\u4e0b\u8f7d\u5957\u9910\uff0c\u7acb\u5373\u4e0b\u8f7d\u66f4\u591a\uff01",
"36022" : "\u540c\u65f6\u4e0b\u8f7d\u7684\u4efb\u52a1\u8fc7\u591a\uff0c\u4e0d\u80fd\u4e0b\u8f7d",
"36023" : "\u666e\u901a\u7528\u6237\u6bcf\u6708\u53ea\u80fd\u79bb\u7ebf\u4e0b\u8f7d5\u4e2a\u4efb\u52a1\u54e6\uff01\u9a6c\u4e0a\u5f00\u901a\u79bb\u7ebf\u4e0b\u8f7d\u5957\u9910\uff0c\u7acb\u5373\u4e0b\u8f7d\u66f4\u591a\uff01",
"36024" : "\u672c\u6708\u4e0b\u8f7d\u6570\u5df2\u8d85\u9650\u5236",
"36025" : "\u5206\u4eab\u94fe\u63a5\u5df2\u5931\u6548",
"36026" : "\u94fe\u63a5\u683c\u5f0f\u6709\u8bef",
"36027" : "\u94fe\u63a5\u683c\u5f0f\u6709\u8bef",
"36028" : "\u6682\u65f6\u65e0\u6cd5\u627e\u5230\u76f8\u5173\u79cd\u5b50\u4fe1\u606f",
"36031" : "\u7f51\u7edc\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u5019\u518d\u8bd5",
"-19" : "\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"
};
buyErrorMessage = {
"1000" : "\u554a\u54e6\uff0c\u4e0d\u80fd\u4ece\u9ad8\u7ea7\u5957\u9910\u5347\u7ea7\u5230\u4f4e\u7ea7\u5957\u9910\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"1001" : "\u554a\u54e6\uff0c\u4e0d\u80fd\u4ece\u9ad8\u7ea7\u5957\u9910\u5347\u7ea7\u5230\u4f4e\u7ea7\u5957\u9910\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"1002" : "\u554a\u54e6\uff0c\u521b\u5efa\u8ba2\u5355\u5931\u8d25\u4e86\uff0c\u8bf7\u7a0d\u5019\u91cd\u8bd5\u4e00\u4e0b\u5427\u3002",
"1003" : "\u554a\u54e6\uff0c\u521b\u5efa\u8ba2\u5355\u5931\u8d25\u4e86\uff0c\u8bf7\u7a0d\u5019\u91cd\u8bd5\u4e00\u4e0b\u5427\u3002",
"1004" : "\u554a\u54e6\uff0c\u521b\u5efa\u8ba2\u5355\u5931\u8d25\u4e86\uff0c\u8bf7\u7a0d\u5019\u91cd\u8bd5\u4e00\u4e0b\u5427\u3002",
"1005" : "\u554a\u54e6\uff0c\u521b\u5efa\u8ba2\u5355\u5931\u8d25\u4e86\uff0c\u8bf7\u7a0d\u5019\u91cd\u8bd5\u4e00\u4e0b\u5427\u3002",
"1006" : "\u554a\u54e6\uff0c\u4e0d\u80fd\u540c\u4e00\u5929\u8d2d\u4e70\u76f8\u540c\u4ea7\u54c1\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"1007" : "\u554a\u54e6\uff0c\u4e0d\u80fd\u540c\u4e00\u5929\u8d2d\u4e70\u76f8\u540c\u4ea7\u54c1\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"3002" : "\u554a\u54e6\uff0c\u8be5\u8ba2\u5355\u5df2\u7ecf\u652f\u4ed8\u6210\u529f\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"3003" : "\u554a\u54e6\uff0c\u8be5\u8ba2\u5355\u5df2\u7ecf\u652f\u4ed8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"36000" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36001" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36002" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36003" : "\u8be5\u6b21\u8bbf\u95ee\u5f02\u5e38\uff0c\u6743\u9650\u53d7\u9650",
"36005" : "\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef\uff0c\u8bf7\u5237\u65b0\u91cd\u8bd5",
"36006" : "\u554a\u54e6\uff0c\u6211\u4eec\u8fd8\u6ca1\u63a8\u51fa\u8fd9\u6b3e\u4ea7\u54c1\u5440",
"36007" : "\u4f5c\u5f02\u5e38\uff0c\u559d\u676f\u8336\u91cd\u8bd5\u4e0b\uff1f",
"36008" : "\u54ce\u5440\uff0c\u4f60\u7684\u64cd\u4f5c\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u91cd\u8bd5\u3002",
"36009" : "\u57fa\u7840\u5957\u9910\u4e0d\u5141\u8bb8\u8d2d\u4e70",
"36010" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36011" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36012" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36013" : "\u8be5\u8ba2\u5355\u65e0\u6cd5\u91cd\u65b0\u652f\u4ed8",
"36014" : "\u554a\u54e6\uff0c\u8be5\u8ba2\u5355\u5df2\u7ecf\u652f\u4ed8\u6210\u529f\uff0c\u8bf7\u91cd\u65b0\u8d2d\u4e70\u5427\u3002",
"36015" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36016" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36017" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36018" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026",
"36019" : "\u554a\u54e6\uff0c\u670d\u52a1\u5668\u611f\u5192\u4e86\uff0c\u7d27\u6025\u533b\u6cbb\u4e2d\u2026\u2026"
};
recordErrorMessage = {
"36000" : "\u5185\u90e8\u9519\u8bef",
"36001" : "\u4e0d\u652f\u6301\u7684API",
"36002" : "\u53c2\u6570\u9519\u8bef",
"36003" : "\u65e0\u6743\u9650\u8bbf\u95ee",
"36005" : "\u9a8c\u8bc1\u7801\u5931\u6548\u6216\u975e\u6cd5",
"36006" : "\u8981\u8d2d\u4e70\u7684\u4ea7\u54c1\u4e0d\u5b58\u5728",
"36007" : "\u7528\u6237\u5728\u8d2d\u4e70\u4ea7\u54c1\u7684\u8fc7\u7a0b\u4e2d\u5e76\u884c\u64cd\u4f5c\uff0c\u4e00\u822c\u4e0d\u4f1a\u51fa\u73b0\u8be5\u9519\u8bef\u7801",
"36016" : "\u8be5\u529f\u80fd\u4e0d\u662f\u5c5e\u6027\u503c\uff0c\u4e0d\u80fd\u83b7\u53d6\uff0c\u63a5\u5165\u7cfb\u7edf\u5173\u6ce8",
"36017" : "\u8be5\u529f\u80fd\u4e0d\u662f\u6d88\u8d39\u503c\uff0c\u4e0d\u80fd\u6d88\u8d39\uff0c\u63a5\u5165\u7cfb\u7edf\u5173\u6ce8",
"36018" : "\u8981\u6d88\u8d39\u7684\u529f\u80fd\u9879\u672a\u627e\u5230\uff0c\u63a5\u5165\u7cfb\u7edf\u5173\u6ce8",
"36019" : "\u62d2\u7edd\u6d88\u8d39\uff0c\u7528\u6237\u6ca1\u6709\u914d\u989d\u4e86\uff0c\u63a5\u5165\u7cfb\u7edf\u5173\u6ce8",
"36020" : "\u8bf7\u6c42\u91cd\u653e",
"36021" : "\u8bf7\u6c42\u8fc7\u671f\uff0c\u6216\u8005\u662f\u7b2c\u4e09\u65b9\u4f2a\u9020\u7684\u8bf7\u6c42",
"36031" : "\u7b2c\u4e09\u65b9api\u53c2\u6570\u9519\u8bef",
"36032" : "\u7b2c\u4e09\u65b9api\u7b7e\u540d\u9519\u8bef",
"36033" : "\u7b2c\u4e09\u65b9api\u6587\u4ef6\u9519\u8bef",
"36034" : "\u6570\u636e\u5e93\u9519\u8bef",
"36035" : "\u8ba2\u5355\u5df2\u7ecf\u5b58\u5728",
"36036" : "\u8ba2\u5355token\u5931\u6548",
"36037" : "\u67e5\u8be2\u8ba2\u5355\u4e0d\u5b58\u5728",
"36038" : "\u7701\u5e02\u53c2\u6570\u9519\u8bef",
"36039" : "\u5355\u4ef7\u4e0d\u5b58\u5728"
};
function print(a, b) {
var str = 'const char *get_' + a +'_by_errno(int error)<br />\n';
str += '{<br />\n';
str += "\tconst char *errmsg = NULL;<br/>\n"
str += "\tswitch (error) {<br/>\n"
for (var k in b) {
str += '\tcase ' + k + ':<br/>\n';
str += '\t\terrmsg = "' + b[k] + '";<br />\n';
str += '\t\tbreak;<br />\n';
}
str += '\tdefault:<br/>\n';
str += '\t\terrmsg = "Unknow error";<br />\n';
str += '\t\tbreak;<br />\n';
str += '\t}<br />\n';
str += '\treturn errmsg;<br />\n';
str += '}<br />\n';
str += '<br />\n';
document.getElementById('code').innerHTML = (str);
}
function dec() {
var a = document.getElementById('msg'),
b = document.getElementById('tt');
var c;
eval('c = "' + b.value.replace("\"", "\\\"").replace("\r", "\\r").replace("\n", "\\n") + '"');
a.innerHTML = c;
return false;
}
function to_code() {
print('errmsg', ErrorMessage);
print('share_errmsg', shareErrorMessage);
print('download_errmsg', downloadMessage);
print('buy_errmsg', buyErrorMessage);
print('record_errmsg', recordErrorMessage);
}
window.onload = function() {
};
</script>
</head>
<body>
…<br/>
<div id="msg" style="min-height: 30px; border: solid 1px gray;"></div>
<p></p>
<textarea id="tt" style="width: 100%; height: 80px;"></textarea>
<input id="decode" type="button" value="解码" onclick="javascript: return dec()" />
<div id="code"></div>
</body>
</html>