Commit 5985620d by 杨树贤

修复展示

parent ee523265
Showing with 1 additions and 1 deletions
......@@ -19,7 +19,7 @@ func (ls *LyService) GetSpuAttr(spuId string) (attrsResult interface{}) {
mongodb.Close()
}()
spuIdInt, _ := strconv.Atoi(spuId)
err := mongodb.DB("ichunt").C("spu_attrs").Find(bson.M{"spu_id": spuIdInt}).One(&spuAttr)
err := mongodb.DB("ichunt").C("spu_attrs2").Find(bson.M{"spu_id": spuIdInt}).One(&spuAttr)
if err != nil && err != mgo.ErrNotFound {
logger.Select("sku_query").Error(err.Error())
}
......
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