增加日志
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -46,7 +46,11 @@ class AuthIdentifier | ... | @@ -46,7 +46,11 @@ class AuthIdentifier |
46 | $identifier = env('identifier'); | 46 | $identifier = env('identifier'); |
47 | } | 47 | } |
48 | 48 | ||
49 | Log::info(__METHOD__, ['ip'=>$request->ip()]); | 49 | Log::info(__METHOD__, [ |
50 | 'ip'=>$request->ip(), | ||
51 | 'white_list'=>explode(',', config('api.inside')['ip']), | ||
52 | 'identifier'=>$identifier, | ||
53 | ]); | ||
50 | 54 | ||
51 | if (empty($identifier) && (in_array($request->ip(), explode(',', config('api.inside')['ip'])))) { | 55 | if (empty($identifier) && (in_array($request->ip(), explode(',', config('api.inside')['ip'])))) { |
52 | goto AUTH; | 56 | goto AUTH; | ... | ... |
-
Please register or sign in to post a comment