瀏覽代碼

'2023年3月15日10:12:49'

master
wq 2 年之前
父節點
當前提交
a8b1190693

+ 11
- 16
app/src/main/java/com/huntersun/vkyes/etcopencard/project/copapply/OBURequest.java 查看文件

@@ -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) {

+ 0
- 3
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/VehicleInformationActivity.java 查看文件

@@ -383,9 +383,6 @@ public class VehicleInformationActivity extends AppActivity {
ResultBean.ProductInfo decVehInfo =
Gson().fromJson(String.valueOf(resultBean.getBizContent()), ResultBean.ProductInfo.class);
hideDialog();
// GlideApp.wi bbth(getActivity())
// .load("http://222.85.144.89:19003/default-bucket/" + decVehInfo.data.getOssFilePath())
// .into((ImageView) view);
GlideApp.with(getActivity())
.load(data.get(0))
.into((ImageView) view);

Loading…
取消
儲存