diff --git a/modules/smithy/model_smithy.go b/modules/smithy/model_smithy.go index 23db87ff1..9d537ae1a 100644 --- a/modules/smithy/model_smithy.go +++ b/modules/smithy/model_smithy.go @@ -127,7 +127,13 @@ func (this *modelSmithy) CalculationSmithy(uid string, Smithy *pb.DBSmithy) { if !bCooking { // 经过计算没有烹饪食物的时候 Smithy.Clang = nil } - + sz := make([]*pb.OrderClang, 0) + for _, v := range Smithy.Orders { + if v.Count != 0 { + sz = append(sz, v) + } + } + Smithy.Orders = sz // 保存信息 mapData["orders"] = Smithy.Orders mapData["orderCostTime"] = Smithy.OrderCostTime