mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-13 21:33:41 +08:00
refactor: 修改支付中的场景类型
- 为了更加清晰的指明支付场景的类型,对H5Info中的type进行了优化,由字符串改为枚举类型 BREAKING CHANGE: 涉及到合单支付和直连支付的H5支付场景信息需要改入参的类型
This commit is contained in:
@@ -41,9 +41,9 @@ public class Goods {
|
||||
/**
|
||||
* 商品数量
|
||||
*/
|
||||
private int quantity;
|
||||
private Integer quantity;
|
||||
/**
|
||||
* 商品单价
|
||||
*/
|
||||
private int unitPrice;
|
||||
private Integer unitPrice;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class H5Info {
|
||||
/**
|
||||
* 场景类型
|
||||
*/
|
||||
private String type;
|
||||
private H5SceneType type;
|
||||
/**
|
||||
* 应用名称
|
||||
*/
|
||||
@@ -48,4 +48,26 @@ public class H5Info {
|
||||
* Android 平台 PackageName
|
||||
*/
|
||||
private String packageName;
|
||||
|
||||
/**
|
||||
* H5 场景类型
|
||||
*
|
||||
* @author felord.cn
|
||||
* @since 1.0.5.RELEASE
|
||||
*/
|
||||
public enum H5SceneType {
|
||||
|
||||
/**
|
||||
* IOS
|
||||
*/
|
||||
iOS,
|
||||
/**
|
||||
* Android
|
||||
*/
|
||||
Android,
|
||||
/**
|
||||
* Wap
|
||||
*/
|
||||
Wap
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user