The present invention relates to the technical field of medicine, and specifically relates to the carboxylic acid compound represented by the chemical formula I or chemical formula II, and a pharmaceutically acceptable salt, prodrug, and solvate thereof, and method for preparation thereof, as well as a pharmaceutical composition containing the described substances, and a use of said pharmaceutical composition.