ソースを参照

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

master
wq 2年前
コミット
a8b1190693

+ 11
- 16
app/src/main/java/com/huntersun/vkyes/etcopencard/project/copapply/OBURequest.java ファイルの表示



import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.text.TextUtils;
import android.util.Log; import android.util.Log;


import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
Log.e("okhttp", "写入信息异常:" + result); Log.e("okhttp", "写入信息异常:" + result);
return; return;
} }
// BoxManagers.gerBoxManager().resetEsam(); //复位
bean = new SendTheVerificationCodeBean(); bean = new SendTheVerificationCodeBean();
bean.setAgentId("52010106004"); bean.setAgentId("52010106004");
bean.setChannelId("5201010200601130001"); bean.setChannelId("5201010200601130001");
int customeType = 1; //用户类型 int customeType = 1; //用户类型
encryptData.append(Utils.IntegerToHexString(customeType, 2)); 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, 4));
encryptData.append(Utils.IntegerToHexString(123, 2)); encryptData.append(Utils.IntegerToHexString(123, 2));
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(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(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.getVehicleVin(), 32)); //车辆识别代号 vehicleVin
encryptData.append(Utils.AsciToHexString(item.getVehicleEngineNum(), 32)); //发动机编号 encryptData.append(Utils.AsciToHexString(item.getVehicleEngineNum(), 32)); //发动机编号
} catch (Exception e) { } catch (Exception e) {

+ 0
- 3
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/VehicleInformationActivity.java ファイルの表示

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

読み込み中…
キャンセル
保存