Commit b777e5a5 by 张志恒

抖音支付新增抖音Id和openId

parent 8cb765cb
...@@ -41,6 +41,7 @@ public enum OrderSourceType { ...@@ -41,6 +41,7 @@ public enum OrderSourceType {
DPZHCT("dpzhct", "美团点评智慧餐厅", 24), DPZHCT("dpzhct", "美团点评智慧餐厅", 24),
FMWD("fmwd", "非码微店", 25), FMWD("fmwd", "非码微店", 25),
Y_POS("ypos", "非码云POS", 26), Y_POS("ypos", "非码云POS", 26),
TIKTOKPAY("tiktokpay","抖音支付", 27),
parkingmanual("parkingmanual", "农工商停车手工录单", 98), parkingmanual("parkingmanual", "农工商停车手工录单", 98),
PARKING("parking", "农工商停车", 99), PARKING("parking", "农工商停车", 99),
SDG("sdg", "闪电购", 1000); SDG("sdg", "闪电购", 1000);
......
...@@ -2778,6 +2778,10 @@ public class OrderAdapter { ...@@ -2778,6 +2778,10 @@ public class OrderAdapter {
} }
orderPayDto.setProducts(productBeans); orderPayDto.setProducts(productBeans);
orderPayDto.setPayCode(paymentRequest.getPayCode()); orderPayDto.setPayCode(paymentRequest.getPayCode());
//抖音支付的payCode = 10066
if(OrderClientType.TIKTOKPAY.getIndex().toString().equalsIgnoreCase(orderBean.getOrderClient())){
orderPayDto.setPayCode(PayChannelType.TIKTOKPAY.getEbcode());
}
orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType())); orderPayDto.setFoodOrderType(getFoodOrderType(orderBean.getOrderType()));
return orderPayDto; return orderPayDto;
} }
......
...@@ -22,9 +22,7 @@ public enum OrderChannelType { ...@@ -22,9 +22,7 @@ public enum OrderChannelType {
SAASMALL("saasmall", "微商城"), SAASMALL("saasmall", "微商城"),
APP("app", "APP"), APP("app", "APP");
TOUTIAO("toutiao", "抖音小程序");;
private String code; private String code;
......
...@@ -2200,8 +2200,8 @@ public class OrderServiceImpl implements Orderservice { ...@@ -2200,8 +2200,8 @@ public class OrderServiceImpl implements Orderservice {
orderClient = OrderClientType.APP; orderClient = OrderClientType.APP;
} }
//抖音小程序 //抖音小程序
if(OrderChannelType.TOUTIAO.getCode().equals(createOrderVo.getChannelType())) { if(PayChannelType.TIKTOKPAY.getIndex().equals(createOrderVo.getPayChannelType())) {
orderClient = OrderClientType.TOUTIAO; orderClient = OrderClientType.TIKTOKPAY;
} }
long totalAmount = 0; long totalAmount = 0;
int cardAmount = 0; int cardAmount = 0;
......
...@@ -35,7 +35,7 @@ public enum OrderClientType { ...@@ -35,7 +35,7 @@ public enum OrderClientType {
KOUBEI(22, "口碑"), KOUBEI(22, "口碑"),
SAASMALL(23, "微商城"), SAASMALL(23, "微商城"),
FMWD(25, "非码微店"), FMWD(25, "非码微店"),
TOUTIAO(27, "抖音小程序"), TIKTOKPAY(27, "抖音小程序"),
PARKING(99 , "农工商停车"), PARKING(99 , "农工商停车"),
; ;
......
...@@ -12,7 +12,8 @@ public enum PayChannelType { ...@@ -12,7 +12,8 @@ public enum PayChannelType {
SVC((byte)3,"10102","储值卡"), SVC((byte)3,"10102","储值卡"),
COMB((byte)4,"10212","混合支付"), COMB((byte)4,"10212","混合支付"),
USVCP((byte)5,"10556", "电子风味卡支付"), USVCP((byte)5,"10556", "电子风味卡支付"),
ZERO((byte)6,"100000", "0元支付"); ZERO((byte)6,"100000", "0元支付"),
TIKTOKPAY((byte)7,"10066", "抖音支付");
private Byte index; private Byte index;
private String ebcode; private String ebcode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment