1. The scenario in which the problem occurs
1. Network delay, or use the FD tool to simulate requests
sql
select time form order where uid="15" order by time desc limit 0 br > if (current time-time < 15) {
exit (do not request frequently);
}
INSERT INTO order (time, uid,...) VALUES (value 1, value 2.)
there is also a CURL request
if (CURL request succeeded) {
} else {
}
problem:
in case of concurrency or network instability.. There is a repeated insertion.. Failed to intercept; not intercepted. Still entered curl
need to intercept before entering the curl request