|
@@ -40,13 +40,23 @@ func (c *BodyCheckController) PostCheckResult() {
|
40
|
40
|
err := json.Unmarshal(con, &formVal)
|
41
|
41
|
if err != nil {
|
42
|
42
|
utils.LogError("参数错误:", err)
|
43
|
|
- c.ResponseError(err)
|
|
43
|
+ c.ResponseOtherEndPoint(map[string]interface{}{
|
|
44
|
+ "Status": false,
|
|
45
|
+ "Message": err.Error(),
|
|
46
|
+ })
|
44
|
47
|
}
|
45
|
48
|
|
46
|
49
|
err = c.serv.PostCheckResult(formVal)
|
47
|
50
|
if err != nil {
|
48
|
51
|
utils.LogError("操作错误:", err)
|
49
|
|
- c.ResponseError(err)
|
|
52
|
+ c.ResponseOtherEndPoint(map[string]interface{}{
|
|
53
|
+ "Status": false,
|
|
54
|
+ "Message": err.Error(),
|
|
55
|
+ })
|
50
|
56
|
}
|
51
|
|
- c.ResponseJSON("")
|
|
57
|
+
|
|
58
|
+ c.ResponseOtherEndPoint(map[string]interface{}{
|
|
59
|
+ "Status": true,
|
|
60
|
+ "Message": "",
|
|
61
|
+ })
|
52
|
62
|
}
|