The invention patent has been rejected, the substantive examination of the legal situation has taken effect, and the second search is still in progress. Why?

The explanation is in the substantive examination stage.

Patent substantive examination has come into effect, and may still be in the process of substantive examination. Explain that your patent application is an invention patent application and has entered the second stage, that is, the substantive examination stage.

For an application for a patent for invention, the Patent Office will issue a notice of examination opinions at least once and ask for a reply within the prescribed time limit. If the Patent Office considers that your patent application meets the authorization conditions and the substantive examination stage is over, the Patent Office will send a document to inform you to register for authorization.