| | |
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.entity.system.ConfigKeyEnum;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.monitor.BusinessEmergent110Service;
|
| | | import com.yeshi.fanli.util.EmergencyUtil;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | | @Service
|
| | | public class BusinessEmergent110ServiceImpl implements BusinessEmergent110Service {
|
| | |
|
| | | String[] phones = new String[] { "18581318252", "15025351808", "18696787365" };
|
| | | String[] phones = new String[] { "18581318252", "15025351808" };
|
| | |
|
| | | private static Map<String, List<String>> map = new HashMap<>();
|
| | | private static long shareTime = 0L;
|
| | |
| | | if (!exist)
|
| | | stList.add(identifyCode);
|
| | | if (stList.size() >= limitCount) {// 触发报警
|
| | | if ("1".equalsIgnoreCase(configService.get("can_send_emergency_msg")))
|
| | | EmergencyUtil.baoJin(key, "返利券【分享赚】", phones);
|
| | | if ("1".equalsIgnoreCase(configService.get(ConfigKeyEnum.canSendEmergencyMsg.getKey())))
|
| | | EmergencyUtil.baoJin(key, "板栗快省【分享赚】", phones);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | if (!exist)
|
| | | stList.add(identifyCode);
|
| | | if (stList.size() >= limitCount) {// 触发报警
|
| | | if ("1".equalsIgnoreCase(configService.get("can_send_emergency_msg")))
|
| | | EmergencyUtil.baoJin(key, "返利券【领券返利】", phones);
|
| | | if ("1".equalsIgnoreCase(configService.get(ConfigKeyEnum.canSendEmergencyMsg.getKey())))
|
| | | EmergencyUtil.baoJin(key, "板栗快省【领券返利】", phones);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | if (!exist)
|
| | | stList.add(identifyCode);
|
| | | if (stList.size() >= limitCount) {// 触发报警
|
| | | if ("1".equalsIgnoreCase(configService.get("can_send_emergency_msg")))
|
| | | if ("1".equalsIgnoreCase(configService.get(ConfigKeyEnum.canSendEmergencyMsg.getKey())))
|
| | | EmergencyUtil.baoJin(key, "淘宝APPKey请求限制【" + appKey + "】", phones);
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void tljNoMoney(String account) {
|
| | | String key = "monitor-error-tlj-no-money-" + StringUtil.Md5(account);
|
| | | EmergencyUtil.baoJin(key, String.format("淘礼金账户余额不足【账号:%s】", account), phones);
|
| | | }
|
| | |
|
| | | }
|