Commit 98c59ac9 authored by 赵啸非's avatar 赵啸非

添加下发日志

parent b9a0130c
......@@ -9,6 +9,7 @@ import com.mortals.framework.util.AbstractThread;
import com.mortals.xhx.base.system.message.MessageService;
import com.mortals.xhx.busiz.rsp.ApiResp;
import com.mortals.xhx.common.code.DeviceMethodEnum;
import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.common.pdu.DeviceReq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -62,10 +63,13 @@ public class SendThirdPartyThread extends AbstractThread {
for (DeviceReq deviceMsgReq : deviceMsgReqs) {
String phpInUrl = GlobalSysInfo.getParamValue(PARAM_SERVER_PHP_IN_HTTP_URL, "http://127.0.0.1:11078/zwfw_api");
ApiResp<String> resp = messageService.sendThirdParty(UrlBuilder.of(phpInUrl).addPath(thirdPartyPath).build(), deviceMsgReq);
if (YesNoEnum.NO.getValue() == resp.getCode()) {
log.info("sendThirty req==>{} TYPE:{} \n resp ==>{}", JSON.toJSONString(deviceMsgReq), DeviceMethodEnum.getByValue(deviceMsgReq.getDeviceStatus()).getDesc(), JSON.toJSONString(resp));
}
}
}
}
@Override
......
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