Ken 3 hari lalu
induk
melakukan
3eb3111700
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Http/Controllers/api/ActivityReward.php

+ 1 - 1
app/Http/Controllers/api/ActivityReward.php

@@ -30,7 +30,7 @@ class ActivityReward extends BaseController
             $keys = [
                 'phone' => $params['phone'],
                 'ip' => request()->ip(),
-                'action' => request()->route()->getAction(),
+                'action' => request()->route()->getName(),
             ];
 //            $key = 'api_request_' . md5(json_encode($keys));
 //            if (Cache::has($key)) throw new Exception("请求太频繁,请稍后再试。", HttpStatus::CUSTOM_ERROR);