高并发下的乐观锁

一人一单的悲观锁
This commit is contained in:
fang 2025-03-20 20:48:09 +08:00
parent 12e6c4e1b7
commit 7722dd11b9
9 changed files with 170 additions and 5 deletions

View File

@ -14853,3 +14853,105 @@
127.0.0.1 - - [06/Mar/2025:14:42:25 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0"
127.0.0.1 - - [06/Mar/2025:14:42:25 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0"
127.0.0.1 - - [06/Mar/2025:14:42:25 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:25 +0800] "GET /user.html HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:25 +0800] "GET /favicon.ico HTTP/1.1" 200 6343 "http://localhost:8080/user.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:28 +0800] "GET /user.html HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET / HTTP/1.1" 200 5238 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /css/element.css HTTP/1.1" 200 235010 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /css/index.css HTTP/1.1" 200 1646 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /css/main.css HTTP/1.1" 200 992 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /js/vue.js HTTP/1.1" 200 375291 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /js/axios.min.js HTTP/1.1" 200 12953 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /js/common.js HTTP/1.1" 200 2724 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /js/footer.js HTTP/1.1" 200 1333 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /js/element.js HTTP/1.1" 200 575076 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /css/fonts/element-icons.woff HTTP/1.1" 200 28200 "http://localhost:8080/css/element.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:34 +0800] "GET /imgs/add.png HTTP/1.1" 200 27092 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:36 +0800] "GET /api/shop-type/list HTTP/1.1" 499 0 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:36 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 499 0 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:40 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:43 +0800] "GET /info.html HTTP/1.1" 200 8490 "http://localhost:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:43 +0800] "GET /css/info.css HTTP/1.1" 200 4242 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:43 +0800] "GET /imgs/thumbup.png HTTP/1.1" 200 749 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:44 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:44 +0800] "GET /imgs/icons/default-icon.png HTTP/1.1" 200 18889 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:46 +0800] "GET /api/user/me HTTP/1.1" 499 0 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:46 +0800] "GET /login.html HTTP/1.1" 200 4161 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:46 +0800] "GET /css/login.css HTTP/1.1" 200 1285 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:46 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:41:52 +0800] "POST /api/user/code?phone=12312365443 HTTP/1.1" 499 0 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:42:35 +0800] "GET /login.html HTTP/1.1" 304 0 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:42:36 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:42:46 +0800] "GET /login.html HTTP/1.1" 304 0 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:42:46 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:44:27 +0800] "POST /api/user/code?phone=15226954587 HTTP/1.1" 499 0 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:26 +0800] "POST /api/user/code?phone=13686869696 HTTP/1.1" 200 27 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "POST /api/user/login HTTP/1.1" 200 69 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /index.html HTTP/1.1" 200 5238 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/ms.png HTTP/1.1" 200 2780 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/spa.png HTTP/1.1" 200 3139 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/qzyl.png HTTP/1.1" 200 3780 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/jiuba.png HTTP/1.1" 200 2774 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/KTV.png HTTP/1.1" 200 2225 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/lrmf.png HTTP/1.1" 200 4543 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/mjmj.png HTTP/1.1" 200 2452 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/amzl.png HTTP/1.1" 200 2931 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/hpg.png HTTP/1.1" 200 3211 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs//types/jsyd.png HTTP/1.1" 200 2174 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs/blogs/7/14/4771fefb-1a87-4252-816c-9f7ec41ffa4a.jpg HTTP/1.1" 200 151964 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs/icons/kkjtbcr.jpg HTTP/1.1" 200 8030 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs/blogs/4/7/863cc302-d150-420d-a596-b16e9232a1a6.jpg HTTP/1.1" 200 260010 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:37 +0800] "GET /imgs/blogs/blog1.jpg HTTP/1.1" 200 65123 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:47 +0800] "GET /shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F HTTP/1.1" 200 5071 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:47 +0800] "GET /css/shop-list.css HTTP/1.1" 200 1830 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:47 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:47 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:47 +0800] "GET /api/shop/of/type?&typeId=1&current=1&x=120.149993&y=30.334229 HTTP/1.1" 200 3197 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:48 +0800] "GET /shop-detail.html?id=1 HTTP/1.1" 200 8700 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:49 +0800] "GET /css/shop-detail.css HTTP/1.1" 200 5478 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:49 +0800] "GET /imgs/bd.png HTTP/1.1" 200 11247 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:49 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:49 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 530 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:45:49 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:19:46:55 +0800] "POST /api/voucher-order/seckill/10 HTTP/1.1" 200 57 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:07 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:08 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:09 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:09 +0800] "GET /api/user/me HTTP/1.1" 401 0 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:09 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:11 +0800] "POST /api/user/code?phone=13686869696 HTTP/1.1" 200 27 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:40 +0800] "POST /api/user/login HTTP/1.1" 499 0 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:51 +0800] "POST /api/user/login HTTP/1.1" 200 69 "http://localhost:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:52 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:52 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://localhost:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:22:52 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:45 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:45 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:45 +0800] "GET /api/shop/of/type?&typeId=1&current=1&x=120.149993&y=30.334229 HTTP/1.1" 200 3197 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:46 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:46 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 530 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:47 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:23:48 +0800] "POST /api/voucher-order/seckill/10 HTTP/1.1" 200 53 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:49 +0800] "GET /shop-detail.html?id=1 HTTP/1.1" 304 0 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:49 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:51 +0800] "GET /api/shop/1 HTTP/1.1" 499 0 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:51 +0800] "GET /api/voucher/list/1 HTTP/1.1" 499 0 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:52 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:53 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:54 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:54 +0800] "GET /api/user/me HTTP/1.1" 200 100 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:54 +0800] "GET /api/user/info/1 HTTP/1.1" 200 27 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:54 +0800] "GET /api/blog/of/me HTTP/1.1" 200 673 "http://localhost:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:56 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://localhost:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:56 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:56 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://localhost:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:57 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:57 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:57 +0800] "GET /api/shop/of/type?&typeId=1&current=1&x=120.149993&y=30.334229 HTTP/1.1" 200 3197 "http://localhost:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:58 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:58 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:24:58 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 530 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"
127.0.0.1 - - [19/Mar/2025:20:25:00 +0800] "POST /api/voucher-order/seckill/10 HTTP/1.1" 200 53 "http://localhost:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/134.0.0.0"

View File

@ -2831,3 +2831,27 @@
2025/03/06 14:42:15 [error] 10720#23156: *80 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080"
2025/03/06 14:42:22 [error] 10720#23156: *73 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080"
2025/03/06 14:42:25 [error] 10720#23156: *77 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080"
2025/03/19 19:41:25 [error] 13588#22156: *1 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/user.html" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /user.html HTTP/1.1", host: "localhost:8080"
2025/03/19 19:41:28 [error] 13588#22156: *1 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/user.html" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /user.html HTTP/1.1", host: "localhost:8080"
2025/03/19 19:41:40 [error] 13588#22156: *3 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:41:44 [error] 13588#22156: *6 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:41:46 [error] 13588#22156: *3 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:42:36 [error] 13588#22156: *11 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:42:46 [error] 13588#22156: *11 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:45:37 [error] 13588#22156: *20 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:45:47 [error] 13588#22156: *27 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 19:45:49 [error] 13588#22156: *27 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:22:07 [error] 13588#22156: *36 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:22:08 [error] 13588#22156: *36 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:22:09 [error] 13588#22156: *36 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:22:09 [error] 13588#22156: *36 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:22:52 [error] 13588#22156: *43 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:23:45 [error] 13588#22156: *48 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:23:46 [error] 13588#22156: *48 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:49 [error] 13588#22156: *48 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:52 [error] 13588#22156: *57 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:53 [error] 13588#22156: *57 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:54 [error] 13588#22156: *57 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:56 [error] 13588#22156: *58 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:57 [error] 13588#22156: *64 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"
2025/03/19 20:24:58 [error] 13588#22156: *64 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "localhost:8080"

View File

@ -1 +1 @@
45680
8816

View File

@ -57,6 +57,12 @@
<artifactId>hutool-all</artifactId>
<version>5.7.17</version>
</dependency>
<!--代理对象-->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.7</version>
</dependency>
</dependencies>
<build>

View File

@ -3,7 +3,10 @@ package com.hmdp;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
// 让对象代理生效
@EnableAspectJAutoProxy(exposeProxy = true)
@MapperScan("com.hmdp.mapper")
@SpringBootApplication
public class HmDianPingApplication {

View File

@ -26,6 +26,7 @@ public class VoucherOrderController {
@PostMapping("seckill/{id}")
public Result seckillVoucher(@PathVariable("id") Long voucherId) {
// System.out.println(voucherId);
return voucherOrderService.seckillVoucher(voucherId);
}
}

View File

@ -15,4 +15,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
public interface IVoucherOrderService extends IService<VoucherOrder> {
Result seckillVoucher(Long voucherId);
Result creatVoucheOrder(Long voucherId);
}

View File

@ -17,4 +17,5 @@ public interface IVoucherService extends IService<Voucher> {
Result queryVoucherOfShop(Long shopId);
void addSeckillVoucher(Voucher voucher);
}

View File

@ -12,8 +12,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmdp.service.IVoucherService;
import com.hmdp.utils.RedisIdWorker;
import com.hmdp.utils.UserHolder;
import org.springframework.aop.framework.AopContext;
import org.springframework.aop.framework.AopProxy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
@ -33,6 +36,7 @@ public class VoucherOrderServiceImpl extends ServiceImpl<VoucherOrderMapper, Vou
private RedisIdWorker redisIdWorker;
@Override
public Result seckillVoucher(Long voucherId) {
// 根据vorcherId查询优惠券
SeckillVoucher seckillVoucher = iSeckillVoucherService.getById(voucherId);
// 判断秒杀功能是否已经开始或结束
@ -45,20 +49,42 @@ public class VoucherOrderServiceImpl extends ServiceImpl<VoucherOrderMapper, Vou
if(seckillVoucher.getStock()<1){
return Result.fail("库存不足");
}
// 扣减库存
boolean succed = iSeckillVoucherService.update().setSql("stock = stock-1").eq("voucher_id",voucherId).update();
Long userID = UserHolder.getUser().getId();
synchronized(userID.toString().intern()) {
// 获取代理对象才能让事务生效
IVoucherOrderService proxy = (IVoucherOrderService) AopContext.currentProxy();
return proxy.creatVoucheOrder(voucherId);
}
}
@Transactional
public Result creatVoucheOrder(Long voucherId) {
Long userID = UserHolder.getUser().getId();
// 判断当前用户是否已经抢过订单了
Integer count = query().eq("user_id", userID).eq("voucher_id", voucherId).count();
if(count>0){
return Result.fail("您已经抢过该优惠券了");
}
// 扣减库存,乐观锁CAS法
// boolean succed = iSeckillVoucherService.update().setSql("stock = stock-1").
// eq("voucher_id",voucherId).eq("stock",seckillVoucher.getStock()).update(); 这种情况会导致即使有很多余额也会说库存不足
boolean succed = iSeckillVoucherService.update().setSql("stock = stock-1").
eq("voucher_id",voucherId).gt("stock",0).update();
if(!succed){
return Result.fail("失败");
System.out.println("失败");
return Result.fail("库存不足");
}
// 创建一个新的voucherOrder订单
VoucherOrder voucherOrder = new VoucherOrder();
long orderId = redisIdWorker.nextId("order");
voucherOrder.setId(orderId);
Long userID = UserHolder.getUser().getId();
voucherOrder.setUserId(userID);
voucherOrder.setVoucherId(voucherId);
save(voucherOrder);
// 返回订单id
return Result.ok(orderId);
}
}