百度线索新增设置
This commit is contained in:
parent
c661c14985
commit
60ab287cd2
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue