コード例 #1
0
 /*    */ @Transactional(
     rollbackFor = {Exception.class},
     propagation = Propagation.REQUIRED)
 /*    */ public void sendSMS(String phoneNumber, String content) /*    */ {
   /* 73 */ SmsMT smsMT = new SmsMT();
   /* 74 */ smsMT.setContent(content);
   /* 75 */ smsMT.setMobile(phoneNumber);
   /* 76 */ this.smsMapper.createSmsMT(smsMT);
   /* 77 */ this.smsMapper.createSmsMTBuffer(smsMT);
   /*    */ }
コード例 #2
0
 /*    */ public String createAuthcode(String phoneNumber) /*    */ {
   /* 39 */ String authcodeStr = AuthcodeGen.genPassword(6, 0);
   /* 40 */ Authcode authcode = new Authcode();
   /* 41 */ authcode.setPhoneNumber(phoneNumber);
   /* 42 */ authcode.setAuthcodeStr(authcodeStr);
   /* 43 */ this.authcodeMapper.createAuthcode(authcode);
   /*    */
   /* 45 */ SmsMT smsMT = new SmsMT();
   /* 46 */ smsMT.setContent(
       authcodeStr + "(微管家验证码,请勿泄露),需要你进行身份校验。如非本人操作,请致电0571-86999823【微管家一卡通】");
   /* 47 */ smsMT.setMobile(phoneNumber);
   /* 48 */ this.smsMapper.createSmsMT(smsMT);
   /* 49 */ this.smsMapper.createSmsMTBuffer(smsMT);
   /* 50 */ return authcodeStr;
   /*    */ }