Commit 64c7a548 authored by liqin's avatar liqin 💬

bug fixed

parent 8e2a6e54
......@@ -100,7 +100,7 @@ public class MyShiroRealm extends AuthorizingRealm {
throw new AuthenticationException("token invalid");
}
return new SimpleAuthenticationInfo(new Employee(token), token, getName());
return new SimpleAuthenticationInfo(new Employee(employee.getId(), token), token, getName());
}
/**
......
package cn.wisenergy.chnmuseum.party.model;
import java.util.Arrays;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
......@@ -12,6 +9,8 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
/**
* <p>
......@@ -33,6 +32,11 @@ public class Employee extends Model<Employee> {
this.jwtToken = jwtToken;
}
public Employee(String id, String jwtToken) {
this.id = id;
this.jwtToken = jwtToken;
}
@TableField(exist = false)
private String jwtToken;
/**
......
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