首页相关逻辑,商品表中isShow给予不同含义,创建新用户更改

This commit is contained in:
liuyingfang
2024-03-12 10:05:09 +08:00
parent afbb6c2211
commit 11af368005
14 changed files with 470 additions and 38 deletions

View File

@@ -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 "未知支付方式";
}
}