|
@@ -9,7 +9,6 @@ import cn.hutool.crypto.SecureUtil;
|
|
import com.txz.cif.constants.RedisConstants;
|
|
import com.txz.cif.constants.RedisConstants;
|
|
import com.txz.cif.core.*;
|
|
import com.txz.cif.core.*;
|
|
import com.txz.cif.dubbo.client.OperatingConfigDubboServiceClient;
|
|
import com.txz.cif.dubbo.client.OperatingConfigDubboServiceClient;
|
|
-import com.txz.cif.enums.MessageBizTypeEnum;
|
|
|
|
import com.txz.cif.model.*;
|
|
import com.txz.cif.model.*;
|
|
import com.txz.cif.dao.UserMapper;
|
|
import com.txz.cif.dao.UserMapper;
|
|
import com.txz.cif.service.*;
|
|
import com.txz.cif.service.*;
|
|
@@ -235,20 +234,5 @@ public class UserServiceImpl extends AbstractService<User> implements UserServic
|
|
// return false;
|
|
// return false;
|
|
// }
|
|
// }
|
|
|
|
|
|
- private boolean checkSend(Integer bizType, Integer message, int type) {
|
|
|
|
- boolean isSend = false;
|
|
|
|
- if (MessageBizTypeEnum.getControlByKey(bizType,type) == 0){
|
|
|
|
- //do nothing
|
|
|
|
- } else if (MessageBizTypeEnum.getControlByKey(bizType,type) == 1){
|
|
|
|
- //强制发送消息
|
|
|
|
- isSend = true;
|
|
|
|
- } else if (MessageBizTypeEnum.getControlByKey(bizType,type) == 2){
|
|
|
|
- //用户设置 接收消息
|
|
|
|
- if (message == 1){
|
|
|
|
- isSend = true;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return isSend;
|
|
|
|
- }
|
|
|
|
|
|
|
|
}
|
|
}
|