|
|
@@ -29,7 +29,7 @@ class ActivityReward extends BaseController
|
|
|
$params['action'] = request()->action;
|
|
|
$key = 'api_request_' . md5(json_encode($params));
|
|
|
if (Cache::has($key)) throw new Exception("请求太频繁,请稍后再试。", HttpStatus::CUSTOM_ERROR);
|
|
|
- Cache::put($key, true, 3);
|
|
|
+ Cache::put($key, true, 60);
|
|
|
|
|
|
|
|
|
} catch (ValidationException $e) {
|