|
|
@@ -2,6 +2,7 @@ package com.huntersun.vkyes.etcopencard.project.copapply; |
|
|
|
|
|
|
|
import android.annotation.SuppressLint; |
|
|
|
import android.content.Context; |
|
|
|
import android.text.TextUtils; |
|
|
|
import android.util.Log; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
@@ -133,7 +134,6 @@ public class OBURequest implements HandlerAction { |
|
|
|
Log.e("okhttp", "写入信息异常:" + result); |
|
|
|
return; |
|
|
|
} |
|
|
|
// BoxManagers.gerBoxManager().resetEsam(); //复位 |
|
|
|
bean = new SendTheVerificationCodeBean(); |
|
|
|
bean.setAgentId("52010106004"); |
|
|
|
bean.setChannelId("5201010200601130001"); |
|
|
@@ -155,27 +155,22 @@ public class OBURequest implements HandlerAction { |
|
|
|
int customeType = 1; //用户类型 |
|
|
|
encryptData.append(Utils.IntegerToHexString(customeType, 2)); |
|
|
|
//获取车辆尺寸 |
|
|
|
//null == item.getVehicleDimensions() |
|
|
|
if (true) { |
|
|
|
String[] lwh = item.getVehicleDimensions().split(","); |
|
|
|
if (null != lwh && lwh.length == 3) { |
|
|
|
encryptData.append(Utils.IntegerToHexString(Integer.parseInt(lwh[0]), 4)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(Integer.parseInt(lwh[1]), 2)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(Integer.parseInt(lwh[2]), 2)); |
|
|
|
} else { |
|
|
|
encryptData.append(Utils.IntegerToHexString(123, 4)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(123, 2)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(123, 2)); |
|
|
|
} else { |
|
|
|
String[] lwh = item.getVehicleDimensions().split(","); |
|
|
|
if (null != lwh && lwh.length == 3) { |
|
|
|
encryptData.append(Utils.IntegerToHexString(Integer.parseInt(lwh[0]), 4)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(Integer.parseInt(lwh[1]), 2)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(Integer.parseInt(lwh[2]), 2)); |
|
|
|
} else { |
|
|
|
encryptData.append(Utils.IntegerToHexString(123, 4)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(123, 2)); |
|
|
|
encryptData.append(Utils.IntegerToHexString(123, 2)); |
|
|
|
} |
|
|
|
} |
|
|
|
encryptData.append(Utils.IntegerToHexString(4, 2)); //获取轮数 |
|
|
|
encryptData.append(Utils.IntegerToHexString(4, 2)); //轴数 |
|
|
|
encryptData.append(Utils.IntegerToHexString(TextUtils.isEmpty(item.getAxleCount()) ? 0 |
|
|
|
: Integer.parseInt(item.getAxleCount()), 2)); //轴数 |
|
|
|
encryptData.append(Utils.IntegerToHexString(null, 4)); //轴距 |
|
|
|
encryptData.append(Utils.IntegerToHexString(5, 6)); //核载人数 |
|
|
|
encryptData.append(Utils.IntegerToHexString(TextUtils.isEmpty(item.getApprovedCount()) ? 5 |
|
|
|
: Integer.parseInt(item.getApprovedCount()), 6)); //核载人数 |
|
|
|
encryptData.append(Utils.AsciToHexString(item.getVehicleVin(), 32)); //车辆识别代号 vehicleVin |
|
|
|
encryptData.append(Utils.AsciToHexString(item.getVehicleEngineNum(), 32)); //发动机编号 |
|
|
|
} catch (Exception e) { |