|
|
@@ -407,7 +407,7 @@ public class InviteCodeServiceImpl implements InviteCodeService {
|
|
|
// 校验手机号是否为空
|
|
|
if (inviteCode.getOnlyPhone() == null || inviteCode.getOnlyPhone().isEmpty()) {
|
|
|
// 手机号为空,不发送短信
|
|
|
- inviteCode.setNotifyStatus("2");
|
|
|
+ inviteCode.setNotifyStatus("20");
|
|
|
inviteCode.setNotifyTime(LocalDateTime.now());
|
|
|
inviteCodeMapper.updateById(inviteCode);
|
|
|
return;
|
|
|
@@ -423,7 +423,7 @@ public class InviteCodeServiceImpl implements InviteCodeService {
|
|
|
Long smsLogId = smsSendService.sendSingleSmsToAdmin(inviteCode.getOnlyPhone(), null, ALY_MEMBER_PUSH_INVITATION_CODE.getTemplateCode(), templateParams);
|
|
|
if (smsLogId == null) {
|
|
|
// 更新通知状态为失败
|
|
|
- inviteCode.setNotifyStatus("2");
|
|
|
+ inviteCode.setNotifyStatus("20");
|
|
|
inviteCode.setNotifyTime(LocalDateTime.now());
|
|
|
return;
|
|
|
}
|
|
|
@@ -431,17 +431,17 @@ public class InviteCodeServiceImpl implements InviteCodeService {
|
|
|
SmsLogDO smsLog = smsLogService.getSmsLogById(smsLogId);
|
|
|
if (smsLog == null) {
|
|
|
// 更新通知状态为失败
|
|
|
- inviteCode.setNotifyStatus("2");
|
|
|
+ inviteCode.setNotifyStatus("20");
|
|
|
inviteCode.setNotifyTime(LocalDateTime.now());
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// 更新通知状态为成功
|
|
|
- inviteCode.setNotifyStatus(String.valueOf(smsLog.getSendStatus()));
|
|
|
+ inviteCode.setNotifyStatus("10");
|
|
|
inviteCode.setNotifyTime(smsLog.getSendTime());
|
|
|
} catch (Exception e) {
|
|
|
// 更新通知状态为失败
|
|
|
- inviteCode.setNotifyStatus("2");
|
|
|
+ inviteCode.setNotifyStatus("20");
|
|
|
inviteCode.setNotifyTime(LocalDateTime.now());
|
|
|
} finally {
|
|
|
// 更新邀请码记录
|