Ken 1 주 전
부모
커밋
aad2e099cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/admin/Wallet.php

+ 1 - 1
app/Http/Controllers/admin/Wallet.php

@@ -95,7 +95,7 @@ class Wallet extends Controller
                         'change_type' => $changeType
                     ]));
             if (Cache::has($key)) {
-                return response()->json(['message' => '请求太频繁,请稍后再试。'], 429);
+                throw new Exception("请求太频繁,请稍后再试。",HttpStatus::CUSTOM_ERROR);
             }
             Cache::put($key, true, 3);