We propose a theoretical scheme for a one-dimensional lattice based on a superconducting quantum circuit system consisting of two types of superconducting microwave cavities, the interaction between nearest-neighbor and next-nearest-neighbor unit cells that can be adjusted by the magnetic flux, the system can obtain the collective dynamic evolution and study the topological properties of the system.First, we investigate the energy spectrum and edge states of the odd-even lattice size and find that the odd-even lattice number affects the topological properties of the system. Furthermore, considering the next-nearest interactions, it is found that there are constraints on the next-nearest interactions, which can be tuned to study the topological phase transitions of the system and the transfer of topological quantum states.In addition, considering the influence of defects on topological properties, it is found that the defect potential energy is small, the system energy band is stable, the edge states remain unchanged, and the energy spectrum fluctuation is small and distinguishable. Conversely, the energy band distribution is destroyed, it will become disordered and chaotic. The research results can design some new quantum devices for quantum optics and quantum information processing.