1:添加快速点击出现的打开多次
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.xscm.moduleutil.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*@author qx
|
||||
*@data 2025/9/10
|
||||
*@description: 魅力详情列表
|
||||
*/
|
||||
@Data
|
||||
public class RoomUserCharmListBean {
|
||||
private int user_id;
|
||||
private String total_price;
|
||||
private String nickname;
|
||||
private String avatar;
|
||||
private String user_code;
|
||||
private int charm;
|
||||
private List<String> icon ;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.xscm.moduleutil.utils;
|
||||
/**
|
||||
*@author qx
|
||||
*@data 2025/9/10
|
||||
*@description: 防止重复点击的工具类
|
||||
*/
|
||||
public class ClickUtils {
|
||||
private static final long CLICK_INTERVAL = 500; // 500ms内不允许重复点击
|
||||
private static long lastClickTime = 0;
|
||||
|
||||
public static boolean isFastDoubleClick() {
|
||||
long currentTime = System.currentTimeMillis();
|
||||
if (currentTime - lastClickTime < CLICK_INTERVAL) {
|
||||
return true;
|
||||
}
|
||||
lastClickTime = currentTime;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user