| | |
| | | if (!planFollService.insert(planFoll)) { |
| | | throw new CoolException("保持失败,请重试"); |
| | | } |
| | | |
| | | if (!smsCodeService.sendSmsCodeText(planLeader.getMobile(), PhoneCodeTypeParam.ALIYUN_M1ABAC630E)) { |
| | | if (users.size()>1 && !users.get(1).getId().equals(getUserId())){ |
| | | if (!smsCodeService.sendSmsCodeText(users.get(1).getMobile(), PhoneCodeTypeParam.ALIYUN_M1ABAC630E,getUserId())) { |
| | | return R.ok("创建成功但短信发送失败!"); |
| | | } |
| | | |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | if (!planService.updateById(hostPlan)) { |
| | | throw new CoolException("更新失败,请重试"); |
| | | } |
| | | if (!smsCodeService.sendSmsCodeText(planLeader.getMobile(), PhoneCodeTypeParam.ALIYUN_M1ABAC630E)) { |
| | | if (!smsCodeService.sendSmsCodeText(planLeader.getMobile(), PhoneCodeTypeParam.ALIYUN_M1ABAC630E,getUserId())) { |
| | | return R.ok("创建成功但短信发送失败!"); |
| | | } |
| | | return R.ok("保存成功"); |
| | |
| | | } |
| | | if (!plan.getSettle().equals(plan.getSettleSize())){ |
| | | if (!Cools.isEmpty(plannerId) && nextUserId.equals(plannerId)){ |
| | | if (!smsCodeService.sendSmsCodeText(plannerUser.getMobile(), PhoneCodeTypeParam.ALIYUN_M6F3C81FE3)) { |
| | | if (!smsCodeService.sendSmsCodeText(plannerUser.getMobile(), PhoneCodeTypeParam.ALIYUN_M6F3C81FE3,getUserId())) { |
| | | return R.ok("审核成功但短信发送失败!"); |
| | | } |
| | | }else { |
| | | User phoneUser = userService.selectById(nextUserId); |
| | | if (!smsCodeService.sendSmsCodeText(phoneUser.getMobile(), PhoneCodeTypeParam.ALIYUN_M1ABAC630E)) { |
| | | if (!smsCodeService.sendSmsCodeText(phoneUser.getMobile(), PhoneCodeTypeParam.ALIYUN_M1ABAC630E,getUserId())) { |
| | | return R.ok("审核成功但短信发送失败!"); |
| | | } |
| | | } |