首页相关逻辑,商品表中isShow给予不同含义,创建新用户更改
This commit is contained in:
@@ -25,6 +25,16 @@ public enum PayTypeEnum {
|
||||
return ot.getType();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
return "未知支付方式";
|
||||
}
|
||||
|
||||
public static String getCodeByName(String code) {
|
||||
PayTypeEnum[] operateTypes = values();
|
||||
for (PayTypeEnum ot : operateTypes) {
|
||||
if (ot.type.equals(code)) {
|
||||
return ot.getName();
|
||||
}
|
||||
}
|
||||
return "未知支付方式";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user