虚拟财富低于一定值不计算
This commit is contained in:
parent
d5b15ce0f7
commit
12a81cf07b
@ -409,6 +409,11 @@ const (
|
|||||||
Diamond int32 = 2 //钻石
|
Diamond int32 = 2 //钻石
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// 排行算虚拟币最低值
|
||||||
|
const (
|
||||||
|
CaravanMerchantmoney int32 = 10000
|
||||||
|
)
|
||||||
|
|
||||||
// 定时通知类型
|
// 定时通知类型
|
||||||
type NotifyType int32
|
type NotifyType int32
|
||||||
|
|
||||||
|
@ -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()) {
|
for _data.Next(context.TODO()) {
|
||||||
temp := &pb.DBUser{}
|
temp := &pb.DBUser{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user