瀏覽代碼

feat: 请求来源统一字段

master
huting 2 年之前
父節點
當前提交
afe81636a9

+ 2
- 1
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/Parameters.java 查看文件

@@ -1,6 +1,7 @@
package com.huntersun.vkyes.etcopencard.project.api;

import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
import com.huntersun.vkyes.etcopencard.project.utils.Constants;

/**
* @author admin
@@ -8,7 +9,7 @@ import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
public class Parameters {
private String openId = (String) MyShared.getInstance().get(MyShared.OPENID,"");
private String opId = (String) MyShared.getInstance().get(MyShared.OPENID,"");
private String source = "SERVICE_HALL";
private String source = Constants.SOURCE;
private String appId = "admin001";
private String tabIndex;
private String pageNo;

+ 3
- 2
app/src/main/java/com/huntersun/vkyes/etcopencard/project/api/bean/SendTheVerificationCodeBean.java 查看文件

@@ -2,6 +2,7 @@ package com.huntersun.vkyes.etcopencard.project.api.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
import com.huntersun.vkyes.etcopencard.project.utils.Constants;

import java.util.List;

@@ -20,7 +21,7 @@ public class SendTheVerificationCodeBean {
private String vehiclePlate;
private String vehicleClass;
private String vehiclePlateColor;
private String source = "SERVICE_HALL";
private String source = Constants.SOURCE;
private String agencyId;
private String imageType;
private String fileName;
@@ -141,7 +142,7 @@ public class SendTheVerificationCodeBean {
private String code_ = "9000";
private String Status = "0";
private String whetherToMail;
private String orderSource = "SERVICE_HALL";
private String orderSource = Constants.SOURCE;
private String opId = (String) MyShared.getInstance().get(MyShared.OPENID, "");
private String openId = (String) MyShared.getInstance().get(MyShared.OPENID, "");


+ 2
- 1
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/order/CancelOrderStep1Activity.java 查看文件

@@ -16,6 +16,7 @@ import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean;
import com.huntersun.vkyes.etcopencard.project.api.bean.SendTheVerificationCodeBean;
import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
import com.huntersun.vkyes.etcopencard.project.tool.Utils;
import com.huntersun.vkyes.etcopencard.project.utils.Constants;
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper;
import com.huntersun.vkyes.etcopencard.src.app.AppActivity;
import com.jeremyliao.liveeventbus.LiveEventBus;
@@ -104,7 +105,7 @@ public class CancelOrderStep1Activity extends AppActivity {
fatherBean2.bizContent = new SendTheVerificationCodeBean();
fatherBean2.bizContent.setId(id);
fatherBean2.bizContent.setOrderId(orderId);
fatherBean2.bizContent.setSource("SERVICE_HALL"); //线上营业厅
fatherBean2.bizContent.setSource(Constants.SOURCE); //线上营业厅
fatherBean2.bizContent.setOpId((String) MyShared.getInstance().get(MyShared.OPENID,""));
fatherBean2.bizContent.setReason(FunHelper.getText(binding.etReason));
RequestParameters parameters1 = new RequestParameters(IFCode.IFCODE7, new Gson().toJson(fatherBean2.bizContent));

+ 2
- 1
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/order/ConfirmReceiveGoodsStep1Activity.java 查看文件

@@ -16,6 +16,7 @@ import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean;
import com.huntersun.vkyes.etcopencard.project.api.bean.SendTheVerificationCodeBean;
import com.huntersun.vkyes.etcopencard.project.tool.MyShared;
import com.huntersun.vkyes.etcopencard.project.tool.Utils;
import com.huntersun.vkyes.etcopencard.project.utils.Constants;
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper;
import com.huntersun.vkyes.etcopencard.src.app.AppActivity;
import com.jeremyliao.liveeventbus.LiveEventBus;
@@ -92,7 +93,7 @@ public class ConfirmReceiveGoodsStep1Activity extends AppActivity {
FatherBean<SendTheVerificationCodeBean> fatherBean2 = new FatherBean<>();
fatherBean2.bizContent = new SendTheVerificationCodeBean();
fatherBean2.bizContent.setId(id);
fatherBean2.bizContent.setSource("SERVICE_HALL");
fatherBean2.bizContent.setSource(Constants.SOURCE);
fatherBean2.bizContent.setOpId((String) MyShared.getInstance().get(MyShared.OPENID,""));
RequestParameters parameters1 = new RequestParameters(IFCode.IFCODE155, new Gson().toJson(fatherBean2.bizContent));
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters1) .enqueue(new Converter<Result>() {

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

@@ -0,0 +1,19 @@
package com.huntersun.vkyes.etcopencard.project.ui.activity.order;

import com.huntersun.vkyes.etcopencard.src.app.AppActivity;

/**
* Date :2023-03-14
* Description:编辑订单地址
*/
public class EditOrderAddrActivity extends AppActivity {
@Override
protected void initView() {

}

@Override
protected void initData() {

}
}

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

@@ -0,0 +1,19 @@
package com.huntersun.vkyes.etcopencard.project.ui.activity.order;

import com.huntersun.vkyes.etcopencard.src.app.AppActivity;

/**
* Date :2023-03-14
* Description:订单物流查看
*/
public class OrderLogisticsActivity extends AppActivity {
@Override
protected void initView() {

}

@Override
protected void initData() {

}
}

+ 2
- 0
app/src/main/java/com/huntersun/vkyes/etcopencard/project/utils/Constants.java 查看文件

@@ -7,6 +7,8 @@ package com.huntersun.vkyes.etcopencard.project.utils;
public class Constants {
public static final String pageSize = "10";

public static final String SOURCE = "SERVICE_HALL"; //来源-线上营业厅

//******************************订单状态********************************//

public static final int ORDER_STATUS_CANCEL = -1; //已取消

Loading…
取消
儲存