From 60ab287cd2a8d3e5bebad71966e0fe71b27e7051 Mon Sep 17 00:00:00 2001 From: "kuang.yife" Date: Tue, 4 Jun 2024 09:21:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=BA=A6=E7=BA=BF=E7=B4=A2=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/system/clew/add.html | 2 +- .../src/main/resources/templates/system/clew/clew.html | 1 + .../com/ruoyi/system/service/impl/ClewServiceImpl.java | 10 +++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/clew/add.html b/ruoyi-admin/src/main/resources/templates/system/clew/add.html index 72b33051..9f609a69 100644 --- a/ruoyi-admin/src/main/resources/templates/system/clew/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/clew/add.html @@ -55,7 +55,7 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/clew/clew.html b/ruoyi-admin/src/main/resources/templates/system/clew/clew.html index 4540906f..17d07536 100644 --- a/ruoyi-admin/src/main/resources/templates/system/clew/clew.html +++ b/ruoyi-admin/src/main/resources/templates/system/clew/clew.html @@ -56,6 +56,7 @@ +
  • diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java index 0ec85860..b8f6f0a2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java @@ -2,6 +2,7 @@ package com.ruoyi.system.service.impl; import java.util.List; +import cn.hutool.core.util.ObjectUtil; import com.alibaba.fastjson.JSONObject; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.http.HttpUtils; @@ -12,6 +13,7 @@ import com.ruoyi.system.mapper.ClewMapper; import com.ruoyi.system.domain.Clew; import com.ruoyi.system.service.IClewService; import com.ruoyi.common.core.text.Convert; +import org.springframework.util.ObjectUtils; /** * 线索Service业务层处理 @@ -70,9 +72,11 @@ public class ClewServiceImpl implements IClewService }else { smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)"); } - log.info("请求傲众短信入参:{}", smsContent.toJSONString()); - String s = HttpUtils.sendPost("http://www.aozhongyun.com/Admin/index.php/Message/send", smsContent.toJSONString()); - log.info("请求傲众短信url:{}, 响应:{}", "http://www.aozhongyun.com/Admin/index.php/Message/send", s); + if(!ObjectUtil.equals(clew.getSourceApp(), 8L)){ + log.info("请求傲众短信入参:{}", smsContent.toJSONString()); + String s = HttpUtils.sendPost("http://www.aozhongyun.com/Admin/index.php/Message/send", smsContent.toJSONString()); + log.info("请求傲众短信url:{}, 响应:{}", "http://www.aozhongyun.com/Admin/index.php/Message/send", s); + } }catch (Exception e){ log.error("请求傲众短信url:{}, 报错:{}","http://www.aozhongyun.com/Admin/index.php/Message/send", e.getMessage()); }