GXRHMd5CallBackController.java 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package com.tiangua.star.controller;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.tiangua.star.model.CredentialStuffingDto;
  4. import com.tiangua.star.model.CredentialStuffingParam;
  5. import com.tiangua.star.service.CallBackService;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.util.ArrayList;
  13. import java.util.HashMap;
  14. import java.util.List;
  15. import java.util.Map;
  16. /**
  17. * @author
  18. * @description 本应用 +诚易融 需求开发上线一共两天
  19. * 流程:诚易融定时任务扫,将api存在starl的http推送过来
  20. * 本应用使用http请求接受,获取数据,并对应星级,然后返回诚意融,不用mq 没有为什么
  21. * @project loan-supermarket-parent
  22. * @date 2025/3/21 10:45:49
  23. */
  24. @RestController
  25. @RequestMapping(value = "/gxrhmd5/callback")
  26. @Slf4j
  27. public class GXRHMd5CallBackController {
  28. @Autowired
  29. private CallBackService callBackService;
  30. @PostMapping("/request")
  31. public CredentialStuffingDto request(@RequestBody CredentialStuffingParam param) {
  32. log.info("广西融海科技有限公司 get begin dto{}",param);
  33. if (param == null) {
  34. log.info("广西融海科技有限公司解析回传数据为null");
  35. CredentialStuffingDto dto1 = new CredentialStuffingDto();
  36. dto1.setCode(500);
  37. dto1.setMsg("请求数据为空");
  38. return dto1;
  39. }
  40. if (param.getCustomerStart()==null){
  41. CredentialStuffingDto dto1 = new CredentialStuffingDto();
  42. dto1.setCode(500);
  43. dto1.setMsg("星级数据为空");
  44. return dto1;
  45. }
  46. CredentialStuffingDto dto = callBackService.gxthrequest(param);
  47. log.info("广西融海科技有限公司 get end");
  48. return dto;
  49. }
  50. // @PostMapping("/sendGetRequestHeiLongJiang")
  51. // public void processInstitutionData() {
  52. // String s1 = "16cdb6e6e52e241a24d6bb6ae4b17cbb";
  53. // // String s2 = "8C32A04C7FED4B5EF9451CDB5D9DE770";
  54. //
  55. // List<String> strings = new ArrayList<>();
  56. // strings.add(s1);
  57. // // strings.add(s2);
  58. ////
  59. //// String md5ListStr = [A4DAB7668AACAC1D134C1F37351689B2, AD7DE46FF63D14586BDB2960F8DFADA3, 830A6BF59D2BD7CC9BF348968F339679, BB0827AA0A5488D9888A9AB5F91EC1D9, 5DC81C7B49DF99B9EFD6AE60930684C3, 3FA262C2228781E91693FD1E491AD992, 2AA2F6D980D3AA1A99BC2668E6D17DF2, 5EF5B85D827A0D8DAF4F2F58492EAEF2, 5642D0403C64E28A35A458DD51D1835C, B042388F090D43BD65BF8041A077D498, 17E7DC0697D9778AC8CF3E34C1473A02, 19799C273D2A4AB61C83D032CAD58077, 6AD4F0A0B434BADD714008D993CCEB09, 1DC1BD9F6701A9D89E188A1215F644F0, 4350DEA1CE1875F7F307FA5D9BCD532A, 87E365716EC2308152C63EB815461794, 577DF2744FD39D6A8B62EE51E709ED33, 088249775E8CEB938D3FB8B0F24C0142];
  60. //// strings.add(md5ListStr);
  61. // Map<String, String> hashMap = new HashMap<>();
  62. // //sendGetRequestCQYXJ("4516","bff040093fee250512093334business","https://gw.rongxk.com/crm/api/channel/queryCustomerGrade",strings,"1D4C6329-399F-42CA-AC0C-236E0B048AD0",21540);
  63. // sendGetRequestHNJS("4879","584c550f633a251017054419business","http://122.114.55.45:9501/openapi/customer/return","373cd4a2-0b01-409e-8c74-81fce8962aef","wn2c213vPDF04T3PRbzOUzED19J8Tukh","海南谨昇信息服务有限公司",strings,hashMap);
  64. // }
  65. }