|
|
|
@ -200,7 +200,7 @@ class AuthController extends Controller
|
|
|
|
$fillable = (new Manager())->getFillable();
|
|
|
|
$fillable = (new Manager())->getFillable();
|
|
|
|
$update = [];
|
|
|
|
$update = [];
|
|
|
|
foreach (request()->all() as $k => $v) {
|
|
|
|
foreach (request()->all() as $k => $v) {
|
|
|
|
if (in_array($k,$fillable)) {
|
|
|
|
if (in_array($k, $fillable)) {
|
|
|
|
$update[$k] = $v;
|
|
|
|
$update[$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -238,13 +238,30 @@ class AuthController extends Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @OA\Post(
|
|
|
|
|
|
|
|
* path="/manager/refresh",
|
|
|
|
|
|
|
|
* summary="V2-刷新token",
|
|
|
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
|
|
|
* description="",
|
|
|
|
|
|
|
|
* @OA\Response(
|
|
|
|
|
|
|
|
* response="200",
|
|
|
|
|
|
|
|
* description="刷新token"
|
|
|
|
|
|
|
|
* )
|
|
|
|
|
|
|
|
* )
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Refresh a token.
|
|
|
|
* Refresh a token.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public function refresh()
|
|
|
|
public function refresh()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$token = JWTAuth::getToken();
|
|
|
|
|
|
|
|
dd($token);
|
|
|
|
return $this->respondWithToken($this->guard()->refresh());
|
|
|
|
return $this->respondWithToken($this->guard()->refresh());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|