提交 79954cee 作者: 沈振路

取消延时客服0-6点不发的限制

上级 33786801
...@@ -100,7 +100,7 @@ public class CustomerDelayPublishServiceImpl extends ServiceImpl<CustomerDelayPu ...@@ -100,7 +100,7 @@ public class CustomerDelayPublishServiceImpl extends ServiceImpl<CustomerDelayPu
registerUserEntities.add(delayPublishFuture.get()) ; registerUserEntities.add(delayPublishFuture.get()) ;
} catch (InterruptedException | ExecutionException e) { } catch (InterruptedException | ExecutionException e) {
e.printStackTrace(); localLog.error("get future result error {}", e.getMessage(), e);
} }
} }
if (!registerUserEntities.isEmpty()){ if (!registerUserEntities.isEmpty()){
......
...@@ -64,11 +64,6 @@ public class WeChatServiceImpl implements WeChatService{ ...@@ -64,11 +64,6 @@ public class WeChatServiceImpl implements WeChatService{
public Future<CustomerDelayPublish> sendCustomerDelayMessage( String appid,String token , CustomerDelayPublish user, public Future<CustomerDelayPublish> sendCustomerDelayMessage( String appid,String token , CustomerDelayPublish user,
Map<Integer,List<CustomerDelayItemVO>> delaySortMap, Map<Integer,List<CustomerDelayItemVO>> delaySortMap,
Set<CustomerDelayItemVO> needUpdateVoList) { Set<CustomerDelayItemVO> needUpdateVoList) {
//获取当前小时数
Calendar instance = Calendar.getInstance();
int i = instance.get(Calendar.HOUR_OF_DAY);
//早上0-6点不发
if (i>=FORBID_TIME){
//token //token
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromHttpUrl(customerPath).queryParam(ACCESS_TOKEN,token); UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromHttpUrl(customerPath).queryParam(ACCESS_TOKEN,token);
//找到延时序列 //找到延时序列
...@@ -112,7 +107,6 @@ public class WeChatServiceImpl implements WeChatService{ ...@@ -112,7 +107,6 @@ public class WeChatServiceImpl implements WeChatService{
} }
} }
} }
}
//用户首次活跃时间 //用户首次活跃时间
Long subscribeTimestamp = user.getFirstActive()!=null?user.getFirstActive().getTime():user.getGmtCreate().getTime(); Long subscribeTimestamp = user.getFirstActive()!=null?user.getFirstActive().getTime():user.getGmtCreate().getTime();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论