夏文涛 11 месяцев назад
Родитель
Сommit
b58dd3bce6

+ 3 - 0
src/main/java/com/template/controller/WelcomeStudentController.java

@@ -1785,6 +1785,9 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
         if(student.getIsPay() == null){
             student.setIsPay(0);
         }
+        long expired = 1000 * 60 * 60 * 24 * 365;
+        TokenDateVo token = JWTUtil.getToken(student.getCardId(), student.getId(), expired);
+        student.setToken(token.getToken());
         return CommonResult.ok(student);
     }