mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-14 14:13:42 +08:00
ip优化
This commit is contained in:
@@ -16,7 +16,6 @@ import java.util.Optional;
|
||||
* @since 2023-03-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class IpInfo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -53,10 +52,10 @@ public class IpInfo implements Serializable {
|
||||
}
|
||||
|
||||
public void refreshIpDetail(IpDetail ipDetail) {
|
||||
if (Objects.equals(createIp, ipDetail)) {
|
||||
if (Objects.equals(createIp, ipDetail.getIp())) {
|
||||
createIpDetail = ipDetail;
|
||||
}
|
||||
if (Objects.equals(updateIp, ipDetail)) {
|
||||
if (Objects.equals(updateIp, ipDetail.getIp())) {
|
||||
updateIpDetail = ipDetail;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import lombok.experimental.Accessors;
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("user")
|
||||
@TableName(value = "user", autoResultMap = true)
|
||||
public class User implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
Reference in New Issue
Block a user