Authored by gemingdan

cps业务停用

... ... @@ -26,6 +26,11 @@ public class SendMessageHelper {
public void sendMessage(int uid, int type, int time, BigDecimal amount) {
log.info("sendMessage enter,uid is {},type is {},time is {},amount is {}.",uid,type,time,amount);
if (1==1) {
//关闭推手项目所有消息推送
log.info("sendMessage close,type error,uid is {},type is {},time is {},amount is {}.",uid,type,time,amount);
return;
}
if (type < 1 || type > 5) {
log.info("sendMessage end,type error,uid is {},type is {},time is {},amount is {}.",uid,type,time,amount);
return;
... ...
... ... @@ -542,8 +542,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
logger.info("refuseApply,updateStatus null,req is {}", req);
return 0;
}
//审核不通过发短信
sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_REJECT_SMS_CONTENT, Lists.newArrayList(unionShareUserApply.getMobile()));
//审核不通过发短信--停用
// sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_REJECT_SMS_CONTENT, Lists.newArrayList(unionShareUserApply.getMobile()));
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),unionShareUserApply.getUid());
return result;
... ... @@ -568,9 +568,9 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
return 0;
}
int[] uids = unionShareUserApplies.stream().mapToInt(UnionShareUserApply::getUid).toArray();
//审核不通过发短信
List<String> mobileList = unionShareUserApplies.stream().map(UnionShareUserApply::getMobile).collect(Collectors.toList());
sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_REJECT_SMS_CONTENT, Lists.newArrayList(mobileList));
//审核不通过发短信-停用
// List<String> mobileList = unionShareUserApplies.stream().map(UnionShareUserApply::getMobile).collect(Collectors.toList());
// sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_REJECT_SMS_CONTENT, Lists.newArrayList(mobileList));
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),uids);
return result;
... ...