Parcourir la source

fix(log): 修复提现应该是扣除

runphp il y a 6 mois
Parent
commit
238e91d472
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      src/Enum/BalpayLogTypeEnum.php

+ 5 - 3
src/Enum/BalpayLogTypeEnum.php

@@ -28,13 +28,12 @@ enum BalpayLogTypeEnum: int
      * 解冻
      */
     case UNFREEZE = 5;
-     /**
+    /**
      * 提现
      */
     case WITHDRAWAL = 6;
 
 
-
     public function toString(): string
     {
         return match ($this) {
@@ -50,7 +49,10 @@ enum BalpayLogTypeEnum: int
     public function negative(): bool
     {
         return match ($this) {
-            self::CONSUMTION, self::FREEZE => true,
+            self::CONSUMTION,
+            self::FREEZE,
+            self::WITHDRAWAL
+            => true,
             default => false,
         };
     }