| | |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return: riderSourceInfoHttp |
| | | * @author: pxb |
| | | */ |
| | | public static RiderSourceInfoHttp getRiderSourceInfoHttp(String phone, String sourcePlatform) { |
| | | HashMap<String, Object> paramMap = new HashMap<>(2); |
| | | paramMap.put("phone", phone); |
| | | paramMap.put("sourcePlatform", sourcePlatform); |
| | | public static RiderSourceInfoHttp getRiderSourceInfoHttp(List<String> phones, String sourcePlatform) { |
| | | HashMap<String, Object> param = new HashMap<>(2); |
| | | param.put("phones", phones); |
| | | param.put("sourcePlatform", sourcePlatform); |
| | | // String url = ""; |
| | | // 转化成对象 |
| | | RiderSourceInfoHttp riderSourceInfoHttp = new RiderSourceInfoHttp(); |
| | | // try { |
| | | // String result = httpPostRequest(paramMap, url); |
| | | // String result = httpPostRequest(param, url); |
| | | // // 转换数据 |
| | | // riderSourceInfoHttp = riderConvertUtils(result); |
| | | // } catch (Exception e) { |
| | |
| | | RiderSourceInfo riderSourceInfo = new RiderSourceInfo(); |
| | | riderSourceInfo.setSourcePlatform("LY"); |
| | | riderSourceInfo.setCardNum("123456789012345678"); |
| | | riderSourceInfo.setPhone("15202394888"); |
| | | riderSourceInfo.setPhone("18706999997"); |
| | | riderSourceInfo.setCardName("张三"); |
| | | riderSourceInfo.setEnabled(Constants.SOURCE_ENABLED_ON); |
| | | riderSourceInfoHttp.setData(riderSourceInfo); |
| | | riderSourceInfoHttp.getData().add(riderSourceInfo); |
| | | return riderSourceInfoHttp; |
| | | } |
| | | |