Sfoglia il codice sorgente

诚泰验证码登录 补充归属信息

785834757 1 anno fa
parent
commit
6664604617

+ 5 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -1,5 +1,6 @@
 package com.ydtech.modules.order.service.impl;
 
+import cn.hutool.core.collection.CollUtil;
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
@@ -1150,6 +1151,10 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
             ctCrawlerLoginRequest.setOther(new LinkedHashMap<>());
             ctCrawlerLoginRequest.getOther().put("phone",agreement.getAttribution().getPhone());
             ctCrawlerLoginRequest.getOther().put("mescoed",agreement.getAgreement().getSmsCode());
+            PtlAgreementAttributionDto attribution = agreement.getAttribution();
+            if(CollUtil.isNotEmpty(attribution.getFields())){
+                ctCrawlerLoginRequest.getOther().putAll(attribution.getFields().stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getField(), v.getValue()), LinkedHashMap::putAll));
+            }
             ctCrawlerLoginRequest.setCheck("zs");
             // 组装 Other 信息
             Map<String,String> otherMap = new HashMap<>();