diff --git a/server/payserver/api/v1/ingame/ingame.go b/server/payserver/api/v1/ingame/ingame.go index b5f555c..3900c94 100644 --- a/server/payserver/api/v1/ingame/ingame.go +++ b/server/payserver/api/v1/ingame/ingame.go @@ -300,6 +300,12 @@ func (iga *InGameApi) OrderInfo(c *gin.Context) { Status: orderModel.Status, } + if !f5.IsOnlineEnv() { + count, _ := service.Wxpay.GetGoodsCount(q5.SafeToInt64(data["gameid"]), int64(orderModel.ItemId)) + rspObj.Count = int32(count) + rspObj.Status = 1 + } + c.JSON(200, rspObj) if orderModel.Status == 0 {