|
@@ -5,6 +5,8 @@ import com.tzld.piaoquan.growth.common.component.HttpPoolClient;
|
|
|
import com.tzld.piaoquan.growth.common.model.vo.SendRequestParam;
|
|
|
import com.tzld.piaoquan.growth.common.service.WeComSendService;
|
|
|
import com.tzld.piaoquan.growth.common.utils.LarkRobotUtil;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import lombok.val;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -13,6 +15,7 @@ import org.springframework.stereotype.Service;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class WeComSendServiceImpl implements WeComSendService {
|
|
|
|
|
@@ -33,7 +36,9 @@ public class WeComSendServiceImpl implements WeComSendService {
|
|
|
SendRequestParam sendRequestParam = new SendRequestParam();
|
|
|
sendRequestParam.setUrl(url);
|
|
|
sendRequestParam.setParam(param);
|
|
|
- return httpPoolClient.post(sendUrl, JSON.toJSONString(sendRequestParam));
|
|
|
+ String res = httpPoolClient.post(sendUrl, JSON.toJSONString(sendRequestParam));
|
|
|
+ log.info("sendPost res={}", res);
|
|
|
+ return res;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -44,7 +49,9 @@ public class WeComSendServiceImpl implements WeComSendService {
|
|
|
}
|
|
|
String sendUrl = "http://" + sendRequestIp + "/wecom/server/send/get";
|
|
|
sendUrl += "?url=" + url;
|
|
|
- return httpPoolClient.get(sendUrl);
|
|
|
+ String res = httpPoolClient.get(sendUrl);
|
|
|
+ log.info("sendGet res={}", res);
|
|
|
+ return res;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -55,6 +62,8 @@ public class WeComSendServiceImpl implements WeComSendService {
|
|
|
}
|
|
|
String sendUrl = "http://" + sendRequestIp + "/wecom/server/send/post/file";
|
|
|
sendUrl += "?url=" + url;
|
|
|
- return httpPoolClient.post(sendUrl, file);
|
|
|
+ String res = httpPoolClient.post(sendUrl, file);
|
|
|
+ log.info("sendPostFile res={}", res);
|
|
|
+ return res;
|
|
|
}
|
|
|
}
|