Comments (8)
http://localhost:27000/seckill/execution/1000/12345678912/c2097fe5d7ddf03207e4c3126b3d57b8
我试了一下这个也不行
from jseckill.
- 回答问题1
原因是手机号被js存入浏览器端端cookie中了。在seckill.js的131行左右
//电话写入cookie $.cookie('killPhone', inputPhone, {expires: 7, path: '/seckill'});
- 回答问题2
压力测试,推荐用jmeter进行压力测试
from jseckill.
谢谢大佬,我去试试
from jseckill.
大佬,又来打扰你了,我现在还在尝试Jmeter测试,但是传参中还是有问题,例如
http://localhost:27000/seckill/detail/1000?phone=12312312312
这么传不行,那这个phone应该怎么传啊,是只把他作为cookie传吗,cookie的话应该都传什么值呢
from jseckill.
from jseckill.
这个路径只能是排队中,怎么能让他进行秒杀活动呢
from jseckill.
http://localhost:27000/seckill/execution/1000/12345678912/c2097fe5d7ddf03207e4c3126b3d57b8
这里的md5值,应该取浏览器里cookie里保存的那个值, 而不是自己随便写的一个值。
cookie在浏览器F12的有的请求里,可以找的的。
from jseckill.
http://localhost:27000/seckill/execution/1000/12345678912/c2097fe5d7ddf03207e4c3126b3d57b8
这个格式是对的。
http://localhost:27000/seckill/detail/1000?phone=12312312312这种url是错的。
from jseckill.
Related Issues (18)
- ACK队列在项目中作用 HOT 1
- demo HOT 1
- 请问为什么updateInventory没有函数调用他 HOT 1
- 关于mysql读写分离
- RabbitMQ问题
- 请问一下,库存存入redis的代码是那部分呢
- 请删除无效字符
- rabbitmq的生产和消费是只用了一个队列吗? HOT 9
- 是否存在情况当未在指定时间段内收到ACK返回,但Redis却被处理的情况(handleInRedis方法正常执行),导致redis库存数-1的情况 HOT 3
- 如果半小时不付款,后续代码是监听redis的key实现,还是用zookeeper
- 先插入秒杀记录再减库存 updateInventory 方法 HOT 4
- 秒杀成功后,Redis中库存会更新,但数据库中没有记录,库存也未更新。
- 最新的小程序约苗有个加签的参数,请问一下你原来是怎么知道md5的盐值呢?
- 项目 jseckill.appjishu.com 被劫持,打开是黄色链接
- 这一行代码不多余吗?
- 如果希望采用多个服务器进行消息的消费,是不是在操作redis减库存的时候加分布式锁呢? HOT 2
- 客户端轮询秒杀是否成功,换成websocket是否更好
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jseckill.