From 12a81cf07b937082ff67491da4535205aa8fdce0 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 29 Jun 2023 11:52:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E8=B4=A2=E5=AF=8C=E4=BD=8E?= =?UTF-8?q?=E4=BA=8E=E4=B8=80=E5=AE=9A=E5=80=BC=E4=B8=8D=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 5 +++++ modules/caravan/module.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/comm/const.go b/comm/const.go index fa30474e2..59804c587 100644 --- a/comm/const.go +++ b/comm/const.go @@ -409,6 +409,11 @@ const ( Diamond int32 = 2 //钻石 ) +// 排行算虚拟币最低值 +const ( + CaravanMerchantmoney int32 = 10000 +) + // 定时通知类型 type NotifyType int32 diff --git a/modules/caravan/module.go b/modules/caravan/module.go index 66b5bed16..b7ddf0880 100644 --- a/modules/caravan/module.go +++ b/modules/caravan/module.go @@ -378,7 +378,7 @@ func (this *Caravan) Rpc_ModuleCaravanSettlement(ctx context.Context, args *pb.E } } // 发送虚拟币奖励 - if _data, err := this.modelCaravan.DB.Find(comm.TableUser, bson.M{"merchantmoney": bson.M{"$gt": 0}}); err == nil { + if _data, err := this.modelCaravan.DB.Find(comm.TableUser, bson.M{"merchantmoney": bson.M{"$gt": comm.CaravanMerchantmoney}}); err == nil { for _data.Next(context.TODO()) { temp := &pb.DBUser{}