加ip
This commit is contained in:
+5
-1
@@ -165,6 +165,7 @@ public class SaleLeadsController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
saleLeads = converValue(saleLeads);
|
saleLeads = converValue(saleLeads);
|
||||||
String body =
|
String body =
|
||||||
"业务需求:" + saleLeads.getBusiness() + " " + saleLeads.getOtherBusiness() + "\n\n"
|
"业务需求:" + saleLeads.getBusiness() + " " + saleLeads.getOtherBusiness() + "\n\n"
|
||||||
@@ -363,12 +364,15 @@ public class SaleLeadsController {
|
|||||||
if (saleLeads.getId()!=null) {
|
if (saleLeads.getId()!=null) {
|
||||||
saleLeads.setId(null);
|
saleLeads.setId(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String ip = AnalyticsUtil.getIpAddress(req);
|
||||||
saleLeads = converValue(saleLeads);
|
saleLeads = converValue(saleLeads);
|
||||||
String body =
|
String body =
|
||||||
"业务需求:" + saleLeads.getBusiness() + "\n\n"
|
"业务需求:" + saleLeads.getBusiness() + "\n\n"
|
||||||
+ "姓名:" + saleLeads.getUname() + "\n\n"
|
+ "姓名:" + saleLeads.getUname() + "\n\n"
|
||||||
+ "手机:" + saleLeads.getMobile() + "\n\n"
|
+ "手机:" + saleLeads.getMobile() + "\n\n"
|
||||||
+ "咨询内容:" + saleLeads.getRemarks()+ "\n\n" ;
|
+ "咨询内容:" + saleLeads.getRemarks()+ "\n\n"
|
||||||
|
+ "IP:" + ip+ "\n\n" ;
|
||||||
body = body.replaceAll("null", "").replaceAll("其他,请填写", "");
|
body = body.replaceAll("null", "").replaceAll("其他,请填写", "");
|
||||||
if (StringUtils.isNotBlank(refUrl) && refUrl.contains("bd_vid")) {
|
if (StringUtils.isNotBlank(refUrl) && refUrl.contains("bd_vid")) {
|
||||||
body += "线索来源:百度";
|
body += "线索来源:百度";
|
||||||
|
|||||||
Reference in New Issue
Block a user