package com.ydtech.modules.ttqf; import com.alibaba.fastjson.JSONObject; import com.ydtech.modules.ttqf.entity.PaySignCallback; import com.ydtech.modules.ttqf.entity.vo.PaySigningInformation; import com.ydtech.utils.HttpUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import javax.annotation.Resource; @Slf4j @Component public class LgInformationPush { @Resource private TTFQConfig config; @Async public void push(PaySignCallback paySignCallback){ PaySigningInformation information = JSONObject.parseObject(JSONObject.toJSONString(paySignCallback), PaySigningInformation.class); String sendPost = HttpUtil.sendPost(config.getLgUrl(), JSONObject.toJSONString(information)); log.info("推送灵工数据+++++++{}",sendPost); } }