百度线索新增设置
This commit is contained in:
parent
c661c14985
commit
60ab287cd2
|
|
@ -55,7 +55,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">App来源:</label>
|
<label class="col-sm-3 control-label">App来源:</label>
|
||||||
<div class="col-sm-8">
|
<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>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option value="1">黑猫搞定逾期</option>
|
<option value="1">黑猫搞定逾期</option>
|
||||||
<option value="2">大象债务处理</option>
|
<option value="2">大象债务处理</option>
|
||||||
|
<option value="8">百度来源</option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="select-time">
|
<li class="select-time">
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.ruoyi.system.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.ruoyi.common.utils.http.HttpUtils;
|
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.domain.Clew;
|
||||||
import com.ruoyi.system.service.IClewService;
|
import com.ruoyi.system.service.IClewService;
|
||||||
import com.ruoyi.common.core.text.Convert;
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
import org.springframework.util.ObjectUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 线索Service业务层处理
|
* 线索Service业务层处理
|
||||||
|
|
@ -70,9 +72,11 @@ public class ClewServiceImpl implements IClewService
|
||||||
}else {
|
}else {
|
||||||
smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)");
|
smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)");
|
||||||
}
|
}
|
||||||
log.info("请求傲众短信入参:{}", smsContent.toJSONString());
|
if(!ObjectUtil.equals(clew.getSourceApp(), 8L)){
|
||||||
String s = HttpUtils.sendPost("http://www.aozhongyun.com/Admin/index.php/Message/send", smsContent.toJSONString());
|
log.info("请求傲众短信入参:{}", smsContent.toJSONString());
|
||||||
log.info("请求傲众短信url:{}, 响应:{}", "http://www.aozhongyun.com/Admin/index.php/Message/send", s);
|
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){
|
}catch (Exception e){
|
||||||
log.error("请求傲众短信url:{}, 报错:{}","http://www.aozhongyun.com/Admin/index.php/Message/send", e.getMessage());
|
log.error("请求傲众短信url:{}, 报错:{}","http://www.aozhongyun.com/Admin/index.php/Message/send", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue