百度线索新增设置

This commit is contained in:
kuang.yife 2024-06-04 09:21:20 +08:00
parent c661c14985
commit 60ab287cd2
3 changed files with 9 additions and 4 deletions

View File

@ -55,7 +55,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">App来源</label>
<div class="col-sm-8">
<input name="sourceApp" class="form-control" value="01" type="text" readonly>
<input name="sourceApp" class="form-control" value="8" type="text" readonly>
</div>
</div>
<div class="form-group">

View File

@ -56,6 +56,7 @@
<option value="">所有</option>
<option value="1">黑猫搞定逾期</option>
<option value="2">大象债务处理</option>
<option value="8">百度来源</option>
</select>
</li>
<li class="select-time">

View File

@ -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());
}