the front end sends an ajax request, and the background response is too slow, resulting in two pieces of data being inserted into the database.
the front end uses the hybrid application APP, to send requests using the $.ajax () method of zepto.js, the background uses java development, and the server uses Tomcat.
frontend access backend interface, backend access intermediate service interface, intermediate service access bank service interface (don"t ask me why)
due to poor connection between our service and intermediate service or intermediate service and banking service, the ajax request sent by the frontend waits for a callback to enter error after one minute, indicating that the user failed to connect to the server
but two payment records appear in the backend database. The interval is mostly one minute, and one is tens of milliseconds
ask for advice