Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -236,7 +236,15 @@ if (! function_exists('aliyun')) {
|
||||
if (empty($info['info']['url'])) {
|
||||
return ['code' => 1, 'message' => "上传失败"];
|
||||
}
|
||||
return ['code' => 0, 'message' => "", 'url' => $info['info']['url']];
|
||||
return [
|
||||
'code' => 0,
|
||||
'message' => "",
|
||||
'url' => str_replace(
|
||||
env('ALIYUNSMS.OSS_BUCKET').'.'.env('ALIYUNSMS.OSS_ENDPOINT'),
|
||||
env('ALIYUNSMS.CDN_NAME'),
|
||||
$info['info']['url']
|
||||
),
|
||||
];
|
||||
} catch (OssException $e) {
|
||||
return ['code' => 1, 'message' => $e->getMessage()];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user