The invention discloses an anti-leapfrogging method and device for an Internet finance
system, and the method comprises the steps: checking a
pilot run switch when a leapfrogging
verification request of a service is detected, and obtaining configuration information from a self-defined
annotation and an anti-leapfrogging configuration table in a
database if the
pilot run switch is not turned on; if the matched step configuration is found, acquiring a scene code, and judging whether an
underline exists in the scene code or not; if yes, acquiring a parent scene, and respectively acquiring preposed steps from an anti-leapfrogging configuration table and a
record table according to the parent scene, a service type, an interface address, a version number and a scene code; if the two preposed steps are consistent, executing
business logic, and checking whether a leapfrogging execution step exists or not after the
business logic is completed; and if there is a leapfrogging step, skipping the step through a leapfrogging compensation class, and recording the skipped and executed steps. Therefore, after the
business process is completed, the missing steps are compensated asynchronously, process blocking is avoided to adapt to flexible scene configuration, and the problem of lack of flexibility is solved.