maxiaoshan 4 年 前
コミット
abe88d5857
1 ファイル変更2 行追加2 行削除
  1. 2 2
      projectinfo/src/task.go

+ 2 - 2
projectinfo/src/task.go

@@ -10,7 +10,7 @@ import (
 	"github.com/donnie4w/go-logger/logger"
 
 	"go.mongodb.org/mongo-driver/bson"
-	"go.mongodb.org/mongo-driver/bson/primitive"
+	//"go.mongodb.org/mongo-driver/bson/primitive"
 )
 
 func SaveMgo() {
@@ -145,7 +145,7 @@ func GetProjectData(sid, eid string) {
 			//buyerclass
 			ent, _ := MixMgo.FindOne(CollEnt, bson.M{"buyer_name": buyer})
 			if len(*ent) > 0 && (*ent)["buyerclass"] != nil {
-				arr := (*ent)["buyerclass"].(primitive.A)
+				arr := (*ent)["buyerclass"].([]interface{})
 				if len(arr) == 1 {
 					pro["buyerclass"] = arr
 				} else {