| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.HttpEntity; |
| | | import org.springframework.http.HttpHeaders; |
| | | import org.springframework.http.MediaType; |
| | |
| | | public class PushUtil { |
| | | |
| | | Logger logger = LoggerFactory.getLogger("ServiceLog"); |
| | | |
| | | private final String socket_uri = "http://192.168.110.85:6000"; |
| | | |
| | | @Value("${qyt.socket_uri}") |
| | | private String socket_uri; |
| | | |
| | | |
| | | |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |
| | |
| | | params.put("msg", msg.toJSONString()); |
| | | params.put("id", id.toString()); |
| | | params.put("type", type.toString()); |
| | | params.put("bussinessType", "daijia"); |
| | | post.form(params); |
| | | HttpResponse execute = post.execute(); |
| | | if (200 != execute.getStatus()) { |