Jelajahi Sumber

Merge branch 'master' of http://192.168.3.207:10080/group3/SwordFish_Interface_Service

jiaojiao7 4 tahun lalu
induk
melakukan
29a2ff55bd
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      utils/api_util.go

+ 2 - 0
utils/api_util.go

@@ -112,6 +112,8 @@ func Check(appID string, productID int, c *gin.Context, getData func() ([]map[st
 	} else {
 		if strings.Contains(errStr, "不足") {
 			response.FailWithDetailed(response.LeftNumEmpty, nil, errStr, c)
+		} else if strings.Contains(errStr, "查询") {
+			response.FailWithDetailed(response.EmptyResult, nil, errStr, c)
 		} else {
 			global.Logger.Error("数据库操作失败", zap.Any("error:", err))
 			response.FailWithDetailed(response.QueryError, nil, "内部错误", c)