芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/store.kwesioben.com/app/Http/Middleware/DeliveryManAuth.php
header('authorization')); if (count($token) > 1 && strlen($token[1]) > 30) { $d_man = DeliveryMan::where(['auth_token' => $token['1']])->first(); if (isset($d_man)) { $request['delivery_man'] = $d_man; return $next($request); } } return response()->json([ 'auth-001' => translate('Your existing session token does not authorize you any more') ], 401); } }