checkInt for addGoods