|
@@ -5,6 +5,7 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
"leadGeneration/public"
|
|
|
"leadGeneration/vars"
|
|
|
)
|
|
@@ -76,13 +77,13 @@ func HasAheadPower(userId string) bool {
|
|
|
query := map[string]interface{}{
|
|
|
"$or": []map[string]interface{}{
|
|
|
{
|
|
|
- "_id": userId,
|
|
|
+ "_id": primitive.ObjectIDFromHex(userId),
|
|
|
"i_member_status": map[string]interface{}{
|
|
|
"$gt": 0,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- "_id": userId,
|
|
|
+ "_id": primitive.ObjectIDFromHex(userId),
|
|
|
"i_vip_status": map[string]interface{}{
|
|
|
"$gt": 0,
|
|
|
},
|