fei.wang
2025-08-13 e15f561a1f9eddfde503d59baf45a860b131928e
src/main/java/com/flow/quartz/MyJob3.java
@@ -49,8 +49,9 @@
        for(int i = 0; i < companies.size(); ++i) {
            TimeUnit.SECONDS.sleep(10L);
            String GsMc = ((Company)companies.get(i)).getCompanyname();
            String GsPhone = DESUtil.decrypt(((Company)companies.get(i)).getPhone(), DESUtil.key);
            String GsPhone = DESUtil.decrypt(((Company)companies.get(i)).getLoginphone(), DESUtil.key);
            System.out.println(GsPhone);
            for (int p = 0;p < GsPhone.split("[,,]").length; p++) {
            List<Card> cardList = this.cardService.findDaoQi1(GsMc);
            String cardNum = "";
            if (cardList.size() == 0) {
@@ -73,7 +74,7 @@
                clientProfile.setHttpProfile(httpProfile);
                SmsClient client = new SmsClient(cred, "ap-beijing", clientProfile);
                SendSmsRequest req = new SendSmsRequest();
                String[] phoneNumberSet1 = new String[]{GsPhone};
                    String[] phoneNumberSet1 = new String[]{GsPhone.split("[,,]")[p]};
                req.setPhoneNumberSet(phoneNumberSet1);
                QueryWrapper sms = new QueryWrapper();
                sms.eq("none", "0");
@@ -106,7 +107,7 @@
                Duanxinlog duanxinlog = new Duanxinlog();
                duanxinlog.setIdentification(cardList.get(i).getCardnumber());
                duanxinlog.setReceiver(cardList.get(i).getCompany());
                duanxinlog.setNumber(GsPhone);
                    duanxinlog.setNumber(GsPhone.split("[,,]")[p]);
//                duanxinlog.setContent("尊敬的用户,您好!您有服务器将于"+cardList.get(i).getEnddate()+"到期,为避免影响您的正常使用请及时续费,您可登录华星智控公司物联网管理平台查询详情续费,如有疑问可咨询我公司客服人员,祝您生活愉快!");
                this.duanxinlogService.addDuanxinlog(duanxinlog);
            } catch (TencentCloudSDKException var15) {
@@ -115,4 +116,6 @@
        }
    }
    }
}