|
@@ -7,11 +7,11 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-@Slf4j
|
|
|
-@Service
|
|
|
/**
|
|
|
* 企业微信信息服务
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
+@Service
|
|
|
public class MessageServiceImpl implements MessageService {
|
|
|
@Value("${serviceUrl}")
|
|
|
private String serviceUrl;
|
|
@@ -27,6 +27,7 @@ public class MessageServiceImpl implements MessageService {
|
|
|
try {
|
|
|
String url = serviceUrl+"?touser="+touser+"&content="+content;
|
|
|
HttpUtil.sendHttpGet(url, "utf-8");
|
|
|
+ log.info("发送企业微信通知,消息内容{}",content);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return 0;
|