feat : basic

This commit is contained in:
2024-11-12 11:02:38 +08:00
parent 235acbea9c
commit a9f81888b7
26 changed files with 342 additions and 209 deletions

View File

@@ -10,7 +10,7 @@ declare(strict_types=1);
namespace App\Service\Admin\Third;
use App\Exception\AdminException;
use App\Exception\ErrException;
use App\Service\Admin\BaseService;
use App\Service\ServiceTrait\Common\AliStsTrait;
use Psr\Container\ContainerExceptionInterface;
@@ -97,7 +97,7 @@ class AliStsService extends BaseService
$this->log->info(__CLASS__.':'.__FUNCTION__.':授权oss信息:'.json_encode($res));
$aliResponse = $res->body->credentials;
if (empty($aliResponse)) throw new AdminException('授权失败');
if (empty($aliResponse)) throw new ErrException('授权失败');
return $this->return->success('success',[
'access_key_id' => $aliResponse->accessKeyId,