Commit 9e3d84e7 authored by 赵啸非's avatar 赵啸非

添加业务修改通知php

parent 0a717dff
......@@ -28,17 +28,12 @@ public class SendTask implements Runnable {
@Override
public void run() {
ApiThirdPartyReq<String> apiThirdPartyReq = new ApiThirdPartyReq<>();
apiThirdPartyReq.setCode(YesNoEnum.YES.getValue());
apiThirdPartyReq.setType(MessageTypeEnum.TRANSACTION.getValue());
apiThirdPartyReq.setData(content);
String resp = null;
try {
Map<String, String> header = new HashMap<>();
header.put(HEADER_CONTENT_TYPE, "application/json");
String reqStr = JSON.toJSONString(apiThirdPartyReq);
log.info("sendUrl:{} \n sendMessageReq:{}",sendUrl, reqStr);
resp = HttpUtil.doPost(sendUrl, header, reqStr);
log.info("sendUrl:{} \n sendMessageReq:{}",sendUrl, content);
resp = HttpUtil.doPost(sendUrl, header, content);
log.debug("sendMessageResp:{}", resp);
} catch (Exception e) {
log.error("异常:", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment