One-dimensional one-band topologically nontrivial non-Hermitian system simulated in optical cavities