校对settings与middleware