|
|
@@ -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);
|
|
|
|