提交 2954084b 作者: gh

延时客服图文链接生成错误判断

上级 d3d4a092
......@@ -14,6 +14,7 @@ import com.yaoyaozw.customer.service.wechat.entity.customerRequest.WeChatCustome
import com.yaoyaozw.customer.vo.customer.CrowdPackageUserVO;
import com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO;
import com.yaoyaozw.customer.vo.referral.ReferralEntityVo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
......@@ -183,6 +184,11 @@ public class WeChatServiceImpl implements WeChatService{
return new WeChatCustomerRequestEntity(CUSTOMER_TEXT,customerDelay.getContent());
}else if (CUSTOMER_NEWS.equals(customerDelay.getType())){
//链接生成失败不发
if (CustomerCommonConstant.ERROR_LABEL.equals(customerDelay.getSourceUrl())|| StringUtils.isBlank(customerDelay.getSourceUrl())){
return null;
}
//图文类
return new WeChatCustomerRequestEntity(CUSTOMER_NEWS,customerDelay.getExtendTitle(),customerDelay.getContent(),customerDelay.getSourceUrl(),customerDelay.getCoverUrl());
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论