|
@@ -73,11 +73,13 @@ public class RemoteCallServiceImpl implements RemoteCallService {
|
|
|
try {
|
|
|
//测试环境手机号允许发短信
|
|
|
List<String> list = new ArrayList<>();
|
|
|
- list.add("15917362709");
|
|
|
+ /*list.add("15917362709");
|
|
|
list.add("15814011616");
|
|
|
list.add("13100721916");
|
|
|
list.add("15113936829");
|
|
|
- list.add("18175515644");
|
|
|
+ list.add("18175515644");*/
|
|
|
+ list.add("18670511721");
|
|
|
+ list.add("17798247695");
|
|
|
if ("prod".equals(profile) || list.contains(mobile)) {
|
|
|
if (StringUtils.isNotBlank(mobile) && mobile.length() == 11) {
|
|
|
String regex = "^(1[3-9]\\d{9}$)";
|
|
@@ -182,16 +184,17 @@ public class RemoteCallServiceImpl implements RemoteCallService {
|
|
|
|
|
|
@Override
|
|
|
public void getOldUser() {
|
|
|
- //近两年新增、活跃、忠诚、沉默用户,不活跃用户带医用户
|
|
|
+ //16-21资质机构流失用户
|
|
|
List<PushMessageUserVo> pushUsers = messagePushMapper.findOldUser();
|
|
|
- //https://www.caimei365.com/product/hot.html指向新品橱窗
|
|
|
- String url = "https://www.caimei365.com/page-375.html";
|
|
|
+ //https://www.caimei365.com/user/coupon-collection.html指向领券中心
|
|
|
+ String url = "https://www.caimei365.com/user/coupon-collection.html";
|
|
|
List<String> list = new ArrayList<String>();
|
|
|
- list.add("15917362709");
|
|
|
- list.add("15827317748");
|
|
|
- list.add("18476937515");
|
|
|
- list.add("18605868824");
|
|
|
+// list.add("15917362709");
|
|
|
+// list.add("15827317748");
|
|
|
+// list.add("18476937515");
|
|
|
+// list.add("18605868824");
|
|
|
list.add("18670511721");
|
|
|
+ list.add("17798247695");
|
|
|
list.forEach(l -> {
|
|
|
PushMessageUserVo pushMessageUserVo = new PushMessageUserVo();
|
|
|
pushMessageUserVo.setMobile(l);
|
|
@@ -204,8 +207,40 @@ public class RemoteCallServiceImpl implements RemoteCallService {
|
|
|
p.setMarkId(23);
|
|
|
messagePushMapper.insertNewLink(p);
|
|
|
|
|
|
- String content = "年末清仓!Reyoungel瑞漾医用玻尿酸水光(械)买一送一,库存1000份,先到先得!戳https://www.caimei365.com/t/" +
|
|
|
- link + " 看详情,退订回T";
|
|
|
+ String content = "回归有礼,采美365网送您一张2000元优惠券,仅限前100名,戳https://www.caimei365.com/t/" +
|
|
|
+ link + ",退订回T";
|
|
|
+ getSendSms(3,23, p.getMobile(), content);
|
|
|
+ log.info("userId-------------------->" + p.getUserId() + "发送手机号------------------------>" + p.getMobile() + "短信-------------->" + content);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void getOldUserTow() {
|
|
|
+ //16-21资质机构排除流失用户以外的用户
|
|
|
+ List<PushMessageUserVo> pushUsers = messagePushMapper.findOldUserTow();
|
|
|
+ //https://www.caimei365.com/user/coupon-collection.html指向领券中心
|
|
|
+ String url = "https://www.caimei365.com/user/coupon-collection.html";
|
|
|
+ List<String> list = new ArrayList<String>();
|
|
|
+// list.add("15917362709");
|
|
|
+// list.add("15827317748");
|
|
|
+// list.add("18476937515");
|
|
|
+// list.add("18605868824");
|
|
|
+ list.add("18670511721");
|
|
|
+ list.add("17798247695");
|
|
|
+ list.forEach(l -> {
|
|
|
+ PushMessageUserVo pushMessageUserVo = new PushMessageUserVo();
|
|
|
+ pushMessageUserVo.setMobile(l);
|
|
|
+ pushUsers.add(pushMessageUserVo);
|
|
|
+ });
|
|
|
+ pushUsers.forEach(p -> {
|
|
|
+ p.setJumpLink(url);
|
|
|
+ String link = getLink();
|
|
|
+ p.setShortLink(link);
|
|
|
+ p.setMarkId(23);
|
|
|
+ messagePushMapper.insertNewLink(p);
|
|
|
+
|
|
|
+ String content = "欢庆元旦,采美平台直接让利,下单立减2000元,限时优惠券发放中,速领!戳https://www.caimei365.com/t/" +
|
|
|
+ link + ",退订回T";
|
|
|
getSendSms(3,23, p.getMobile(), content);
|
|
|
log.info("userId-------------------->" + p.getUserId() + "发送手机号------------------------>" + p.getMobile() + "短信-------------->" + content);
|
|
|
});
|