Pu Zhibing
2024-12-25 70ea508da8a26ea4d562000bc00dc6ba5e11cb3f
UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/UserCallbackController.java
@@ -176,7 +176,7 @@
        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("当前参与人数已满");
        }
@@ -249,13 +249,10 @@
            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("请输入手机号");
@@ -285,7 +282,7 @@
    })
    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();