feat : basic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user