|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+using CallCenter.Utility;
|
|
|
2
|
+using CallCenter.Utility.log;
|
|
|
3
|
+using CallCenterApi.Interface.Controllers.Base;
|
|
|
4
|
+using System;
|
|
|
5
|
+using System.Collections.Generic;
|
|
|
6
|
+using System.Linq;
|
|
|
7
|
+using System.Transactions;
|
|
|
8
|
+using System.Web;
|
|
|
9
|
+using System.Web.Mvc;
|
|
|
10
|
+
|
|
|
11
|
+namespace CallCenterApi.Interface.Controllers.weixin
|
|
|
12
|
+{
|
|
|
13
|
+ public class WechatDockingController : BaseController
|
|
|
14
|
+ {
|
|
|
15
|
+ private BLL.T_Sys_DictionaryValue divBLL = new BLL.T_Sys_DictionaryValue();
|
|
|
16
|
+ private BLL.T_Sys_Area areaBLL = new BLL.T_Sys_Area();
|
|
|
17
|
+ BLL.T_Bus_WorkOrder_WXDocking_Map womagpbll = new BLL.T_Bus_WorkOrder_WXDocking_Map();
|
|
|
18
|
+
|
|
|
19
|
+ private AjaxResult ajresult = new AjaxResult();
|
|
|
20
|
+ /// <summary>
|
|
|
21
|
+ /// 测试验证
|
|
|
22
|
+ /// </summary>
|
|
|
23
|
+ /// <returns></returns>
|
|
|
24
|
+ public ActionResult GetScor(string uuid, string port_password, string openid, string timesamp)
|
|
|
25
|
+ {
|
|
|
26
|
+ var pp = Common.CodeValidate.ICodeValidateGriddingT(openid + timesamp + uuid, port_password);
|
|
|
27
|
+ return Success("获取", pp);
|
|
|
28
|
+ }
|
|
|
29
|
+ /// <summary>
|
|
|
30
|
+ /// 绑定微信openid
|
|
|
31
|
+ /// </summary>
|
|
|
32
|
+ /// <returns></returns>
|
|
|
33
|
+ [HttpPost]
|
|
|
34
|
+ public ActionResult BindOpenID(string uuid, string port_password, string openid, string timesamp)
|
|
|
35
|
+ {
|
|
|
36
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
37
|
+ {
|
|
|
38
|
+ #region 参数验证
|
|
|
39
|
+ if (string.IsNullOrEmpty(uuid))
|
|
|
40
|
+ {
|
|
|
41
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
42
|
+ ajresult.message = "客户唯一标识不能为空";
|
|
|
43
|
+ return Process();
|
|
|
44
|
+ }
|
|
|
45
|
+ else if (uuid.Length > 50)
|
|
|
46
|
+ {
|
|
|
47
|
+ ajresult.state = (int)CodeStatus.字符串超出长度;
|
|
|
48
|
+ ajresult.message = "客户唯一标识超出长度";
|
|
|
49
|
+ return Process();
|
|
|
50
|
+ }
|
|
|
51
|
+ if (string.IsNullOrEmpty(openid))
|
|
|
52
|
+ {
|
|
|
53
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
54
|
+ ajresult.message = "openid不能为空";
|
|
|
55
|
+ return Process();
|
|
|
56
|
+ }
|
|
|
57
|
+ if (string.IsNullOrEmpty(timesamp))
|
|
|
58
|
+ {
|
|
|
59
|
+ ajresult.state = (int)CodeStatus.必填字段为空;
|
|
|
60
|
+ ajresult.message = "时间戳不能为空";
|
|
|
61
|
+ return Process();
|
|
|
62
|
+ }
|
|
|
63
|
+ if (!Common.CodeValidate.ICodeValidateGridding(openid + timesamp + uuid, port_password))
|
|
|
64
|
+ {
|
|
|
65
|
+ ajresult.state = (int)CodeStatus.安全验证未通过;
|
|
|
66
|
+ ajresult.message = "安全验证未通过";
|
|
|
67
|
+ return Process();
|
|
|
68
|
+ }
|
|
|
69
|
+ if (womagpbll.ExistsUUID(uuid)) //uuid是否已存在,防止重复添加
|
|
|
70
|
+ {
|
|
|
71
|
+ ajresult.state = (int)CodeStatus.数据库错误;
|
|
|
72
|
+ ajresult.message = "操作失败,信息已存在";
|
|
|
73
|
+ return Process();
|
|
|
74
|
+ }
|
|
|
75
|
+ #endregion
|
|
|
76
|
+ string res = "";
|
|
|
77
|
+ var model = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + openid + "' and F_Type=5 order by F_CreateTime desc").FirstOrDefault();
|
|
|
78
|
+ if (model != null)
|
|
|
79
|
+ {
|
|
|
80
|
+ ajresult.state = (int)CodeStatus.SUCCESS;
|
|
|
81
|
+ ajresult.message = "获取成功";
|
|
|
82
|
+ ajresult.data = openid;
|
|
|
83
|
+ res = openid + "||" + model.F_Id;
|
|
|
84
|
+ }
|
|
|
85
|
+ else
|
|
|
86
|
+ {
|
|
|
87
|
+ model = new Model.T_Sys_Users();
|
|
|
88
|
+ model.F_OpenId = openid;
|
|
|
89
|
+ model.F_Type = 5;//微信对接
|
|
|
90
|
+ model.F_CreateTime = DateTime.Now;
|
|
|
91
|
+ long sysid = new BLL.T_Sys_Users().Add(model);
|
|
|
92
|
+ res = openid + "||" + model.F_Id + "||" + sysid;
|
|
|
93
|
+ if (sysid > 0)
|
|
|
94
|
+ {
|
|
|
95
|
+ ajresult.state = (int)CodeStatus.SUCCESS;
|
|
|
96
|
+ ajresult.message = "获取成功";
|
|
|
97
|
+ ajresult.data = openid;
|
|
|
98
|
+ }
|
|
|
99
|
+ else
|
|
|
100
|
+ {
|
|
|
101
|
+ ajresult.state = (int)CodeStatus.执行失败;
|
|
|
102
|
+ ajresult.message = "获取失败";
|
|
|
103
|
+ }
|
|
|
104
|
+ }
|
|
|
105
|
+
|
|
|
106
|
+ int mapid = AddMap(uuid, port_password, "receive", "GetOpenID", openid, res);
|
|
|
107
|
+
|
|
|
108
|
+ AddDockingLogs("", "", "", "", "", "", uuid, port_password, "receive", ajresult.ToJson(), "GetOpenID", openid, 0, 0, 0, 0, mapid);
|
|
|
109
|
+
|
|
|
110
|
+ trans.Complete();
|
|
|
111
|
+ }
|
|
|
112
|
+ return Process();
|
|
|
113
|
+ }
|
|
|
114
|
+
|
|
|
115
|
+ /// <summary>
|
|
|
116
|
+ /// 获取关键词
|
|
|
117
|
+ /// </summary>
|
|
|
118
|
+ /// <returns></returns>
|
|
|
119
|
+ [HttpPost]
|
|
|
120
|
+ public ActionResult GetKeys(string uuid, string port_password, string openid, string timesamp)
|
|
|
121
|
+ {
|
|
|
122
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
123
|
+ {
|
|
|
124
|
+ #region 参数验证
|
|
|
125
|
+ if (string.IsNullOrEmpty(uuid))
|
|
|
126
|
+ {
|
|
|
127
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
128
|
+ ajresult.message = "客户唯一标识不能为空";
|
|
|
129
|
+ return Process();
|
|
|
130
|
+ }
|
|
|
131
|
+ else if (uuid.Length > 50)
|
|
|
132
|
+ {
|
|
|
133
|
+ ajresult.state = (int)CodeStatus.字符串超出长度;
|
|
|
134
|
+ ajresult.message = "客户唯一标识超出长度";
|
|
|
135
|
+ return Process();
|
|
|
136
|
+ }
|
|
|
137
|
+ if (string.IsNullOrEmpty(openid))
|
|
|
138
|
+ {
|
|
|
139
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
140
|
+ ajresult.message = "openid不能为空";
|
|
|
141
|
+ return Process();
|
|
|
142
|
+ }
|
|
|
143
|
+ if (string.IsNullOrEmpty(timesamp))
|
|
|
144
|
+ {
|
|
|
145
|
+ ajresult.state = (int)CodeStatus.必填字段为空;
|
|
|
146
|
+ ajresult.message = "时间戳不能为空";
|
|
|
147
|
+ return Process();
|
|
|
148
|
+ }
|
|
|
149
|
+ if (!Common.CodeValidate.ICodeValidateGridding(openid + timesamp + uuid, port_password))
|
|
|
150
|
+ {
|
|
|
151
|
+ ajresult.state = (int)CodeStatus.安全验证未通过;
|
|
|
152
|
+ ajresult.message = "安全验证未通过";
|
|
|
153
|
+ return Process();
|
|
|
154
|
+ }
|
|
|
155
|
+ if (womagpbll.ExistsUUID(uuid)) //uuid是否已存在,防止重复添加
|
|
|
156
|
+ {
|
|
|
157
|
+ ajresult.state = (int)CodeStatus.数据库错误;
|
|
|
158
|
+ ajresult.message = "操作失败,信息已存在";
|
|
|
159
|
+ return Process();
|
|
|
160
|
+ }
|
|
|
161
|
+ #endregion
|
|
|
162
|
+ var divlist = divBLL.GetModelList(" F_PrentId=38 and F_State=0 order by F_ValueId ");
|
|
|
163
|
+
|
|
|
164
|
+ var divnewList = divlist.Select(x=>{ return new { id = x.F_ValueId, value = x.F_Value }; });
|
|
|
165
|
+
|
|
|
166
|
+ ajresult.state = (int)CodeStatus.SUCCESS;
|
|
|
167
|
+ ajresult.message = "关键词获取成功";
|
|
|
168
|
+ ajresult.data = divnewList;
|
|
|
169
|
+
|
|
|
170
|
+ int mapid = AddMap(uuid, port_password, "receive", "GetKeys", openid, "");
|
|
|
171
|
+
|
|
|
172
|
+ AddDockingLogs("", "", "", "", "", "", uuid, port_password, "receive", ajresult.ToJson(), "GetKeys", openid, 0, 0, 0, 0, mapid);
|
|
|
173
|
+ trans.Complete();
|
|
|
174
|
+ }
|
|
|
175
|
+ return Process();
|
|
|
176
|
+ }
|
|
|
177
|
+ /// <summary>
|
|
|
178
|
+ /// 获取事件区域
|
|
|
179
|
+ /// </summary>
|
|
|
180
|
+ /// <returns></returns>
|
|
|
181
|
+ [HttpPost]
|
|
|
182
|
+ public ActionResult GetAreas(string uuid, string port_password, string openid, string timesamp)
|
|
|
183
|
+ {
|
|
|
184
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
185
|
+ {
|
|
|
186
|
+ #region 参数验证
|
|
|
187
|
+ if (string.IsNullOrEmpty(uuid))
|
|
|
188
|
+ {
|
|
|
189
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
190
|
+ ajresult.message = "客户唯一标识不能为空";
|
|
|
191
|
+ return Process();
|
|
|
192
|
+ }
|
|
|
193
|
+ else if (uuid.Length > 50)
|
|
|
194
|
+ {
|
|
|
195
|
+ ajresult.state = (int)CodeStatus.字符串超出长度;
|
|
|
196
|
+ ajresult.message = "客户唯一标识超出长度";
|
|
|
197
|
+ return Process();
|
|
|
198
|
+ }
|
|
|
199
|
+ if (string.IsNullOrEmpty(openid))
|
|
|
200
|
+ {
|
|
|
201
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
202
|
+ ajresult.message = "openid不能为空";
|
|
|
203
|
+ return Process();
|
|
|
204
|
+ }
|
|
|
205
|
+ if (string.IsNullOrEmpty(timesamp))
|
|
|
206
|
+ {
|
|
|
207
|
+ ajresult.state = (int)CodeStatus.必填字段为空;
|
|
|
208
|
+ ajresult.message = "时间戳不能为空";
|
|
|
209
|
+ return Process();
|
|
|
210
|
+ }
|
|
|
211
|
+ if (!Common.CodeValidate.ICodeValidateGridding(openid + timesamp + uuid, port_password))
|
|
|
212
|
+ {
|
|
|
213
|
+ ajresult.state = (int)CodeStatus.安全验证未通过;
|
|
|
214
|
+ ajresult.message = "安全验证未通过";
|
|
|
215
|
+ return Process();
|
|
|
216
|
+ }
|
|
|
217
|
+ if (womagpbll.ExistsUUID(uuid)) //uuid是否已存在,防止重复添加
|
|
|
218
|
+ {
|
|
|
219
|
+ ajresult.state = (int)CodeStatus.数据库错误;
|
|
|
220
|
+ ajresult.message = "操作失败,信息已存在";
|
|
|
221
|
+ return Process();
|
|
|
222
|
+ }
|
|
|
223
|
+ #endregion
|
|
|
224
|
+ var arealist = areaBLL.GetModelList(" isnull(F_PrentId,0)=0 and F_State=0 order by F_AreaId ");
|
|
|
225
|
+
|
|
|
226
|
+ var areanewList = arealist.Select(x => { return new { id = x.F_AreaId, value = x.F_AreaName }; });
|
|
|
227
|
+
|
|
|
228
|
+ ajresult.state = (int)CodeStatus.SUCCESS;
|
|
|
229
|
+ ajresult.message = "地区获取成功";
|
|
|
230
|
+ ajresult.data = areanewList;
|
|
|
231
|
+
|
|
|
232
|
+ int mapid = AddMap(uuid, port_password, "receive", "GetAreas", openid, "");
|
|
|
233
|
+
|
|
|
234
|
+ AddDockingLogs("", "", "", "", "", "", uuid, port_password, "receive", ajresult.ToJson(), "GetAreas", openid, 0, 0, 0, 0, mapid);
|
|
|
235
|
+
|
|
|
236
|
+ trans.Complete();
|
|
|
237
|
+ }
|
|
|
238
|
+ return Process();
|
|
|
239
|
+ }
|
|
|
240
|
+
|
|
|
241
|
+ /// <summary>
|
|
|
242
|
+ /// 添加工单
|
|
|
243
|
+ /// </summary>
|
|
|
244
|
+ /// <returns></returns>
|
|
|
245
|
+ [HttpPost]
|
|
|
246
|
+ public ActionResult AddWxOrders(string uuid, string port_password, string openid, string timesamp, string cusname, string cusphone, string title, string content, string sourceaddress, string files, int sourcearea = 0, int keys = 0, int type = 0, int isprotect = 0)
|
|
|
247
|
+ {
|
|
|
248
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
249
|
+ {
|
|
|
250
|
+ #region 参数验证
|
|
|
251
|
+ if (string.IsNullOrEmpty(uuid))
|
|
|
252
|
+ {
|
|
|
253
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
254
|
+ ajresult.message = "客户唯一标识不能为空";
|
|
|
255
|
+ return Process();
|
|
|
256
|
+ }
|
|
|
257
|
+ else if (uuid.Length > 50)
|
|
|
258
|
+ {
|
|
|
259
|
+ ajresult.state = (int)CodeStatus.字符串超出长度;
|
|
|
260
|
+ ajresult.message = "客户唯一标识超出长度";
|
|
|
261
|
+ return Process();
|
|
|
262
|
+ }
|
|
|
263
|
+ if (string.IsNullOrEmpty(openid))
|
|
|
264
|
+ {
|
|
|
265
|
+ ajresult.state = (int)CodeStatus.ID不存在;
|
|
|
266
|
+ ajresult.message = "openid不能为空";
|
|
|
267
|
+ return Process();
|
|
|
268
|
+ }
|
|
|
269
|
+ if (string.IsNullOrEmpty(timesamp))
|
|
|
270
|
+ {
|
|
|
271
|
+ ajresult.state = (int)CodeStatus.必填字段为空;
|
|
|
272
|
+ ajresult.message = "时间戳不能为空";
|
|
|
273
|
+ return Process();
|
|
|
274
|
+ }
|
|
|
275
|
+ if (!Common.CodeValidate.ICodeValidateGridding(openid + timesamp + uuid, port_password))
|
|
|
276
|
+ {
|
|
|
277
|
+ ajresult.state = (int)CodeStatus.安全验证未通过;
|
|
|
278
|
+ ajresult.message = "安全验证未通过";
|
|
|
279
|
+ return Process();
|
|
|
280
|
+ }
|
|
|
281
|
+ if (womagpbll.ExistsUUID(uuid)) //uuid是否已存在,防止重复添加
|
|
|
282
|
+ {
|
|
|
283
|
+ ajresult.state = (int)CodeStatus.数据库错误;
|
|
|
284
|
+ ajresult.message = "操作失败,信息已存在";
|
|
|
285
|
+ return Process();
|
|
|
286
|
+ }
|
|
|
287
|
+ #endregion
|
|
|
288
|
+
|
|
|
289
|
+ var wxuser = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + openid + "' and F_Type=5 order by F_CreateTime desc").FirstOrDefault();
|
|
|
290
|
+ if(wxuser==null)
|
|
|
291
|
+ {
|
|
|
292
|
+ ajresult.state = (int)CodeStatus.用户无效;
|
|
|
293
|
+ ajresult.message = "用户无效";
|
|
|
294
|
+ return Process();
|
|
|
295
|
+ }
|
|
|
296
|
+
|
|
|
297
|
+ workorder.WorkOrderController wo = new workorder.WorkOrderController();
|
|
|
298
|
+ string workorderid = wo.AddWorkOrderBySource(5, cusname, "", cusphone, "", "", "", "", cusphone, title,content, sourcearea, sourceaddress, keys.ToString(), "", type, 0, 0, isprotect, 0, files);
|
|
|
299
|
+
|
|
|
300
|
+ int mapid = AddMap(uuid, port_password, "receive", "AddWxOrders", openid, workorderid);
|
|
|
301
|
+
|
|
|
302
|
+ if (string.IsNullOrEmpty(workorderid))
|
|
|
303
|
+ {
|
|
|
304
|
+ ajresult.state = (int)CodeStatus.执行失败;
|
|
|
305
|
+ ajresult.message = "操作失败";
|
|
|
306
|
+ }
|
|
|
307
|
+ else
|
|
|
308
|
+ {
|
|
|
309
|
+ Model.T_Bus_UserWorkOrder tbu = new Model.T_Bus_UserWorkOrder();
|
|
|
310
|
+ tbu.F_UserId = wxuser.F_Id;
|
|
|
311
|
+ tbu.F_WorkOrderId = workorderid;
|
|
|
312
|
+ new BLL.T_Bus_UserWorkOrder().Add(tbu);
|
|
|
313
|
+
|
|
|
314
|
+ ajresult.state = (int)CodeStatus.SUCCESS;
|
|
|
315
|
+ ajresult.message = "操作成功";
|
|
|
316
|
+ ajresult.data = workorderid; //反馈ID
|
|
|
317
|
+
|
|
|
318
|
+ }
|
|
|
319
|
+
|
|
|
320
|
+ AddDockingLogs(cusname, cusphone, title, content, sourceaddress, files, uuid, port_password, "receive", ajresult.ToJson(), "AddWxOrders", openid, sourcearea, keys, type, isprotect, mapid);
|
|
|
321
|
+ trans.Complete();
|
|
|
322
|
+ }
|
|
|
323
|
+ return Process();
|
|
|
324
|
+ }
|
|
|
325
|
+
|
|
|
326
|
+ #region 私有方法
|
|
|
327
|
+ /// <summary>
|
|
|
328
|
+ /// 成功的消息格式化
|
|
|
329
|
+ /// </summary>
|
|
|
330
|
+ /// <param name="message"></param>
|
|
|
331
|
+ /// <returns></returns>
|
|
|
332
|
+ protected virtual ActionResult Process()
|
|
|
333
|
+ {
|
|
|
334
|
+ string methodName = new System.Diagnostics.StackTrace(true).GetFrame(1).GetMethod().Name; //事件源
|
|
|
335
|
+ LogInterface.WriteLog(this.GetType().ToString() + " -- " + methodName + "\r\n" + ajresult.state + "|" + ajresult.data + ajresult.message); //日志
|
|
|
336
|
+ var jsonMsg = new AjaxResult { state = ajresult.state, message = ajresult.message, data = ajresult.data }.ToJson();
|
|
|
337
|
+ return Content(jsonMsg);
|
|
|
338
|
+ }
|
|
|
339
|
+
|
|
|
340
|
+ protected int AddMap(string uuid, string port_password, string direction, string action, string openid,string workorderid)
|
|
|
341
|
+ {
|
|
|
342
|
+ Model.T_Bus_WorkOrder_WXDocking_Map womagpmodel = new Model.T_Bus_WorkOrder_WXDocking_Map();
|
|
|
343
|
+ womagpmodel.F_WorkOrderId = workorderid;
|
|
|
344
|
+ womagpmodel.uuid = uuid;
|
|
|
345
|
+ womagpmodel.openid = openid;
|
|
|
346
|
+ womagpmodel.port_password = port_password;
|
|
|
347
|
+ womagpmodel.F_Direction = "receive";
|
|
|
348
|
+ womagpmodel.F_AddTime = DateTime.Now;
|
|
|
349
|
+ womagpmodel.F_Action = action;
|
|
|
350
|
+ int mapid = womagpbll.Add(womagpmodel);
|
|
|
351
|
+ return mapid;
|
|
|
352
|
+ }
|
|
|
353
|
+
|
|
|
354
|
+ /// <summary>
|
|
|
355
|
+ /// 添加日志
|
|
|
356
|
+ /// </summary>
|
|
|
357
|
+ protected void AddDockingLogs(string cusname, string cusphone, string title, string content, string sourceaddress, string files,
|
|
|
358
|
+ string uuid, string port_password, string direction, string msg,string action,string openid, int sourcearea=0, int keys = 0, int type = 0, int isprotect = 0, int mapid = 0)
|
|
|
359
|
+ {
|
|
|
360
|
+ Model.T_Bus_WorkOrder_WXDocking_logs logs = new Model.T_Bus_WorkOrder_WXDocking_logs();
|
|
|
361
|
+
|
|
|
362
|
+ logs.F_CusName = cusname;
|
|
|
363
|
+ logs.F_CusPhone = cusphone;
|
|
|
364
|
+ logs.F_ComTitle = title;
|
|
|
365
|
+ logs.F_ComContent = content;
|
|
|
366
|
+ logs.F_SourceArea = sourcearea;
|
|
|
367
|
+ logs.F_SourceAddress = sourceaddress;
|
|
|
368
|
+ logs.F_InfoType = type;
|
|
|
369
|
+ logs.F_IsProtect = isprotect;
|
|
|
370
|
+ logs.F_Key = keys.ToString();
|
|
|
371
|
+ logs.F_File = files;
|
|
|
372
|
+
|
|
|
373
|
+ logs.F_uuid = uuid;
|
|
|
374
|
+ logs.F_port_password = port_password;
|
|
|
375
|
+ logs.F_MapID = mapid;
|
|
|
376
|
+ logs.F_Direction = direction;
|
|
|
377
|
+ logs.F_AddTime = DateTime.Now;
|
|
|
378
|
+ logs.F_Message = msg;
|
|
|
379
|
+ logs.F_Action = action;
|
|
|
380
|
+ logs.F_openid = openid;
|
|
|
381
|
+
|
|
|
382
|
+ new BLL.T_Bus_WorkOrder_WXDocking_logs().Add(logs);
|
|
|
383
|
+ }
|
|
|
384
|
+ #endregion
|
|
|
385
|
+ }
|
|
|
386
|
+
|
|
|
387
|
+ /// <summary>
|
|
|
388
|
+ /// 状态枚举
|
|
|
389
|
+ /// </summary>
|
|
|
390
|
+ public enum CodeStatus
|
|
|
391
|
+ {
|
|
|
392
|
+ SUCCESS = 200,
|
|
|
393
|
+ 安全验证未通过 = 400,
|
|
|
394
|
+ 无法预测的程序错误 = 501,
|
|
|
395
|
+ 参数格式错误 = 100,
|
|
|
396
|
+ 必填字段为空 = 101,
|
|
|
397
|
+ 字符串超出长度 = 102,
|
|
|
398
|
+ 数据库错误 = 103,
|
|
|
399
|
+ 执行超时 = 104,
|
|
|
400
|
+ 参数逻辑错误 = 105,
|
|
|
401
|
+ ID不存在 = 106,
|
|
|
402
|
+ 无可上传文件 = 107,
|
|
|
403
|
+ 执行失败 = 108,
|
|
|
404
|
+ 用户已禁用 = 120,
|
|
|
405
|
+ 用户无效=121,
|
|
|
406
|
+
|
|
|
407
|
+ 异常结果类型 = 500
|
|
|
408
|
+
|
|
|
409
|
+ }
|
|
|
410
|
+}
|