diff --git a/build/artShowServerTest b/build/artShowServerTest index a2d0c72..5ac3d9c 100644 Binary files a/build/artShowServerTest and b/build/artShowServerTest differ diff --git a/cmd/service/show_price.go b/cmd/service/show_price.go index 5909e27..03e0f8b 100644 --- a/cmd/service/show_price.go +++ b/cmd/service/show_price.go @@ -32,9 +32,7 @@ func ArtworkPriceList(in *artShow.ShowDetailReq) (err error, artworkPriceList [] func UpdateArtworkPriceReward(in *artShow.UpdateArtworkRewardReq) (err error) { - var ( - reward map[string]int - ) + reward := make(map[string]int, 0) tx := db.DbArtShow.Begin() @@ -45,10 +43,6 @@ func UpdateArtworkPriceReward(in *artShow.UpdateArtworkRewardReq) (err error) { return err } - if reward[artwork.ShowUID] == 0 { - reward[artwork.ShowUID] = 0 - } - artworkReward, _ := strconv.Atoi(in.Data[i].Reward) reward[artwork.ShowUID] += int(artwork.Ruler) * artworkReward