| | |
| | | SysCouponRecord sysCouponRecord = sysCouponRecordService.selectById(tActivityGeneralization.getCouponId()); |
| | | |
| | | int i1 = userCouponRecordService.selectCount(new EntityWrapper<UserCouponRecord>().eq("activityType", 5).eq("couponActivityId", acId).groupBy("userId")); |
| | | if (tActivityGeneralization.getParticipateCount()<=i1){ |
| | | if (null != tActivityGeneralization.getParticipateCount() && tActivityGeneralization.getParticipateCount()<=i1){ |
| | | return ResultUtil.error("当前参与人数已满"); |
| | | } |
| | | |
| | |
| | | String json = JSONObject.toJSONString(aliSms); |
| | | try { |
| | | redisUtil.setStrValue("code:"+phone, code,15 * 60 * 1000); |
| | | aLiSendSms.sendSms(phone, "SMS_467580138", json); |
| | | |
| | | SmsUtil.sendZTHYSms(phone, "您的验证码是:" + code + ",请勿将验证码透露给他人!"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | // msgUtils.sendMsg(dto.getPhone(), code); |
| | | return ResultUtil.success("发送短信验证码成功!"); |
| | | } |
| | | return ResultUtil.error("请输入手机号"); |
| | |
| | | }) |
| | | public ResultUtil toWe(){ |
| | | try { |
| | | String urlLink = weChatUtil.getUrlLink(null, null); |
| | | String urlLink = weChatUtil.getUrlLink("pages/home/home", null); |
| | | return ResultUtil.success(urlLink); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |