Skip to content

Commit

Permalink
修复数据库错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireflyest committed Aug 11, 2022
1 parent bd719ea commit 875335e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/fireflyest/market/core/MarketButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ private static void loadManuButton() {
AUCTIONER_TEXT = "§3§lAuctioner§7: §f%s";
START_PRICE_TEXT = "§3§lStart Price§7: §f§m%s%s";
PRESENT_PRICE_TEXT = "§3§lPresent Price§7: §f%s%s";
BID_TIME_TEXT = "§7The §3%s§7 bid";
BID_TIME_TEXT = "§7The §3%s§7 Confirmation";
ORIGINAL_PRICE_TEXT = "§3§lOriginal Price§7: §f§m%s%s";
PRICE_TEXT = "§3§lPrice§7: §f%s%s";

Expand Down Expand Up @@ -543,7 +543,7 @@ private static void loadChineseMenuButton() {
AUCTIONER_TEXT = "§3§l拍卖人§7: §f%s";
START_PRICE_TEXT = "§3§l起拍价§7: §f§m%s%s";
PRESENT_PRICE_TEXT = "§3§l现价§7: §f%s%s";
BID_TIME_TEXT = "§7第§3%s§7次叫价";
BID_TIME_TEXT = "§7第§3%s§7次确认价格";
ORIGINAL_PRICE_TEXT = "§3§l原价§7: §f§m%s%s";
PRICE_TEXT = "§3§l价格§7: §f%s%s";

Expand Down Expand Up @@ -714,7 +714,7 @@ private static void loadFrenchMenuButton() {
AUCTIONER_TEXT = "§3§lPropriétaire§7: §f%s";
START_PRICE_TEXT = "§3§lPrix de départ§7: §f§m%s%s";
PRESENT_PRICE_TEXT = "§3§lPrix courants§7: §f%s%s";
BID_TIME_TEXT = "§7The §3%s§7 bid";
BID_TIME_TEXT = "§7The §3%s§7 Confirmation";
ORIGINAL_PRICE_TEXT = "§3§lPrix d'origine§7: §f§m%s%s";
PRICE_TEXT = "§3§lPrix§7: §f%s%s";

Expand Down Expand Up @@ -885,7 +885,7 @@ private static void loadGermanMenuButton() {
AUCTIONER_TEXT = "§3§lVersteigerer§7: §f%s";
START_PRICE_TEXT = "§3§lAusgangspreis§7: §f§m%s%s";
PRESENT_PRICE_TEXT = "§3§lGegenwärtiger Preis§7: §f%s%s";
BID_TIME_TEXT = "§7The §3%s§7 bid";
BID_TIME_TEXT = "§7The §3%s§7 Bestätigung";
ORIGINAL_PRICE_TEXT = "§3§lOriginalpreis§7: §f§m%s%s";
PRICE_TEXT = "§3§lPreis§7: §f%s%s";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ public void run() {
.append("\n")
.append("------------------");

componentBuilder.append(String.format(MarketButton.SALE_HEAT, sale.getHeat())).append("\n");
if (sale.isAuction()){

} else {
componentBuilder.append(String.format(MarketButton.SALE_HEAT, sale.getHeat())).append("\n");
}

if (bookMeta != null) {
bookMeta.setAuthor(player.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private static String javaType2SQLType(String type){
case "java.lang.Float":
case "double":
case "float":
return "decimal";
return "decimal(10,2)";
case "java.lang.Integer":
return "integer";
default:
Expand Down

0 comments on commit 875335e

Please sign in to comment.