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

@@ -12,7 +12,7 @@ namespace App\Service\Common;
use App\Cache\Redis\Common\CommonRedisKey;
use App\Cache\Redis\RedisCache;
use App\Exception\AdminException;
use App\Exception\ErrException;
use App\Lib\AdminReturn;
use App\Lib\Log;
use App\Model\OssObject;
@@ -158,7 +158,7 @@ class OssCallbackService
}catch (Exception $exception){
$this->deleteOssObject();
throw new AdminException($exception->getMessage());
throw new ErrException($exception->getMessage());
}
$this->log->callbackLog(__CLASS__.':oss回调完成'.json_encode($this->data),'oss');
@@ -289,7 +289,7 @@ class OssCallbackService
$ossObjectModel->type = $type;
if (!$ossObjectModel->save()){
throw new AdminException('保存图片失败');
throw new ErrException('保存图片失败');
}
$this->newId = $ossObjectModel->id;