提交 76ba8b8e authored 作者: hzh's avatar hzh

微信对接

上级 c51e1dd0
......@@ -109,7 +109,7 @@ public class JsapiNotifyModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class Payer implements Serializable {
public static class Payer implements Serializable {
/**
* 用户在直连商户AppID下的唯一标识。
......@@ -123,7 +123,7 @@ public class JsapiNotifyModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class Amount implements Serializable {
public static class Amount implements Serializable {
/**
* 订单总金额,单位为分。
......@@ -152,7 +152,7 @@ public class JsapiNotifyModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class SceneInfo implements Serializable {
public static class SceneInfo implements Serializable {
/**
* 终端设备号(门店号或收银设备ID)。
......@@ -166,7 +166,7 @@ public class JsapiNotifyModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class PromotionDetail implements Serializable {
public static class PromotionDetail implements Serializable {
/**
* 券ID。
......@@ -232,7 +232,7 @@ public class JsapiNotifyModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class GoodsDetail implements Serializable {
public static class GoodsDetail implements Serializable {
/**
* 商品编码。
......
......@@ -113,7 +113,7 @@ public class RefundModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class RefundAmount implements Serializable {
public static class RefundAmount implements Serializable {
/**
* 订单总金额,单位为分。
......@@ -170,7 +170,7 @@ public class RefundModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class From implements Serializable {
public static class From implements Serializable {
/**
* 【出资账户类型】 出资账户类型
* 可选取值:
......@@ -191,7 +191,7 @@ public class RefundModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class PromotionDetail implements Serializable {
public static class PromotionDetail implements Serializable {
/**
* 【券ID】 券或者立减优惠id
......@@ -235,7 +235,7 @@ public class RefundModel implements Serializable {
@NoArgsConstructor
@Data
@Accessors(chain = true)
static class GoodsDetail implements Serializable {
public static class GoodsDetail implements Serializable {
/**
* 【商户侧商品编码】 商品编码,由半角的大小写字母、数字、中划线、下划线中的一种或几种组成。
......
......@@ -91,7 +91,7 @@ public class WeChatOrderPayServiceImpl implements IOrderPayService {
Date payTime = StringUtils.isEmpty(successTimeStr) ? null : DateUtil.parse(successTimeStr);
//微信支付订单号
String transactionId = model.getTransaction_id();
Amount amount = model.getAmount();
JsapiNotifyModel.Amount amount = model.getAmount();
//支付金额
int actualPayAmount = amount.getPayer_total();
//获取openId
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论