Commit cb3abf3a authored by 赵啸非's avatar 赵啸非

添加更新默认用户角色

parent 364c35b6
...@@ -150,7 +150,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer ...@@ -150,7 +150,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
data.put("userType", userEntity.getUserType()); data.put("userType", userEntity.getUserType());
userEntity.setLoginTime(System.currentTimeMillis()); userEntity.setLoginTime(System.currentTimeMillis());
userEntity.setToken(IdUtil.fastSimpleUUID()); userEntity.setToken(IdUtil.fastSimpleUUID());
userEntity.setExpireTime(DateUtils.addCurrDate(1).getTime()); userEntity.setExpireTime(DateUtils.addCurrDate(3).getTime());
String token = authTokenService.createToken(userEntity); String token = authTokenService.createToken(userEntity);
data.put("token", token); data.put("token", token);
ret.put(KEY_RESULT_DATA, data); ret.put(KEY_RESULT_DATA, data);
......
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