|
@@ -4,9 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.tiangua.star.enmus.CommercialCallBackReadyEnum;
|
|
import com.tiangua.star.enmus.CommercialCallBackReadyEnum;
|
|
|
-import com.tiangua.star.model.CustomerFollowup;
|
|
|
|
|
-import com.tiangua.star.model.ThirdStarDto;
|
|
|
|
|
-import com.tiangua.star.model.XdOrderDto;
|
|
|
|
|
|
|
+import com.tiangua.star.model.*;
|
|
|
import com.tiangua.star.service.CallBackService;
|
|
import com.tiangua.star.service.CallBackService;
|
|
|
import com.tiangua.star.util.HttpClientThreeUtil;
|
|
import com.tiangua.star.util.HttpClientThreeUtil;
|
|
|
import com.tiangua.star.util.SignUtil;
|
|
import com.tiangua.star.util.SignUtil;
|
|
@@ -551,6 +549,40 @@ public class CasllBackDataProcessor implements CallBackService {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public CredentialStuffingDto gxthrequest(CredentialStuffingParam param) {
|
|
|
|
|
+ List<CustomerFollowup> followupList = new ArrayList<>();
|
|
|
|
|
+ CustomerFollowup followup = new CustomerFollowup();
|
|
|
|
|
+ followup.setPhoneMd5(param.getPhoneMd5());
|
|
|
|
|
+ String businessId = "b880f032c628250611050421business";
|
|
|
|
|
+ followup.setBusiId(businessId);
|
|
|
|
|
+ followup.setProductBizId(4652);
|
|
|
|
|
+ followup.setFollowTime(new Date());
|
|
|
|
|
+ followup.setSourceType(3);
|
|
|
|
|
+ String star = param.getCustomerStart().toString();
|
|
|
|
|
+ if ("-1".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(0));
|
|
|
|
|
+ }else if ("1".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(0));
|
|
|
|
|
+ }else if ("2".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(0));
|
|
|
|
|
+ }else if ("3".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(2));
|
|
|
|
|
+ }else if ("4".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(3));
|
|
|
|
|
+ }else if ("5".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(4));
|
|
|
|
|
+ }else if ("6".equals(star)) {
|
|
|
|
|
+ followup.setStarLevel(new BigDecimal(5));
|
|
|
|
|
+ }
|
|
|
|
|
+ followupList.add(followup);
|
|
|
|
|
+ handleMappedData(businessId,followupList);
|
|
|
|
|
+ CredentialStuffingDto dto = new CredentialStuffingDto();
|
|
|
|
|
+ dto.setCode(200);
|
|
|
|
|
+ dto.setMsg("成功");
|
|
|
|
|
+ return dto;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
private void sendGetRequestSXRKX(String productBizId,String busiId,String url,Map<String, String> resultMap){
|
|
private void sendGetRequestSXRKX(String productBizId,String busiId,String url,Map<String, String> resultMap){
|
|
|
JSONObject param = SignUtil.generateSign(81, 43, "730969D3F673BA42432C574378B9A8F1");
|
|
JSONObject param = SignUtil.generateSign(81, 43, "730969D3F673BA42432C574378B9A8F1");
|