Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
4bb3833d3d
1 changed files with 4 additions and 7 deletions
  1. 4 7
      controllers/sg/his_api_controller.go

+ 4 - 7
controllers/sg/his_api_controller.go View File

1140
 		return
1140
 		return
1141
 	}
1141
 	}
1142
 	if res.Infcode != 0 {
1142
 	if res.Infcode != 0 {
1143
-		order.FaPiaoNumber = zero
1144
-		order.FaPiaoCode = last_order.FaPiaoCode
1145
-		err := service.UpdateOrder(order)
1146
-		if err != nil {
1147
-			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
1148
-			return
1149
-		}
1143
+
1150
 		c.ServeSuccessJSON(map[string]interface{}{
1144
 		c.ServeSuccessJSON(map[string]interface{}{
1151
 			"failed_code": -10,
1145
 			"failed_code": -10,
1152
 			"msg":         res.ErrMsg,
1146
 			"msg":         res.ErrMsg,
1153
 		})
1147
 		})
1154
 		return
1148
 		return
1155
 	} else {
1149
 	} else {
1150
+		order.FaPiaoNumber = zero
1151
+		order.FaPiaoCode = last_order.FaPiaoCode
1152
+		service.UpdateOrder(order)
1156
 		hisFundSettleListResult := &models.HisFundSettleListResult{
1153
 		hisFundSettleListResult := &models.HisFundSettleListResult{
1157
 			Number:    res.Output.SetlListId,
1154
 			Number:    res.Output.SetlListId,
1158
 			Status:    1,
1155
 			Status:    1,