84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1 . 框架 spring , jpa 2 . 我现在用有一个功能是app注册,我发送一个短信到手机 ,然后注册哪里进行比较验证,假设发送手机验证码的方法是 getsms() ,比较的方法是 checksms() ,如果同时10个人注册,getsms()方法调用10次,发送10条验证码, 也就是我有10个验证 , 那么checksms()怎么知道那个验证码是谁的 ?
业精于勤,荒于嬉;行成于思,毁于随。
After generating the verification code, save the mobile phone number and verification code at the same time, and then you can judge.
When sending, it is based on the mobile phone number. When verifying, you must also verify the current mobile phone number
You can calculate a verification code based on your mobile phone number, so you don’t need to save it in the database.
After generating the verification code, save the mobile phone number and verification code at the same time, and then you can judge.
When sending, it is based on the mobile phone number. When verifying, you must also verify the current mobile phone number
You can calculate a verification code based on your mobile phone number, so you don’t need to save it in the database.