licailing 4 лет назад
Родитель
Сommit
0fd709d952
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      src/main/java/com/izouma/nineth/service/AssetService.java

+ 4 - 6
src/main/java/com/izouma/nineth/service/AssetService.java

@@ -491,12 +491,11 @@ public class AssetService {
                 case "转让":
                     userHistory.setDescription(tokenHistory.getToUserId().equals(userId) ? "作品交易——买入" : "作品交易——售出");
                     break;
-                case "空投":
-                    userHistory.setDescription("空投");
-                    break;
                 case "转赠":
                     userHistory.setDescription(tokenHistory.getToUserId().equals(userId) ? "他人赠送" : "作品赠送");
                     break;
+                default:
+                    userHistory.setDescription(tokenHistory.getOperation());
             }
             return userHistory;
         });
@@ -535,12 +534,11 @@ public class AssetService {
                 case "转让":
                     userHistory.setDescription(tokenHistory.getToUserId().equals(userId) ? "作品交易——买入" : "作品交易——售出");
                     break;
-                case "空投":
-                    userHistory.setDescription("空投");
-                    break;
                 case "转赠":
                     userHistory.setDescription(tokenHistory.getToUserId().equals(userId) ? "他人赠送" : "作品赠送");
                     break;
+                default:
+                    userHistory.setDescription(tokenHistory.getOperation());
             }
             return userHistory;
         });