소스 검색

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

runphp 6 달 전
부모
커밋
238e91d472
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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,
         };
     }