|
@@ -20,45 +20,53 @@ public enum PayDeviceEnum {
|
|
|
|
|
|
* Pc端支付
|
|
|
*/
|
|
|
- PC_PAY(1, "pc", "Pc二维码支付"),
|
|
|
+ PC_PAY(1, "PC", "PC二维码支付"),
|
|
|
|
|
|
|
|
|
* h5支付
|
|
|
*/
|
|
|
- H5_PAY(2, "h5", "h5支付"),
|
|
|
+ H5_PAY(2, "H5", "H5支付"),
|
|
|
|
|
|
|
|
|
* App支付
|
|
|
*/
|
|
|
- APP_PAY(3, "app", "App支付"),
|
|
|
+ APP_PAY(3, "APP", "APP支付"),
|
|
|
|
|
|
|
|
|
* 小程序支付
|
|
|
*/
|
|
|
- MINI_APP_PAY(4, "mp", "微信小程序支付"),
|
|
|
+ APPLET_PAY(4, "APPLET", "小程序支付"),
|
|
|
|
|
|
|
|
|
* 米大师支付
|
|
|
*/
|
|
|
- MI_PAY(5, "miPay", "微信米大师支付"),
|
|
|
+ MI_PAY(5, "MI_PAY", "米大师支付"),
|
|
|
|
|
|
|
|
|
* 客服支付
|
|
|
*/
|
|
|
- CUSTOM_PAY(6, "customPay", "客服支付");
|
|
|
+ CUSTOM_PAY(6, "CUSTOM_PAY", "客服支付");
|
|
|
|
|
|
- private Integer code;
|
|
|
-
|
|
|
- private String name;
|
|
|
+
|
|
|
+ * 支付方式id
|
|
|
+ */
|
|
|
+ private Integer payDeviceId;
|
|
|
|
|
|
- private String desc;
|
|
|
+
|
|
|
+ * 支付方式key
|
|
|
+ */
|
|
|
+ private String payDeviceKey;
|
|
|
|
|
|
+
|
|
|
+ * 支付方式名称
|
|
|
+ */
|
|
|
+ private String payDeviceName;
|
|
|
|
|
|
public static String getDescByNum(Integer code) {
|
|
|
PayDeviceEnum[] values = PayDeviceEnum.values();
|
|
|
for (int i = 0; i < values.length; i++) {
|
|
|
- if (values[i].getCode().equals(code)) {
|
|
|
- return values[i].getDesc();
|
|
|
+ if (values[i].getPayDeviceId().equals(code)) {
|
|
|
+ return values[i].getPayDeviceName();
|
|
|
}
|
|
|
}
|
|
|
return "";
|