mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-03-26 14:40:17 +08:00
fix : update cors and admin user cache
This commit is contained in:
@@ -4,10 +4,10 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Aspect;
|
||||
|
||||
use App\Annotation\ResponseFormat;
|
||||
use App\Common\Trait\AdminUserTrait;
|
||||
use App\Common\Trait\ClientIpTrait;
|
||||
use App\Lib\Log\Logger;
|
||||
use App\Lib\Return\AdminReturn;
|
||||
use App\Model\AdminUser;
|
||||
use App\Model\AdminUserOperationLog;
|
||||
use Hyperf\Context\Context;
|
||||
@@ -18,7 +18,7 @@ use Hyperf\Di\Aop\ProceedingJoinPoint;
|
||||
use Hyperf\Di\Exception\Exception;
|
||||
use Hyperf\HttpServer\Contract\RequestInterface;
|
||||
|
||||
#[Aspect]
|
||||
#[Aspect(priority: 1)]
|
||||
class AdminReturnLogAspect extends AbstractAspect
|
||||
{
|
||||
use ClientIpTrait;
|
||||
@@ -29,7 +29,7 @@ class AdminReturnLogAspect extends AbstractAspect
|
||||
* @var array|\class-string[]
|
||||
*/
|
||||
public array $classes = [
|
||||
AdminReturn::class,
|
||||
ResponseFormat::class,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,7 +12,7 @@ use Hyperf\HttpServer\Request;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Hyperf\Di\Aop\ProceedingJoinPoint;
|
||||
|
||||
#[Aspect]
|
||||
#[Aspect(priority: 0)]
|
||||
class ResponseFormatAspect extends AbstractAspect
|
||||
{
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user