xingzai hai 1 ano
pai
achega
05acb1d0b1
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      services/activity_points.go

+ 3 - 1
services/activity_points.go

@@ -857,7 +857,9 @@ func YanXuanCompanyCompanyTryOutReduce(log models.YanXuanActivityPointsRedis) (e
 		err = errors.New("GetCompanyPoints, Err: " + e.Error())
 		return
 	}
-
+	if companyPointsNum == 0 {
+		return
+	}
 	//获取需要添加的流水信息
 	var items []*models.CygxActivityPointsBill
 	item := new(models.CygxActivityPointsBill)