Commit e2a89fa2 authored by 霍传世's avatar 霍传世

HaiNaAi测试小程序

parent edcc7432
......@@ -26,7 +26,7 @@ public class LoginController {
@PostMapping
public ResponseEntity LoginGo(@RequestBody ExamStudent examStudent){
if(examStudent.getZkzNum().equals("9053464144")&&examStudent.getIdCard().equals("039519938378128944")){
if((examStudent.getZkzNum().equals("111")&&examStudent.getIdCard().equals("111"))||(examStudent.getZkzNum().equals("222")&&examStudent.getIdCard().equals("222"))||(examStudent.getZkzNum().equals("333")&&examStudent.getIdCard().equals("333"))){
redisTemplate.opsForValue().set("51096606163",new JSONObject(examStudent).toString(),2*60*60, TimeUnit.SECONDS);
JSONObject jsonObject = new JSONObject();
jsonObject.put("Token","51096606163");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment