.then((goods) => { let ids = goods.map((item) => { return item.id }) if(getMiDouToken()){ this.freshCollectionBtnState(ids) } })
.then((ids) => { if (getMiDouToken()) { this.freshCollectionBtnState(ids) } })