diff --git a/service/account/api/api.go b/service/account/api/api.go index d65dfa9f7af..4eda1cd1858 100644 --- a/service/account/api/api.go +++ b/service/account/api/api.go @@ -635,7 +635,6 @@ func CheckAuthAndCalibrate(auth *helper.Auth) (err error) { if err != nil { return fmt.Errorf("get user cr name error: %v", err) } - fmt.Printf("auth: %v\n", auth) return nil } diff --git a/service/account/dao/interface.go b/service/account/dao/interface.go index f4fd86ea790..57341a5f08a 100644 --- a/service/account/dao/interface.go +++ b/service/account/dao/interface.go @@ -426,7 +426,7 @@ func (m *MongoDB) GetAppCostsByOrderIDAndAppName(req *helper.AppCostsReq) ([]com var pipeline mongo.Pipeline if req.AppType == resources.AppStore { pipeline = mongo.Pipeline{ - {{Key: "$match", Value: bson.D{{Key: "order_id", Value: req.OrderID}}}}, + {{Key: "$match", Value: bson.D{{Key: "order_id", Value: req.OrderID}, {Key: "owner", Value: req.Owner}}}}, {{Key: "$unwind", Value: "$app_costs"}}, {{Key: "$project", Value: bson.D{ {Key: "app_name", Value: "$app_costs.name"}, @@ -441,7 +441,7 @@ func (m *MongoDB) GetAppCostsByOrderIDAndAppName(req *helper.AppCostsReq) ([]com } } else { pipeline = mongo.Pipeline{ - {{Key: "$match", Value: bson.D{{Key: "order_id", Value: req.OrderID}}}}, + {{Key: "$match", Value: bson.D{{Key: "order_id", Value: req.OrderID}, {Key: "owner", Value: req.Owner}}}}, {{Key: "$unwind", Value: "$app_costs"}}, {{Key: "$match", Value: bson.D{{Key: "app_costs.name", Value: req.AppName}}}}, {{Key: "$project", Value: bson.D{