fei.wang
10 天以前 e15f561a1f9eddfde503d59baf45a860b131928e
src/main/java/com/flow/quartz/MyJob2.java
@@ -47,8 +47,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.findDaoQi(GsMc);
            System.out.println(cardList);
            String cardNum = "";
@@ -72,7 +73,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]};
                QueryWrapper sms = new QueryWrapper();
                sms.eq("none", "0");
                sms.eq("smsreception", "1");
@@ -105,13 +106,14 @@
                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) {
                System.out.println(var15.toString());
            }
        }
        }
    }
}