Commit 04525853 by huangchengyi

1.0

parent 60cef48c
Showing with 1 additions and 0 deletions
......@@ -103,6 +103,7 @@ func (ls *LyService) GetSpuAttr(spuId int64) (attrsResult []interface{}) {
err := mongodb.DB("ichunt").C("spu_attrs").Find(bson.M{"spu_id": spuId}).One(&spuAttr)
//err := mongo.Conn("default").DB("ichunt").C("spu_attrs").Find(bson.M{"spu_id": spuId}).One(&spuAttr)
if err != nil {
fmt.Println("mongodb连接错误:")
fmt.Println(err)
}
if spuAttr.Attrs != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment